CMS 3D CMS Logo

Functions
customiseReEmulateCaloLayer2 Namespace Reference

Functions

def hwEmulCompHistos (process)
 
def L1NtupleRAWEMU (process)
 
def reEmulateLayer2 (process)
 
def reEmulateLayer2ValHistos (process)
 
def reEmulateLayer2ValHistosL1Ntuple (process)
 

Function Documentation

def customiseReEmulateCaloLayer2.hwEmulCompHistos (   process)

Definition at line 20 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmulateLayer2ValHistos(), and reEmulateLayer2ValHistosL1Ntuple().

20 def hwEmulCompHistos(process):
21 
22  process.TFileService = cms.Service("TFileService",
23  fileName = cms.string("l1tCalo_2016_simHistos.root"),
24  closeFileFast = cms.untracked.bool(True)
25  )
26 
27  # histograms
28  process.load('L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi')
29  process.l1tStage2CaloAnalyzer.doEvtDisp = False
30  process.l1tStage2CaloAnalyzer.mpBx = 0
31  process.l1tStage2CaloAnalyzer.dmxBx = 0
32  process.l1tStage2CaloAnalyzer.allBx = False
33  process.l1tStage2CaloAnalyzer.towerToken = cms.InputTag("simCaloStage2Digis", "MP")
34  process.l1tStage2CaloAnalyzer.clusterToken = cms.InputTag("None")
35  process.l1tStage2CaloAnalyzer.mpEGToken = cms.InputTag("simCaloStage2Digis", "MP")
36  process.l1tStage2CaloAnalyzer.mpTauToken = cms.InputTag("simCaloStage2Digis", "MP")
37  process.l1tStage2CaloAnalyzer.mpJetToken = cms.InputTag("simCaloStage2Digis", "MP")
38  process.l1tStage2CaloAnalyzer.mpEtSumToken = cms.InputTag("simCaloStage2Digis", "MP")
39  process.l1tStage2CaloAnalyzer.egToken = cms.InputTag("simCaloStage2Digis")
40  process.l1tStage2CaloAnalyzer.tauToken = cms.InputTag("simCaloStage2Digis")
41  process.l1tStage2CaloAnalyzer.jetToken = cms.InputTag("simCaloStage2Digis")
42  process.l1tStage2CaloAnalyzer.etSumToken = cms.InputTag("simCaloStage2Digis")
43 
44  import L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi
45  process.l1tCaloStage2HwHistos = L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi.l1tStage2CaloAnalyzer.clone()
46  process.l1tCaloStage2HwHistos.doEvtDisp = False
47  process.l1tCaloStage2HwHistos.mpBx = 0
48  process.l1tCaloStage2HwHistos.dmxBx = 0
49  process.l1tCaloStage2HwHistos.allBx = False
50  process.l1tCaloStage2HwHistos.towerToken = cms.InputTag("caloStage2Digis", "CaloTower")
51  process.l1tCaloStage2HwHistos.clusterToken = cms.InputTag("None")
52  process.l1tCaloStage2HwHistos.mpEGToken = cms.InputTag("caloStage2Digis", "MP")
53  process.l1tCaloStage2HwHistos.mpTauToken = cms.InputTag("caloStage2Digis","MP")
54  process.l1tCaloStage2HwHistos.mpJetToken = cms.InputTag("caloStage2Digis", "MP")
55  process.l1tCaloStage2HwHistos.mpEtSumToken = cms.InputTag("caloStage2Digis", "MP")
56  process.l1tCaloStage2HwHistos.egToken = cms.InputTag("caloStage2Digis", "EGamma")
57  process.l1tCaloStage2HwHistos.tauToken = cms.InputTag("caloStage2Digis", "Tau")
58  process.l1tCaloStage2HwHistos.jetToken = cms.InputTag("caloStage2Digis", "Jet")
59  process.l1tCaloStage2HwHistos.etSumToken = cms.InputTag("caloStage2Digis", "EtSum")
60 
61  process.hwEmulHistos = cms.Path(
62  process.l1tStage2CaloAnalyzer
63  +process.l1tCaloStage2HwHistos
64  )
65 
66  process.schedule.append(process.hwEmulHistos)
67 
68  return process
69 
70 
def customiseReEmulateCaloLayer2.L1NtupleRAWEMU (   process)

Definition at line 71 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmulateLayer2ValHistosL1Ntuple().

71 def L1NtupleRAWEMU(process):
72 
73  process.load('L1Trigger.L1TNtuples.L1NtupleRAW_cff')
74  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
75 
76  process.l1ntuplerawemu = cms.Path( process.L1NtupleRAW
77  + process.L1NtupleEMU )
78  process.schedule.append(process.l1ntuplerawemu)
79 
80  return process
81 
82 
def customiseReEmulateCaloLayer2.reEmulateLayer2 (   process)

Definition at line 4 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmulateLayer2ValHistos(), and reEmulateLayer2ValHistosL1Ntuple().

4 def reEmulateLayer2(process):
5 
6  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
7 
8  process.load('L1Trigger/L1TCalorimeter/simCaloStage2Digis_cfi')
9  process.load('L1Trigger.L1TCalorimeter.caloStage2Params_2017_v1_8_2_updateHFSF_v6MET_cfi')
10 
11  process.simCaloStage2Digis.towerToken = cms.InputTag("caloStage2Digis", "CaloTower")
12 
13  process.caloLayer2 = cms.Path(process.simCaloStage2Digis)
14 
15  process.schedule.append(process.caloLayer2)
16 
17  return process
18 
19 
def customiseReEmulateCaloLayer2.reEmulateLayer2ValHistos (   process)

Definition at line 83 of file customiseReEmulateCaloLayer2.py.

References hwEmulCompHistos(), and reEmulateLayer2().

84 
85  process.load('EventFilter.L1TRawToDigi.caloTowersFilter_cfi')
86 
87  reEmulateLayer2(process)
88  hwEmulCompHistos(process)
89 
90  process.caloLayer2.insert(0,process.caloTowersFilter)
91  process.hwEmulHistos.insert(0,process.caloTowersFilter)
92 
93  return process
94 
95 
96 
def customiseReEmulateCaloLayer2.reEmulateLayer2ValHistosL1Ntuple (   process)

Definition at line 97 of file customiseReEmulateCaloLayer2.py.

References hwEmulCompHistos(), L1NtupleRAWEMU(), and reEmulateLayer2().

98 
99  process.load('EventFilter.L1TRawToDigi.caloTowersFilter_cfi')
100 
101  reEmulateLayer2(process)
102  hwEmulCompHistos(process)
103  L1NtupleRAWEMU(process)
104 
105  process.caloLayer2.insert(0,process.caloTowersFilter)
106  process.hwEmulHistos.insert(0,process.caloTowersFilter)
107  process.l1ntuplerawemu.insert(0,process.caloTowersFilter)
108 
109  return process
110