CMS 3D CMS Logo

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

Functions

def hwEmulCompHistos
 
def L1NtupleRAWEMU
 
def reEmul
 
def valHistosDB
 
def valHistosDBL1Ntuple
 
def valHistosStatic
 
def valHistosStaticL1Ntuple
 

Variables

string static_config = 'L1Trigger.L1TCalorimeter.caloParams_2018_v1_4_cfi'
 

Function Documentation

def customiseReEmulateCaloLayer2.hwEmulCompHistos (   process)

Definition at line 5 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmul().

5 
6 def hwEmulCompHistos(process):
7 
8  process.TFileService = cms.Service("TFileService",
9  fileName = cms.string("l1tCalo_2016_simHistos.root"),
10  closeFileFast = cms.untracked.bool(True)
11  )
12 
13  # histograms
14  process.load('L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi')
15  process.l1tStage2CaloAnalyzer.doEvtDisp = False
16  process.l1tStage2CaloAnalyzer.mpBx = 0
17  process.l1tStage2CaloAnalyzer.dmxBx = 0
18  process.l1tStage2CaloAnalyzer.allBx = False
19  process.l1tStage2CaloAnalyzer.towerToken = cms.InputTag("simCaloStage2Digis", "MP")
20  process.l1tStage2CaloAnalyzer.clusterToken = cms.InputTag("None")
21  process.l1tStage2CaloAnalyzer.mpEGToken = cms.InputTag("simCaloStage2Digis", "MP")
22  process.l1tStage2CaloAnalyzer.mpTauToken = cms.InputTag("simCaloStage2Digis", "MP")
23  process.l1tStage2CaloAnalyzer.mpJetToken = cms.InputTag("simCaloStage2Digis", "MP")
24  process.l1tStage2CaloAnalyzer.mpEtSumToken = cms.InputTag("simCaloStage2Digis", "MP")
25  process.l1tStage2CaloAnalyzer.egToken = cms.InputTag("simCaloStage2Digis")
26  process.l1tStage2CaloAnalyzer.tauToken = cms.InputTag("simCaloStage2Digis")
27  process.l1tStage2CaloAnalyzer.jetToken = cms.InputTag("simCaloStage2Digis")
28  process.l1tStage2CaloAnalyzer.etSumToken = cms.InputTag("simCaloStage2Digis")
29 
30  import L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi
31  process.l1tCaloStage2HwHistos = L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi.l1tStage2CaloAnalyzer.clone()
32  process.l1tCaloStage2HwHistos.doEvtDisp = False
33  process.l1tCaloStage2HwHistos.mpBx = 0
34  process.l1tCaloStage2HwHistos.dmxBx = 0
35  process.l1tCaloStage2HwHistos.allBx = False
36  process.l1tCaloStage2HwHistos.towerToken = cms.InputTag("caloStage2Digis", "CaloTower")
37  process.l1tCaloStage2HwHistos.clusterToken = cms.InputTag("None")
38  process.l1tCaloStage2HwHistos.mpEGToken = cms.InputTag("caloStage2Digis", "MP")
39  process.l1tCaloStage2HwHistos.mpTauToken = cms.InputTag("caloStage2Digis","MP")
40  process.l1tCaloStage2HwHistos.mpJetToken = cms.InputTag("caloStage2Digis", "MP")
41  process.l1tCaloStage2HwHistos.mpEtSumToken = cms.InputTag("caloStage2Digis", "MP")
42  process.l1tCaloStage2HwHistos.egToken = cms.InputTag("caloStage2Digis", "EGamma")
43  process.l1tCaloStage2HwHistos.tauToken = cms.InputTag("caloStage2Digis", "Tau")
44  process.l1tCaloStage2HwHistos.jetToken = cms.InputTag("caloStage2Digis", "Jet")
45  process.l1tCaloStage2HwHistos.etSumToken = cms.InputTag("caloStage2Digis", "EtSum")
46 
47  process.hwEmulHistos = cms.Path(
48  process.l1tStage2CaloAnalyzer
49  +process.l1tCaloStage2HwHistos
50  )
51 
52  process.schedule.append(process.hwEmulHistos)
53 
54  return process
55 
def customiseReEmulateCaloLayer2.L1NtupleRAWEMU (   process)

Definition at line 56 of file customiseReEmulateCaloLayer2.py.

