Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:42

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