Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-09 23:32:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C11_dd4hep_cff import Phase2C11_dd4hep
0004 
0005 process = cms.Process('SIM',Phase2C11_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.VtxSmearedHLLHC14TeV_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 
0021 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0022                                             confGeomXMLFiles = cms.FileInPath('Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalwafer8-algorithm.xml'),
0023                                             appendToDataLabel = cms.string('')
0024                                             )
0025 
0026 process.DDSpecParRegistryESProducer = cms.ESProducer("DDSpecParRegistryESProducer",
0027                                                      appendToDataLabel = cms.string('')
0028 )
0029 
0030 process.DDVectorRegistryESProducer = cms.ESProducer("DDVectorRegistryESProducer",
0031                                                     appendToDataLabel = cms.string(''))
0032 
0033 process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer",
0034                                                  appendToDataLabel = cms.string('')
0035 )
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(2),
0039     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0040 )
0041 
0042 if hasattr(process,'MessageLogger'):
0043     process.MessageLogger.HGCalGeom=dict()
0044     process.MessageLogger.G4cout=dict()
0045     process.MessageLogger.G4cerr=dict()
0046 
0047 # Input source
0048 process.source = cms.Source("EmptySource")
0049 
0050 process.options = cms.untracked.PSet(
0051     FailPath = cms.untracked.vstring(),
0052     IgnoreCompletely = cms.untracked.vstring(),
0053     Rethrow = cms.untracked.vstring(),
0054     SkipEvent = cms.untracked.vstring(),
0055     allowUnscheduled = cms.obsolete.untracked.bool,
0056     canDeleteEarly = cms.untracked.vstring(),
0057     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0058     emptyRunLumiMode = cms.obsolete.untracked.string,
0059     eventSetup = cms.untracked.PSet(
0060         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0061             allowAnyLabel_=cms.required.untracked.uint32
0062         ),
0063         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0064     ),
0065     fileMode = cms.untracked.string('FULLMERGE'),
0066     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0067     makeTriggerResults = cms.obsolete.untracked.bool,
0068     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0069     numberOfConcurrentRuns = cms.untracked.uint32(1),
0070     numberOfStreams = cms.untracked.uint32(0),
0071     numberOfThreads = cms.untracked.uint32(1),
0072     printDependencies = cms.untracked.bool(False),
0073     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0074     throwIfIllegalParameter = cms.untracked.bool(True),
0075     wantSummary = cms.untracked.bool(False)
0076 )
0077 
0078 # Production Info
0079 process.configurationMetadata = cms.untracked.PSet(
0080     annotation = cms.untracked.string('single pi E 1000'),
0081     name = cms.untracked.string('Applications'),
0082     version = cms.untracked.string('$Revision: 1.19 $')
0083 )
0084 
0085 # Output definition
0086 
0087 # Additional output definition
0088 
0089 # Other statements
0090 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0091 from Configuration.AlCa.GlobalTag import GlobalTag
0092 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0093 
0094 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0095     PGunParameters = cms.PSet(
0096         PartID = cms.vint32(211),
0097         MinEta = cms.double(1.48),
0098         MaxEta = cms.double(3.01),
0099         MinPhi = cms.double(-3.14159265359),
0100         MaxPhi = cms.double(3.14159265359),
0101         MinE = cms.double(999.99),
0102         MaxE = cms.double(1000.01)
0103     ),
0104     Verbosity = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
0105     psethack = cms.string('single pi E 1000'),
0106     AddAntiParticle = cms.bool(True),
0107     firstRun = cms.untracked.uint32(1)
0108 )
0109 
0110 process.ProductionFilterSequence = cms.Sequence(process.generator)
0111 
0112 # Path and EndPath definitions
0113 process.generation_step = cms.Path(process.pgen)
0114 process.simulation_step = cms.Path(process.psim)
0115 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0116 process.endjob_step = cms.EndPath(process.endOfProcess)
0117 
0118 # Schedule definition
0119 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_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 
0128 # Customisation from command line
0129 
0130 # Add early deletion of temporary data products to reduce peak memory need
0131 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0132 process = customiseEarlyDelete(process)
0133 # End adding early deletion