Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-27 14:07:59

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('Configuration.StandardSequences.Generator_cff')
0007 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0008 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0009 process.load('Configuration.StandardSequences.SimIdeal_cff')
0010 process.load("Configuration.Geometry.GeometryExtended2026D49Reco_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 process.load("Configuration.EventContent.EventContent_cff")
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 from Configuration.AlCa.GlobalTag import GlobalTag
0015 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0016 
0017 if hasattr(process,'MessageLogger'):
0018     process.MessageLogger.G4cout = dict()
0019     process.MessageLogger.G4cerr = dict()
0020     process.MessageLogger.HGCSim = dict()
0021 
0022 process.load("IOMC.RandomEngine.IOMC_cff")
0023 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0024 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0025 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0026 
0027 process.Timing = cms.Service("Timing")
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(100)
0031 )
0032 
0033 process.source = cms.Source("EmptySource",
0034     firstRun        = cms.untracked.uint32(1),
0035     firstEvent      = cms.untracked.uint32(1)
0036 )
0037 
0038 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0039     PGunParameters = cms.PSet(
0040         PartID = cms.vint32(211),
0041         MinEta = cms.double(1.75),
0042         MaxEta = cms.double(2.50),
0043         MinPhi = cms.double(-3.1415926),
0044         MaxPhi = cms.double(3.1415926),
0045         MinE   = cms.double(100.00),
0046         MaxE   = cms.double(100.00)
0047     ),
0048     Verbosity       = cms.untracked.int32(0),
0049     AddAntiParticle = cms.bool(False)
0050 )
0051 
0052 process.output = cms.OutputModule("PoolOutputModule",
0053     process.FEVTSIMEventContent,
0054     fileName = cms.untracked.string('hgcV14.root')
0055 )
0056 
0057 process.generation_step = cms.Path(process.pgen)
0058 process.simulation_step = cms.Path(process.psim)
0059 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0060 process.out_step = cms.EndPath(process.output)
0061 
0062 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0063 process.g4SimHits.Physics.DefaultCutValue   = 0.1
0064 
0065 # Schedule definition
0066 process.schedule = cms.Schedule(process.generation_step,
0067                                 process.simulation_step,
0068                                 process.out_step
0069                                 )
0070 
0071 # filter all path with the production filter sequence
0072 for path in process.paths:
0073         getattr(process,path)._seq = process.generator * getattr(process,path)._seq