Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:06

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     IgnoreCompletely = cms.untracked.vstring(),
0052     Rethrow = cms.untracked.vstring(),
0053     TryToContinue = cms.untracked.vstring(),
0054     allowUnscheduled = cms.obsolete.untracked.bool,
0055     canDeleteEarly = cms.untracked.vstring(),
0056     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0057     emptyRunLumiMode = cms.obsolete.untracked.string,
0058     eventSetup = cms.untracked.PSet(
0059         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0060             allowAnyLabel_=cms.required.untracked.uint32
0061         ),
0062         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0063     ),
0064     fileMode = cms.untracked.string('FULLMERGE'),
0065     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0066     makeTriggerResults = cms.obsolete.untracked.bool,
0067     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0068     numberOfConcurrentRuns = cms.untracked.uint32(1),
0069     numberOfStreams = cms.untracked.uint32(0),
0070     numberOfThreads = cms.untracked.uint32(1),
0071     printDependencies = cms.untracked.bool(False),
0072     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0073     throwIfIllegalParameter = cms.untracked.bool(True),
0074     wantSummary = cms.untracked.bool(False)
0075 )
0076 
0077 # Production Info
0078 process.configurationMetadata = cms.untracked.PSet(
0079     annotation = cms.untracked.string('single pi E 1000'),
0080     name = cms.untracked.string('Applications'),
0081     version = cms.untracked.string('$Revision: 1.19 $')
0082 )
0083 
0084 # Output definition
0085 
0086 # Additional output definition
0087 
0088 # Other statements
0089 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0090 from Configuration.AlCa.GlobalTag import GlobalTag
0091 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0092 
0093 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0094     PGunParameters = cms.PSet(
0095         PartID = cms.vint32(211),
0096         MinEta = cms.double(1.48),
0097         MaxEta = cms.double(3.01),
0098         MinPhi = cms.double(-3.14159265359),
0099         MaxPhi = cms.double(3.14159265359),
0100         MinE = cms.double(999.99),
0101         MaxE = cms.double(1000.01)
0102     ),
0103     Verbosity = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
0104     psethack = cms.string('single pi E 1000'),
0105     AddAntiParticle = cms.bool(True),
0106     firstRun = cms.untracked.uint32(1)
0107 )
0108 
0109 process.ProductionFilterSequence = cms.Sequence(process.generator)
0110 
0111 # Path and EndPath definitions
0112 process.generation_step = cms.Path(process.pgen)
0113 process.simulation_step = cms.Path(process.psim)
0114 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0115 process.endjob_step = cms.EndPath(process.endOfProcess)
0116 
0117 # Schedule definition
0118 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step)
0119 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0120 associatePatAlgosToolsTask(process)
0121 # filter all path with the production filter sequence
0122 for path in process.paths:
0123     getattr(process,path).insert(0, process.ProductionFilterSequence)
0124 
0125 
0126 
0127 # Customisation from command line
0128 
0129 # Add early deletion of temporary data products to reduce peak memory need
0130 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0131 process = customiseEarlyDelete(process)
0132 # End adding early deletion