Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 process = cms.Process("PROD",Run3_DDD)
0005 process.load("Configuration.Geometry.GeometryExtended2021Reco_cff")
0006 
0007 #from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0008 #process = cms.Process("PROD",Run3_dd4hep)
0009 #process.load("Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff")
0010 
0011 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0012 process.load('FWCore.MessageService.MessageLogger_cfi')
0013 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0014 process.load("Configuration.StandardSequences.MagneticField_cff")
0015 process.load("Configuration.EventContent.EventContent_cff")
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff"
0019 )
0020 from Configuration.AlCa.GlobalTag import GlobalTag 
0021 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0022 
0023 if 'MessageLogger' in process.__dict__:
0024     process.MessageLogger.G4cerr=dict()
0025 
0026 process.load("IOMC.RandomEngine.IOMC_cff")
0027 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0028 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0029 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0030 
0031 process.maxEvents = cms.untracked.PSet(
0032     input = cms.untracked.int32(5000)
0033 )
0034 
0035 process.source = cms.Source("EmptySource")
0036 
0037 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0038     PGunParameters = cms.PSet(
0039         PartID = cms.vint32(211),
0040         MinEta = cms.double(0.1305),
0041         MaxEta = cms.double(0.1305),
0042         MinPhi = cms.double(-3.14159265359),
0043         MaxPhi = cms.double(3.14159265359),
0044         MinE   = cms.double(30.0),
0045         MaxE   = cms.double(30.0)
0046     ),
0047     Verbosity       = cms.untracked.int32(0),
0048     AddAntiParticle = cms.bool(False),
0049     firstRun        = cms.untracked.uint32(1)
0050 )
0051 
0052 process.output = cms.OutputModule("PoolOutputModule",
0053     process.FEVTSIMEventContent,
0054     fileName = cms.untracked.string('simevent030eta2.root')
0055 )
0056 
0057 process.Timing = cms.Service("Timing")
0058 
0059 process.generation_step = cms.Path(process.pgen)
0060 process.simulation_step = cms.Path(process.psim)
0061 process.out_step = cms.EndPath(process.output)
0062 
0063 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0064 #process.g4SimHits.G4Commands = ['/tracking/verbose 1']
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
0074