Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.StandardSequences.Eras import eras
0004 
0005 process = cms.Process('PROD',eras.Run3)
0006 
0007 # import of standard configurations
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0010 process.load('Configuration.Geometry.GeometryExtended2021Reco_cff')
0011 process.load('Configuration.StandardSequences.MagneticField_cff')
0012 process.load('Configuration.StandardSequences.Services_cff')
0013 process.load("Configuration.EventContent.EventContent_cff")
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('Configuration.StandardSequences.SimIdeal_cff')
0016 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0017 process.load('FWCore.MessageService.MessageLogger_cfi')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 from Configuration.AlCa.GlobalTag import GlobalTag
0021 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
0022 
0023 if hasattr(process,'MessageLogger'):
0024     process.MessageLogger.HcalValidation=dict()
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(5000)
0028 )
0029 
0030 process.load("IOMC.RandomEngine.IOMC_cff")
0031 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0032 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0033 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0034 
0035 process.Timing = cms.Service("Timing")
0036 
0037 
0038 process.options = cms.untracked.PSet(
0039 
0040 )
0041 
0042 # Input source
0043 process.source = cms.Source("EmptySource",
0044     firstRun        = cms.untracked.uint32(1),
0045     firstEvent      = cms.untracked.uint32(1)
0046 )
0047 
0048 # Additional output definition
0049 
0050 # Production Info
0051 process.configurationMetadata = cms.untracked.PSet(
0052     version = cms.untracked.string(''),
0053     annotation = cms.untracked.string(''),
0054     name = cms.untracked.string('Applications')
0055 )
0056 
0057 
0058 # Output definition
0059 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0060     SelectEvents = cms.untracked.PSet(
0061         SelectEvents = cms.vstring('generation_step')
0062     ),
0063     dataset = cms.untracked.PSet(
0064         dataTier = cms.untracked.string('GEN-SIM'),
0065         filterName = cms.untracked.string('')
0066     ),
0067     fileName = cms.untracked.string('file:step1.root'),
0068     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0069     splitLevel = cms.untracked.int32(0)
0070 )
0071 
0072 # Other statements
0073 
0074 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0075     PGunParameters = cms.PSet(
0076         MaxE  = cms.double(20.0),
0077         MinE  = cms.double(20.0),
0078         PartID = cms.vint32(13), #--->muon
0079         MinEta = cms.double(-5.0),
0080         MaxEta = cms.double(5.0),
0081         MinPhi = cms.double(-3.14159265359),
0082         MaxPhi = cms.double(3.14159265359)
0083     ),
0084     Verbosity = cms.untracked.int32(0),
0085     psethack = cms.string('single muon pt 20'),
0086     AddAntiParticle = cms.bool(True),
0087     firstRun = cms.untracked.uint32(1)
0088 )
0089 
0090 
0091 
0092 process.ProductionFilterSequence = cms.Sequence(process.generator)
0093 
0094 # Path and EndPath definitions
0095 process.generation_step = cms.Path(process.pgen)
0096 process.simulation_step = cms.Path(process.psim)
0097 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0098 process.endjob_step = cms.EndPath(process.endOfProcess)
0099 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0100 
0101 # Schedule definition
0102 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0103 
0104 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0105 associatePatAlgosToolsTask(process)
0106 # filter all path with the production filter sequence
0107 for path in process.paths:
0108     getattr(process,path).insert(0, process.ProductionFilterSequence)
0109 
0110 
0111 # Customisation from command line
0112 
0113 # Add early deletion of temporary data products to reduce peak memory need
0114 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0115 process = customiseEarlyDelete(process)
0116 # End adding early deletion