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 process.MessageLogger.cerr.FwkReport.reportEvery = 5
0024 if hasattr(process,'MessageLogger'):
0025     process.MessageLogger.G4cerr=dict()
0026 #   process.MessageLogger.CaloSim=dict()
0027 #   process.MessageLogger.CaloSimX=dict()
0028 
0029 process.load("IOMC.RandomEngine.IOMC_cff")
0030 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0031 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0032 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0033 
0034 process.maxEvents = cms.untracked.PSet(
0035     input = cms.untracked.int32(5000)
0036 )
0037 
0038 process.source = cms.Source("EmptySource")
0039 
0040 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0041     PGunParameters = cms.PSet(
0042         PartID = cms.vint32(211),
0043         MinEta = cms.double(0.5655),
0044         MaxEta = cms.double(0.5655),
0045         MinPhi = cms.double(-3.14159265359),
0046         MaxPhi = cms.double(3.14159265359),
0047         MinE   = cms.double(30.0),
0048         MaxE   = cms.double(30.0)
0049     ),
0050     Verbosity       = cms.untracked.int32(0),
0051     AddAntiParticle = cms.bool(False),
0052     firstRun        = cms.untracked.uint32(1)
0053 )
0054 
0055 process.output = cms.OutputModule("PoolOutputModule",
0056     process.FEVTSIMEventContent,
0057     fileName = cms.untracked.string('simevent030eta7.root')
0058 )
0059 
0060 process.Timing = cms.Service("Timing")
0061 
0062 process.generation_step = cms.Path(process.pgen)
0063 process.simulation_step = cms.Path(process.psim)
0064 process.out_step = cms.EndPath(process.output)
0065 
0066 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
0067 #process.g4SimHits.G4Commands = ['/tracking/verbose 1']
0068 
0069 # Schedule definition
0070 process.schedule = cms.Schedule(process.generation_step,
0071                                 process.simulation_step,
0072                                 process.out_step
0073                                 )
0074 
0075 # filter all path with the production filter sequence
0076 for path in process.paths:
0077         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0078