1 import FWCore.ParameterSet.Config
as cms
3 static_config =
'L1Trigger.L1TCalorimeter.caloParams_2018_v1_4_cfi'
7 process.TFileService = cms.Service(
"TFileService",
8 fileName = cms.string(
"l1tCalo_2016_simHistos.root"),
9 closeFileFast = cms.untracked.bool(
True)
13 process.load(
'L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi')
14 process.l1tStage2CaloAnalyzer.doEvtDisp =
False
15 process.l1tStage2CaloAnalyzer.mpBx = 0
16 process.l1tStage2CaloAnalyzer.dmxBx = 0
17 process.l1tStage2CaloAnalyzer.allBx =
False
18 process.l1tStage2CaloAnalyzer.towerToken = cms.InputTag(
"simCaloStage2Digis",
"MP")
19 process.l1tStage2CaloAnalyzer.clusterToken = cms.InputTag(
"None")
20 process.l1tStage2CaloAnalyzer.mpEGToken = cms.InputTag(
"simCaloStage2Digis",
"MP")
21 process.l1tStage2CaloAnalyzer.mpTauToken = cms.InputTag(
"simCaloStage2Digis",
"MP")
22 process.l1tStage2CaloAnalyzer.mpJetToken = cms.InputTag(
"simCaloStage2Digis",
"MP")
23 process.l1tStage2CaloAnalyzer.mpEtSumToken = cms.InputTag(
"simCaloStage2Digis",
"MP")
24 process.l1tStage2CaloAnalyzer.egToken = cms.InputTag(
"simCaloStage2Digis")
25 process.l1tStage2CaloAnalyzer.tauToken = cms.InputTag(
"simCaloStage2Digis")
26 process.l1tStage2CaloAnalyzer.jetToken = cms.InputTag(
"simCaloStage2Digis")
27 process.l1tStage2CaloAnalyzer.etSumToken = cms.InputTag(
"simCaloStage2Digis")
29 import L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi
30 process.l1tCaloStage2HwHistos = L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi.l1tStage2CaloAnalyzer.clone()
31 process.l1tCaloStage2HwHistos.doEvtDisp =
False
32 process.l1tCaloStage2HwHistos.mpBx = 0
33 process.l1tCaloStage2HwHistos.dmxBx = 0
34 process.l1tCaloStage2HwHistos.allBx =
False
35 process.l1tCaloStage2HwHistos.towerToken = cms.InputTag(
"caloStage2Digis",
"CaloTower")
36 process.l1tCaloStage2HwHistos.clusterToken = cms.InputTag(
"None")
37 process.l1tCaloStage2HwHistos.mpEGToken = cms.InputTag(
"caloStage2Digis",
"MP")
38 process.l1tCaloStage2HwHistos.mpTauToken = cms.InputTag(
"caloStage2Digis",
"MP")
39 process.l1tCaloStage2HwHistos.mpJetToken = cms.InputTag(
"caloStage2Digis",
"MP")
40 process.l1tCaloStage2HwHistos.mpEtSumToken = cms.InputTag(
"caloStage2Digis",
"MP")
41 process.l1tCaloStage2HwHistos.egToken = cms.InputTag(
"caloStage2Digis",
"EGamma")
42 process.l1tCaloStage2HwHistos.tauToken = cms.InputTag(
"caloStage2Digis",
"Tau")
43 process.l1tCaloStage2HwHistos.jetToken = cms.InputTag(
"caloStage2Digis",
"Jet")
44 process.l1tCaloStage2HwHistos.etSumToken = cms.InputTag(
"caloStage2Digis",
"EtSum")
46 process.hwEmulHistos = cms.Path(
47 process.l1tStage2CaloAnalyzer
48 +process.l1tCaloStage2HwHistos
51 process.schedule.append(process.hwEmulHistos)
58 process.load(
'L1Trigger.L1TNtuples.L1NtupleRAW_cff')
59 process.load(
'L1Trigger.L1TNtuples.L1NtupleEMU_cff')
61 process.l1ntuplerawemu = cms.Path( process.L1NtupleRAW
62 + process.L1NtupleEMU )
63 process.schedule.append(process.l1ntuplerawemu)
67 def reEmul(process, useStatic=False, ntuple=False):
69 process.load(
'EventFilter.L1TRawToDigi.caloTowersFilter_cfi')
70 process.load(
'L1Trigger/L1TCalorimeter/simCaloStage2Digis_cfi')
72 process.simCaloStage2Digis.useStaticConfig =
True
73 process.load(static_config)
75 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
78 process.filterPath = cms.Path(process.caloTowersFilter)
79 process.skimOutput = cms.OutputModule(
"PoolOutputModule",
84 fileName = cms.untracked.string(
"comp.root"),
86 outputCommands = cms.untracked.vstring(
87 'keep *_caloStage2Digis_*_*',
88 'keep *_simCaloStage2Digis_*_*',
90 SelectEvents = cms.untracked.PSet(
91 SelectEvents = cms.vstring(
96 process.output_step = cms.EndPath(process.skimOutput)
98 process.schedule = cms.Schedule(
103 process.simCaloStage2Digis.towerToken = cms.InputTag(
"caloStage2Digis",
"CaloTower")
104 process.caloLayer2 = cms.Path(process.simCaloStage2Digis)
106 process.schedule.append(process.caloLayer2)
111 process.l1ntuplerawemu.insert(0,process.caloTowersFilter)
113 process.caloLayer2.insert(0,process.caloTowersFilter)
114 process.hwEmulHistos.insert(0,process.caloTowersFilter)
119 reEmul(process, useStatic=
False, ntuple=
False)
125 reEmul(process, useStatic=
True, ntuple=
False)
130 reEmul(process, useStatic=
False, ntuple=
True)
136 reEmul(process, useStatic=
True, ntuple=
True)