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('Dump',Run3_DDD)
0005 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0006 process = cms.Process('Dump',Run3_dd4hep)
0007 
0008 # import of standard configurations
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 #process.load('Configuration.Geometry.GeometryExtended2021Reco_cff') 
0011 process.load('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff') 
0012 process.load('Configuration.StandardSequences.Services_cff')
0013 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_0T_cff')
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi')
0018 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0019 process.load('Configuration.StandardSequences.SimIdeal_cff')
0020 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0021 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0022 
0023 if hasattr(process,'MessageLogger'):
0024     process.MessageLogger.HCalGeom=dict()
0025     process.MessageLogger.HcalSim=dict()
0026     process.MessageLogger.G4cout=dict()
0027     process.MessageLogger.cout=dict()
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1),
0031     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0032 )
0033 
0034 # Input source
0035 process.source = cms.Source("EmptySource",
0036     firstRun        = cms.untracked.uint32(1),
0037     firstEvent      = cms.untracked.uint32(1)
0038 )
0039 
0040 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0041     PGunParameters = cms.PSet(
0042         PartID = cms.vint32(211),
0043         MinEta = cms.double(1.75),
0044         MaxEta = cms.double(2.50),
0045         MinPhi = cms.double(-3.1415926),
0046         MaxPhi = cms.double(3.1415926),
0047         MinE   = cms.double(100.00),
0048         MaxE   = cms.double(100.00)
0049     ),
0050     Verbosity       = cms.untracked.int32(0),
0051     AddAntiParticle = cms.bool(False)
0052 )
0053 
0054 process.options = cms.untracked.PSet(
0055 )
0056 
0057 # Production Info
0058 process.configurationMetadata = cms.untracked.PSet(
0059     annotation = cms.untracked.string('SinglePionE1000_cfi nevts:10'),
0060     name = cms.untracked.string('Applications'),
0061     version = cms.untracked.string('$Revision: 1.19 $')
0062 )
0063 
0064 # Other statements
0065 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0066 from Configuration.AlCa.GlobalTag import GlobalTag
0067 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0068 
0069 process.g4SimHits.HCalSD.DumpGeometry = True
0070 # Path and EndPath definitions
0071 process.generation_step = cms.Path(process.pgen)
0072 process.simulation_step = cms.Path(process.psim)
0073 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0074 
0075 # Schedule definition
0076 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step)
0077 
0078 # filter all path with the production filter sequence
0079 for path in process.paths:
0080         getattr(process,path)._seq = process.generator * getattr(process,path)._seq