Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.StandardSequences.Eras import eras
0004 process = cms.Process("TEST",eras.Run3)
0005 ### RANDOM setting (change last digit(s) to make runs different !)

0006 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0007 
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.load("SimG4Core.Application.g4SimHits_cfi")
0010 process.load("SimCalorimetry.Configuration.ecalDigiSequence_cff")
0011 process.load("SimCalorimetry.Configuration.hcalDigiSequence_cff")
0012 process.load("SimGeneral.PileupInformation.AddPileupSummary_cfi")
0013 process.load("Configuration.StandardSequences.Reconstruction_cff")
0014 
0015 process.load("Configuration.EventContent.EventContent_cff")
0016 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0017 process.load("Configuration.StandardSequences.DigiToRaw_cff")
0018 process.load("Configuration.StandardSequences.RawToDigi_cff")
0019 
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 from Configuration.AlCa.autoCond import autoCond
0022 process.GlobalTag.globaltag = autoCond["phase1_2022_realistic"]
0023 
0024 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0025 process.load("Configuration.StandardSequences.GeometryDB_cff")
0026 process.load("Configuration.StandardSequences.MagneticField_cff")
0027 process.g4SimHits.UseMagneticField = False
0028 
0029 from Configuration.AlCa.autoCond import autoCond
0030 process.GlobalTag.globaltag = autoCond['phase1_2022_realistic']
0031 
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(500) 
0034 )
0035 
0036 if 'MessageLogger' in process.__dict__:
0037     process.MessageLogger.HcalSim=dict()
0038 
0039 process.source = cms.Source("EmptySource")
0040 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0041     PGunParameters = cms.PSet(
0042         PartID = cms.vint32(13),     #mu ieta=15-18

0043         MinEta = cms.double(1.22),
0044         MaxEta = cms.double(1.56),
0045         MinPhi = cms.double(-3.15926),
0046         MaxPhi = cms.double(3.15926),
0047         MinE   = cms.double(20.0),
0048         MaxE   = cms.double(20.0)
0049     ),
0050     firstRun = cms.untracked.uint32(1),
0051     AddAntiParticle = cms.bool(False)
0052 )
0053 
0054 process.VtxSmeared.SigmaX = 0.00001
0055 process.VtxSmeared.SigmaY = 0.00001
0056 process.VtxSmeared.SigmaZ = 0.00001
0057 
0058 process.FEVT = cms.OutputModule("PoolOutputModule",
0059      outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0060      splitLevel = cms.untracked.int32(0),
0061      fileName = cms.untracked.string("output.root")
0062 )
0063 
0064 process.VtxSmeared.src = cms.InputTag("generator", "unsmeared") 
0065 process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer")
0066 process.g4SimHits.Generator.HepMCProductLabel = cms.InputTag('VtxSmeared')
0067 process.g4SimHits.LHCTransport = False
0068 
0069 process.p = cms.Path(
0070  process.generator *
0071  process.VtxSmeared *
0072  process.generatorSmeared *
0073  process.g4SimHits *
0074  process.mix *
0075  process.ecalDigiSequence * 
0076  process.hcalDigiSequence *
0077  process.addPileupInfo *
0078  process.bunchSpacingProducer *
0079  process.ecalPacker *
0080  process.esDigiToRaw *
0081  process.hcalRawData *
0082  process.rawDataCollector *
0083  process.ecalDigis *
0084  process.ecalPreshowerDigis *
0085  process.hcalDigis 
0086 )
0087 
0088 ###process.outpath = cms.EndPath(process.FEVT)