Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-04-11 22:43:57

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.testHGCalWafer8XML_cfi')
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(2),
0024     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0025 )
0026 
0027 if hasattr(process,'MessageLogger'):
0028     process.MessageLogger.HGCalGeom=dict()
0029     process.MessageLogger.G4cout=dict()
0030     process.MessageLogger.G4cerr=dict()
0031 
0032 # Input source
0033 process.source = cms.Source("EmptySource")
0034 
0035 process.options = cms.untracked.PSet(
0036     FailPath = cms.untracked.vstring(),
0037     IgnoreCompletely = cms.untracked.vstring(),
0038     Rethrow = cms.untracked.vstring(),
0039     SkipEvent = cms.untracked.vstring(),
0040     allowUnscheduled = cms.obsolete.untracked.bool,
0041     canDeleteEarly = cms.untracked.vstring(),
0042     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0043     emptyRunLumiMode = cms.obsolete.untracked.string,
0044     eventSetup = cms.untracked.PSet(
0045         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0046             allowAnyLabel_=cms.required.untracked.uint32
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('single pi E 1000'),
0066     name = cms.untracked.string('Applications'),
0067     version = cms.untracked.string('$Revision: 1.19 $')
0068 )
0069 
0070 # Output definition
0071 
0072 # Additional output definition
0073 
0074 # Other statements
0075 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0076 from Configuration.AlCa.GlobalTag import GlobalTag
0077 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0078 
0079 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0080     PGunParameters = cms.PSet(
0081         PartID = cms.vint32(211),
0082         MinEta = cms.double(1.48),
0083         MaxEta = cms.double(3.01),
0084         MinPhi = cms.double(-3.14159265359),
0085         MaxPhi = cms.double(3.14159265359),
0086         MinE = cms.double(999.99),
0087         MaxE = cms.double(1000.01)
0088     ),
0089     Verbosity = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
0090     psethack = cms.string('single pi E 1000'),
0091     AddAntiParticle = cms.bool(True),
0092     firstRun = cms.untracked.uint32(1)
0093 )
0094 
0095 process.ProductionFilterSequence = cms.Sequence(process.generator)
0096 
0097 # Path and EndPath definitions
0098 process.generation_step = cms.Path(process.pgen)
0099 process.simulation_step = cms.Path(process.psim)
0100 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0101 process.endjob_step = cms.EndPath(process.endOfProcess)
0102 
0103 # Schedule definition
0104 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step)
0105 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0106 associatePatAlgosToolsTask(process)
0107 # filter all path with the production filter sequence
0108 for path in process.paths:
0109     getattr(process,path).insert(0, process.ProductionFilterSequence)
0110 
0111 
0112 
0113 # Customisation from command line
0114 
0115 # Add early deletion of temporary data products to reduce peak memory need
0116 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0117 process = customiseEarlyDelete(process)
0118 # End adding early deletion