Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-27 01:28:06

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