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_dd4hep_cff import Run3_dd4hep
0004 
0005 process = cms.Process('SIM',Run3_dd4hep)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.StandardSequences.MagneticField_cff')
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('IOMC.EventVertexGenerators.VtxSmearedRun3RoundOptics25ns13TeVLowSigmaZ_cfi')
0016 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 process.load('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff')
0021 
0022 
0023 if hasattr(process,'MessageLogger'):
0024     process.MessageLogger.HcalSim=dict()
0025     process.MessageLogger.HFShower=dict()
0026     process.MessageLogger.HitStudy=dict()
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(10),
0030     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0031 )
0032 
0033 # Input source
0034 process.source = cms.Source("EmptySource")
0035 
0036 process.options = cms.untracked.PSet(
0037     FailPath = cms.untracked.vstring(),
0038     IgnoreCompletely = cms.untracked.vstring(),
0039     Rethrow = cms.untracked.vstring(),
0040     SkipEvent = cms.untracked.vstring(),
0041     allowUnscheduled = cms.obsolete.untracked.bool,
0042     canDeleteEarly = cms.untracked.vstring(),
0043     emptyRunLumiMode = cms.obsolete.untracked.string,
0044     eventSetup = cms.untracked.PSet(
0045         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0046 
0047         ),
0048         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0049     ),
0050     fileMode = cms.untracked.string('FULLMERGE'),
0051     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0052     makeTriggerResults = cms.obsolete.untracked.bool,
0053     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0054     numberOfConcurrentRuns = cms.untracked.uint32(1),
0055     numberOfStreams = cms.untracked.uint32(0),
0056     numberOfThreads = cms.untracked.uint32(1),
0057     printDependencies = cms.untracked.bool(False),
0058     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0059     throwIfIllegalParameter = cms.untracked.bool(True),
0060     wantSummary = cms.untracked.bool(False)
0061 )
0062 
0063 # Production Info
0064 process.configurationMetadata = cms.untracked.PSet(
0065     annotation = cms.untracked.string('SinglePion_cfi nevts:10'),
0066     name = cms.untracked.string('Applications'),
0067     version = cms.untracked.string('$Revision: 1.19 $')
0068 )
0069 
0070 # Output definition
0071 
0072 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0073     SelectEvents = cms.untracked.PSet(
0074         SelectEvents = cms.vstring('generation_step')
0075     ),
0076     dataset = cms.untracked.PSet(
0077         dataTier = cms.untracked.string('GEN-SIM'),
0078         filterName = cms.untracked.string('')
0079     ),
0080     fileName = cms.untracked.string('file:step1_dd4hep.root'),
0081     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0082     splitLevel = cms.untracked.int32(0)
0083 )
0084 
0085 # Additional output definition
0086 
0087 # Other statements
0088 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0089 from Configuration.AlCa.GlobalTag import GlobalTag 
0090 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0091 
0092 
0093 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0094     PGunParameters = cms.PSet(
0095         PartID = cms.vint32(211),
0096         MinEta = cms.double(3.1),
0097         MaxEta = cms.double(4.6),
0098         MinPhi = cms.double(-3.1415926),
0099         MaxPhi = cms.double(-1.5707963),
0100         MinE   = cms.double(100.00),
0101         MaxE   = cms.double(100.00)
0102     ),
0103     Verbosity       = cms.untracked.int32(0),
0104     AddAntiParticle = cms.bool(True)
0105 )
0106 
0107 process.load("SimG4CMS.Calo.hcalSimHitDump_cfi")
0108 process.ProductionFilterSequence = cms.Sequence(process.generator)
0109 
0110 # Path and EndPath definitions
0111 process.generation_step = cms.Path(process.pgen)
0112 process.simulation_step = cms.Path(process.psim)
0113 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0114 process.analysis_step = cms.Path(process.hcalSimHitDump)
0115 process.endjob_step = cms.EndPath(process.endOfProcess)
0116 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0117 
0118 # Schedule definition
0119 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.analysis_step,process.FEVTDEBUGoutput_step)
0120 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0121 associatePatAlgosToolsTask(process)
0122 # filter all path with the production filter sequence
0123 for path in process.paths:
0124     getattr(process,path).insert(0, process.ProductionFilterSequence)
0125 
0126 
0127 # Customisation from command line
0128 
0129 # Add early deletion of temporary data products to reduce peak memory need
0130 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0131 process = customiseEarlyDelete(process)
0132 # End adding early deletion