Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-18 08:23:39

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0004 process = cms.Process('SIM',Phase2C9)
0005 
0006 # import of standard configurations
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0012 process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0013 process.load('Configuration.Geometry.GeometryExtended2026D49_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.Digi_cff')
0020 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0021 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source("EmptySource")
0032 
0033 process.options = cms.untracked.PSet(
0034 
0035 )
0036 
0037 # Production Info
0038 process.configurationMetadata = cms.untracked.PSet(
0039     version = cms.untracked.string('$Revision: 1.20 $'),
0040     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0041     name = cms.untracked.string('Applications')
0042 )
0043 
0044 # Output definition
0045 
0046 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0047     splitLevel = cms.untracked.int32(0),
0048     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0049     outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0050     fileName = cms.untracked.string('file:junk.root'),
0051     dataset = cms.untracked.PSet(
0052         filterName = cms.untracked.string(''),
0053         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW')
0054     ),
0055     SelectEvents = cms.untracked.PSet(
0056         SelectEvents = cms.vstring('generation_step')
0057     )
0058 )
0059 
0060 # Additional output definition
0061 process.TFileService = cms.Service(
0062     "TFileService",
0063     fileName = cms.string("test_triggergeom.root")
0064     )
0065 
0066 
0067 
0068 # Other statements
0069 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0070 from Configuration.AlCa.GlobalTag import GlobalTag
0071 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '')
0072 
0073 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0074     PGunParameters = cms.PSet(
0075         MaxPt = cms.double(10.01),
0076         MinPt = cms.double(9.99),
0077         PartID = cms.vint32(13),
0078         MaxEta = cms.double(2.5),
0079         MaxPhi = cms.double(3.14159265359),
0080         MinEta = cms.double(-2.5),
0081         MinPhi = cms.double(-3.14159265359)
0082     ),
0083     Verbosity = cms.untracked.int32(0),
0084     psethack = cms.string('single electron pt 10'),
0085     AddAntiParticle = cms.bool(True),
0086     firstRun = cms.untracked.uint32(1)
0087 )
0088 
0089 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0090 
0091 
0092 # Path and EndPath definitions
0093 process.endjob_step = cms.EndPath(process.endOfProcess)
0094 
0095 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0096 # Eventually modify default geometry parameters
0097 from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_V11_Imp2
0098 process = custom_geometry_V11_Imp2(process)
0099 
0100 process.hgcaltriggergeomtester = cms.EDAnalyzer(
0101     "HGCalTriggerGeomTesterV9Imp2"
0102     )
0103 process.test_step = cms.Path(process.hgcaltriggergeomtester)
0104 
0105 # Schedule definition
0106 process.schedule = cms.Schedule(process.test_step,process.endjob_step)
0107 # filter all path with the production filter sequence
0108 for path in process.paths:
0109     getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0110 
0111 # Add early deletion of temporary data products to reduce peak memory need
0112 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0113 process = customiseEarlyDelete(process)