Referenced by reEmul().

56 
57 def L1NtupleRAWEMU(process):
58 
59  process.load('L1Trigger.L1TNtuples.L1NtupleRAW_cff')
60  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
61 
62  process.l1ntuplerawemu = cms.Path( process.L1NtupleRAW
63  + process.L1NtupleEMU )
64  process.schedule.append(process.l1ntuplerawemu)
65 
66  return process
def customiseReEmulateCaloLayer2.reEmul (   process,
  useStatic = False,
  ntuple = False 
)

Definition at line 67 of file customiseReEmulateCaloLayer2.py.

References hwEmulCompHistos(), and L1NtupleRAWEMU().

Referenced by valHistosDB(), valHistosDBL1Ntuple(), valHistosStatic(), and valHistosStaticL1Ntuple().

67 
68 def reEmul(process, useStatic=False, ntuple=False):
69 
70  process.load('EventFilter.L1TRawToDigi.caloTowersFilter_cfi')
71  process.load('L1Trigger/L1TCalorimeter/simCaloStage2Digis_cfi')
72  if useStatic:
73  process.simCaloStage2Digis.useStaticConfig = True
74  process.load(static_config)
75  else:
76  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
77 
78  if not ntuple:
79  process.filterPath = cms.Path(process.caloTowersFilter)
80  process.skimOutput = cms.OutputModule("PoolOutputModule",
81  #compressionAlgorithm = cms.untracked.string('LZMA'),
82  #compressionLevel = cms.untracked.int32(4),
83  #dropMetaData = cms.untracked.string('NONE'),
84  #fastCloning = cms.untracked.bool(True),
85  fileName = cms.untracked.string("comp.root"),
86  #overrideInputFileSplitLevels = cms.untracked.bool(False),
87  outputCommands = cms.untracked.vstring(
88  'keep *_caloStage2Digis_*_*',
89  'keep *_simCaloStage2Digis_*_*',
90  ),
91  SelectEvents = cms.untracked.PSet(
92  SelectEvents = cms.vstring(
93  'filterPath',
94  )
95  ),
96  )
97  process.output_step = cms.EndPath(process.skimOutput)
98 
99  process.schedule = cms.Schedule(
100  process.filterPath,
101  process.output_step,
102  )
103 
104  process.simCaloStage2Digis.towerToken = cms.InputTag("caloStage2Digis", "CaloTower")
105  process.caloLayer2 = cms.Path(process.simCaloStage2Digis)
106 
107  process.schedule.append(process.caloLayer2)
108 
109  hwEmulCompHistos(process)
110  if ntuple:
111  L1NtupleRAWEMU(process)
112  process.l1ntuplerawemu.insert(0,process.caloTowersFilter)
113 
114  process.caloLayer2.insert(0,process.caloTowersFilter)
115  process.hwEmulHistos.insert(0,process.caloTowersFilter)
116 
def customiseReEmulateCaloLayer2.valHistosDB (   process)

Definition at line 117 of file customiseReEmulateCaloLayer2.py.

References reEmul().

118 def valHistosDB(process):
119 
120  reEmul(process, useStatic=False, ntuple=False)
121  return process
122 
def customiseReEmulateCaloLayer2.valHistosDBL1Ntuple (   process)

Definition at line 128 of file customiseReEmulateCaloLayer2.py.

References reEmul().

129 def valHistosDBL1Ntuple(process):
130 
131  reEmul(process, useStatic=False, ntuple=True)
132  return process
133 
def customiseReEmulateCaloLayer2.valHistosStatic (   process)

Definition at line 123 of file customiseReEmulateCaloLayer2.py.

References reEmul().

124 def valHistosStatic(process):
125 
126  reEmul(process, useStatic=True, ntuple=False)
127  return process
def customiseReEmulateCaloLayer2.valHistosStaticL1Ntuple (   process)

Definition at line 134 of file customiseReEmulateCaloLayer2.py.

References reEmul().

135 def valHistosStaticL1Ntuple(process):
136 
137  reEmul(process, useStatic=True, ntuple=True)
138  return process
139 
140 
141 
142 

Variable Documentation

string customiseReEmulateCaloLayer2.static_config = 'L1Trigger.L1TCalorimeter.caloParams_2018_v1_4_cfi'

Definition at line 3 of file customiseReEmulateCaloLayer2.py.