File indexing completed on 2024-04-06 12:29:57
0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0003 from Configuration.Eras.Modifier_phase2_hgcalOnly_cff import phase2_hgcalOnly
0004 from Configuration.Eras.Modifier_phase2_hgcalV18_cff import phase2_hgcalV18
0005
0006 process = cms.Process("PROD",Phase2C17I13M9,phase2_hgcalOnly,phase2_hgcalV18)
0007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0008 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0009 process.load("Geometry.HGCalCommonData.testHGCalV18OReco_cff")
0010 process.load("Configuration.StandardSequences.MagneticField_cff")
0011 process.load("Configuration.EventContent.EventContent_cff")
0012 process.load('Configuration.StandardSequences.Generator_cff')
0013 process.load('Configuration.StandardSequences.SimIdeal_cff')
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.load('SimG4CMS.Calo.hgcalHitScintillator_cfi')
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 from Configuration.AlCa.GlobalTag import GlobalTag
0018 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0019
0020 if hasattr(process,'MessageLogger'):
0021 process.MessageLogger.HGCalGeom=dict()
0022 process.MessageLogger.HGCalSim=dict()
0023 process.MessageLogger.HGCSim=dict()
0024
0025 process.load("IOMC.RandomEngine.IOMC_cff")
0026 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0027 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0028 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0029
0030 process.Timing = cms.Service("Timing")
0031
0032 process.maxEvents = cms.untracked.PSet(
0033 input = cms.untracked.int32(50)
0034 )
0035
0036 process.source = cms.Source("EmptySource",
0037 firstRun = cms.untracked.uint32(1),
0038 firstEvent = cms.untracked.uint32(1)
0039 )
0040
0041 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0042 PGunParameters = cms.PSet(
0043 PartID = cms.vint32(211),
0044 MinEta = cms.double(1.50),
0045 MaxEta = cms.double(2.20),
0046 MinPhi = cms.double(-3.1415926),
0047 MaxPhi = cms.double(-1.5707963),
0048 MinE = cms.double(100.00),
0049 MaxE = cms.double(100.00)
0050 ),
0051 Verbosity = cms.untracked.int32(0),
0052 AddAntiParticle = cms.bool(True)
0053 )
0054
0055 process.output = cms.OutputModule("PoolOutputModule",
0056 process.FEVTSIMEventContent,
0057 fileName = cms.untracked.string('hgcV18O.root')
0058 )
0059
0060 process.hgcalHitScintillator.tileFileName = "extraTiles.txt"
0061 process.g4SimHits.HGCScintSD.TileFileName = "extraTiles.txt"
0062
0063 process.generation_step = cms.Path(process.pgen)
0064 process.simulation_step = cms.Path(process.psim)
0065 process.analysis_step = cms.Path(process.hgcalHitScintillator)
0066 process.out_step = cms.EndPath(process.output)
0067
0068 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
0069
0070
0071 process.schedule = cms.Schedule(process.generation_step,
0072 process.simulation_step,
0073 process.analysis_step,
0074 process.out_step
0075 )
0076
0077
0078 for path in process.paths:
0079 getattr(process,path)._seq = process.generator * getattr(process,path)._seq