File indexing completed on 2024-04-06 12:20:26
0001
0002
0003
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007
0008 process = cms.Process('L1')
0009
0010
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0016 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0017 process.load('Configuration.Geometry.GeometryDB_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0019 process.load('Configuration.StandardSequences.Generator_cff')
0020 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
0021 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0022 process.load('Configuration.StandardSequences.SimIdeal_cff')
0023 process.load('Configuration.StandardSequences.Digi_cff')
0024 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0025 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027
0028 process.maxEvents = cms.untracked.PSet(
0029 input = cms.untracked.int32(1)
0030 )
0031
0032
0033 process.source = cms.Source("EmptySource")
0034
0035 process.options = cms.untracked.PSet(
0036
0037 )
0038
0039
0040 process.configurationMetadata = cms.untracked.PSet(
0041 version = cms.untracked.string('$Revision: 1.19 $'),
0042 annotation = cms.untracked.string('SingleElectronPt10_cfi.py nevts:1'),
0043 name = cms.untracked.string('Applications')
0044 )
0045
0046
0047
0048 process.output = cms.OutputModule("PoolOutputModule",
0049 splitLevel = cms.untracked.int32(0),
0050 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0051 outputCommands = cms.untracked.vstring("keep *",
0052 "drop *_mix_*_*"),
0053 fileName = cms.untracked.string('SingleElectronPt10_cfi_py_GEN_SIM_DIGI_L1.root'),
0054 dataset = cms.untracked.PSet(
0055 filterName = cms.untracked.string(''),
0056 dataTier = cms.untracked.string('')
0057 ),
0058 SelectEvents = cms.untracked.PSet(
0059 SelectEvents = cms.vstring('generation_step')
0060 )
0061 )
0062
0063
0064
0065
0066 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0067 from Configuration.AlCa.GlobalTag import GlobalTag
0068 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0069
0070 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0071 PGunParameters = cms.PSet(
0072 MaxPt = cms.double(25.01),
0073 MinPt = cms.double(24.99),
0074 PartID = cms.vint32(11),
0075 MaxEta = cms.double(2.5),
0076 MaxPhi = cms.double(3.14159265359),
0077 MinEta = cms.double(-2.5),
0078 MinPhi = cms.double(-3.14159265359)
0079 ),
0080 Verbosity = cms.untracked.int32(0),
0081 psethack = cms.string('single electron pt 25'),
0082 AddAntiParticle = cms.bool(True),
0083 firstRun = cms.untracked.uint32(1)
0084 )
0085
0086
0087 process.load('L1Trigger.L1TCalorimeter.caloStage2Params_cfi')
0088 process.load('L1Trigger.L1TCalorimeter.L1TCaloStage2_cff')
0089 process.caloStage2Layer1Digis.ecalToken = cms.InputTag("simEcalTriggerPrimitiveDigis")
0090 process.caloStage2Layer1Digis.hcalToken = cms.InputTag("simHcalTriggerPrimitiveDigis")
0091 process.esTest = cms.EDAnalyzer("EventSetupRecordDataGetter",
0092 toGet = cms.VPSet(cms.PSet(
0093 record = cms.string('L1TCaloParamsRcd'),
0094 data = cms.vstring('l1tCaloParams'))),
0095 verbose = cms.untracked.bool(True)
0096 )
0097
0098
0099 process.load('L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi')
0100
0101 process.load('L1Trigger.L1TCalorimeter.l1tStage2InputPatternWriter_cfi')
0102
0103
0104 process.MessageLogger = cms.Service(
0105 "MessageLogger",
0106 destinations = cms.untracked.vstring(
0107 'detailedInfo',
0108 'critical'
0109 ),
0110 detailedInfo = cms.untracked.PSet(
0111 threshold = cms.untracked.string('DEBUG')
0112 ),
0113 debugModules = cms.untracked.vstring(
0114 'caloStage2TowerDigis',
0115 'caloStage2Digis'
0116 )
0117 )
0118
0119
0120 process.load("CommonTools.UtilAlgos.TFileService_cfi")
0121 process.TFileService.fileName = cms.string('l1t.root')
0122
0123
0124 process.generation_step = cms.Path(process.pgen)
0125 process.simulation_step = cms.Path(process.psim)
0126 process.digitisation_step = cms.Path(process.pdigi)
0127 process.L1simulation_step = cms.Path(process.SimL1Emulator
0128 +process.esTest
0129 +process.L1TCaloStage2
0130 +process.l1tStage2CaloAnalyzer
0131 +process.l1tStage2InputPatternWriter)
0132 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0133 process.endjob_step = cms.EndPath(process.endOfProcess)
0134 process.output_step = cms.EndPath(process.output)
0135
0136
0137 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.endjob_step,process.output_step)
0138
0139 for path in process.paths:
0140 getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0141