Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
0004 
0005 process = cms.Process('SIM',Phase2C20I13M9)
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.GeometryExtended2026D94Reco_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 process.load('FWCore.MessageService.MessageLogger_cfi')
0022 process.load('Validation.HGCalValidation.hfnoseSimHitStudy_cfi')
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(10000),
0026     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0027 )
0028 
0029 if hasattr(process,'MessageLogger'):
0030     process.MessageLogger.HGCalGeom=dict()
0031     process.MessageLogger.HFNSim=dict()
0032     process.MessageLogger.HGCalValidation=dict()
0033 
0034 # Input source
0035 process.source = cms.Source("EmptySource")
0036 
0037 process.options = cms.untracked.PSet(
0038     IgnoreCompletely = cms.untracked.vstring(),
0039     Rethrow = cms.untracked.vstring(),
0040     TryToContinue = cms.untracked.vstring(),
0041     allowUnscheduled = cms.obsolete.untracked.bool,
0042     canDeleteEarly = cms.untracked.vstring(),
0043     emptyRunLumiMode = cms.obsolete.untracked.string,
0044     eventSetup = cms.untracked.PSet(
0045         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0046 
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('1000 GeV Muons nevts:1000'),
0066     name = cms.untracked.string('Applications'),
0067     version = cms.untracked.string('$Revision: 1.19 $')
0068 )
0069 
0070 # Output definition
0071 
0072 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0073     SelectEvents = cms.untracked.PSet(
0074         SelectEvents = cms.vstring('generation_step')
0075     ),
0076     dataset = cms.untracked.PSet(
0077         dataTier = cms.untracked.string('GEN-SIM'),
0078         filterName = cms.untracked.string('')
0079     ),
0080     fileName = cms.untracked.string('file:step1D94.root'),
0081     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0082     splitLevel = cms.untracked.int32(0)
0083 )
0084 
0085 # Additional output definition
0086 process.TFileService = cms.Service("TFileService",
0087                                    fileName = cms.string('hfnSimHitD94mu.root'),
0088                                    closeFileFast = cms.untracked.bool(True)
0089                                    )
0090 
0091 # Other statements
0092 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0093 from Configuration.AlCa.GlobalTag import GlobalTag
0094 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0095 
0096 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0097     PGunParameters = cms.PSet(
0098         PartID = cms.vint32(13),
0099         MinEta = cms.double(3.00),
0100         MaxEta = cms.double(4.30),
0101         MinPhi = cms.double(-3.1415926),
0102         MaxPhi = cms.double(3.1415926),
0103         MinE   = cms.double(1000.00),
0104         MaxE   = cms.double(1000.00)
0105     ),
0106     Verbosity       = cms.untracked.int32(0),
0107     AddAntiParticle = cms.bool(True)
0108 )
0109 
0110 
0111 process.ProductionFilterSequence = cms.Sequence(process.generator)
0112 
0113 # Path and EndPath definitions
0114 process.generation_step = cms.Path(process.pgen)
0115 process.simulation_step = cms.Path(process.psim)
0116 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0117 process.analysis_step   = cms.Path(process.hgcalSimHitStudy)
0118 process.endjob_step = cms.EndPath(process.endOfProcess)
0119 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0120 
0121 # Schedule definition
0122 process.schedule = cms.Schedule(process.generation_step,
0123                                 process.genfiltersummary_step,
0124                                 process.simulation_step,
0125                                 process.analysis_step,
0126                                 process.endjob_step,
0127 #                               process.FEVTDEBUGoutput_step
0128 )
0129 
0130 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0131 associatePatAlgosToolsTask(process)
0132 # filter all path with the production filter sequence
0133 for path in process.paths:
0134     getattr(process,path).insert(0, process.ProductionFilterSequence)
0135 
0136 
0137 # Customisation from command line
0138 
0139 # Add early deletion of temporary data products to reduce peak memory need
0140 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0141 process = customiseEarlyDelete(process)
0142 # End adding early deletion