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