Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-17 23:26:39

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