Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-29 02:25:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C11M9_cff import Phase2C11M9
0004 
0005 process = cms.Process('SIM',Phase2C11M9)
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('Geometry.HGCalCommonData.testHGCV17nXML_cfi')
0014 process.load('Geometry.EcalCommonData.ecalSimulationParameters_cff')
0015 process.load('Geometry.HcalCommonData.hcalDDDSimConstants_cff')
0016 process.load('Geometry.HGCalCommonData.hgcalV15ParametersInitialization_cfi')
0017 process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi')
0018 process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff')
0019 process.load('SLHCUpgradeSimulations.Geometry.fakePhase2OuterTrackerConditions_cff')
0020 process.load('Geometry.MuonNumbering.muonGeometryConstants_cff')
0021 process.load('Geometry.MuonNumbering.muonOffsetESProducer_cff')
0022 process.load('Geometry.MTDNumberingBuilder.mtdNumberingGeometry_cff')
0023 process.load('Configuration.StandardSequences.MagneticField_cff')
0024 process.load('Configuration.StandardSequences.Generator_cff')
0025 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0026 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0027 process.load('Configuration.StandardSequences.SimIdeal_cff')
0028 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0029 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0030 
0031 if 'MessageLogger' in process.__dict__:
0032     process.MessageLogger.HGCSim=dict()
0033 #   process.MessageLogger.CaloSim=dict()
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036     input = cms.untracked.int32(100),
0037     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0038 )
0039 
0040 process.Timing = cms.Service("Timing")
0041 
0042 # Input source
0043 process.source = cms.Source("EmptySource")
0044 
0045 process.options = cms.untracked.PSet(
0046     FailPath = cms.untracked.vstring(),
0047     IgnoreCompletely = cms.untracked.vstring(),
0048     Rethrow = cms.untracked.vstring(),
0049     SkipEvent = cms.untracked.vstring(),
0050     allowUnscheduled = cms.obsolete.untracked.bool,
0051     canDeleteEarly = cms.untracked.vstring(),
0052     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0053     emptyRunLumiMode = cms.obsolete.untracked.string,
0054     eventSetup = cms.untracked.PSet(
0055         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0056             allowAnyLabel_=cms.required.untracked.uint32
0057         ),
0058         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0059     ),
0060     fileMode = cms.untracked.string('FULLMERGE'),
0061     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0062     makeTriggerResults = cms.obsolete.untracked.bool,
0063     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0064     numberOfConcurrentRuns = cms.untracked.uint32(1),
0065     numberOfStreams = cms.untracked.uint32(0),
0066     numberOfThreads = cms.untracked.uint32(1),
0067     printDependencies = cms.untracked.bool(False),
0068     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0069     throwIfIllegalParameter = cms.untracked.bool(True),
0070     wantSummary = cms.untracked.bool(False)
0071 )
0072 
0073 # Production Info
0074 process.configurationMetadata = cms.untracked.PSet(
0075     annotation = cms.untracked.string('single pi E 1000'),
0076     name = cms.untracked.string('Applications'),
0077     version = cms.untracked.string('$Revision: 1.19 $')
0078 )
0079 
0080 # Output definition
0081 
0082 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0083     SelectEvents = cms.untracked.PSet(
0084         SelectEvents = cms.vstring('generation_step')
0085     ),
0086     dataset = cms.untracked.PSet(
0087         dataTier = cms.untracked.string('GEN-SIM'),
0088         filterName = cms.untracked.string('')
0089     ),
0090     fileName = cms.untracked.string('file:step1.root'),
0091     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0092     splitLevel = cms.untracked.int32(0)
0093 )
0094 
0095 # Additional output definition
0096 
0097 # Other statements
0098 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0099 from Configuration.AlCa.GlobalTag import GlobalTag
0100 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0101 
0102 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0103     PGunParameters = cms.PSet(
0104         PartID = cms.vint32(211),
0105         MinEta = cms.double(1.48),
0106         MaxEta = cms.double(3.01),
0107         MinPhi = cms.double(-3.14159265359),
0108         MaxPhi = cms.double(3.14159265359),
0109         MinE = cms.double(999.99),
0110         MaxE = cms.double(1000.01)
0111     ),
0112     Verbosity = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
0113     psethack = cms.string('single pi E 1000'),
0114     AddAntiParticle = cms.bool(True),
0115     firstRun = cms.untracked.uint32(1)
0116 )
0117 
0118 process.ProductionFilterSequence = cms.Sequence(process.generator)
0119 
0120 # Path and EndPath definitions
0121 process.generation_step = cms.Path(process.pgen)
0122 process.simulation_step = cms.Path(process.psim)
0123 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0124 process.endjob_step = cms.EndPath(process.endOfProcess)
0125 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0126 
0127 # Schedule definition
0128 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0129 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0130 associatePatAlgosToolsTask(process)
0131 # filter all path with the production filter sequence
0132 for path in process.paths:
0133     getattr(process,path).insert(0, process.ProductionFilterSequence)
0134 
0135 
0136 
0137 # Customisation from command line
0138 
0139 # Add early deletion of temporary data products to reduce peak memory need
0140 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0141 process = customiseEarlyDelete(process)
0142 # End adding early deletion