CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customiseReEmulateCaloLayer2 Namespace Reference

Functions

def hwEmulCompHistos
 
def reEmulateLayer2
 
def reEmulateLayer2ValHistos
 

Function Documentation

def customiseReEmulateCaloLayer2.hwEmulCompHistos (   process)

Definition at line 18 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmulateLayer2ValHistos().

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

Definition at line 4 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmulateLayer2ValHistos().

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

Definition at line 64 of file customiseReEmulateCaloLayer2.py.

References hwEmulCompHistos(), and reEmulateLayer2().

64 
65 def reEmulateLayer2ValHistos(process):
66 
67  process.load('EventFilter.L1TRawToDigi.validationEventFilter_cfi')
68 
69 
70  reEmulateLayer2(process)
71  hwEmulCompHistos(process)
72 
73  process.l1ntupleraw.insert(0,process.validationEventFilter)
74  process.caloLayer2.insert(0,process.validationEventFilter)
75  process.hwEmulHistos.insert(0,process.validationEventFilter)
76 
77  return process
78