CMS 3D CMS Logo

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

Functions

def L1NtupleAOD
 
def L1NtupleAOD_MC
 
def L1NtupleAODCalo
 
def L1NtupleAODEMU
 
def L1NtupleAODEMU_MC
 
def L1NtupleAODEMUCalo
 
def L1NtupleAODEMUGEN_MC
 
def L1NtupleAODRAW
 
def L1NtupleAODRAWCalo
 
def L1NtupleAODRAWEMU
 
def L1NtupleAODRAWEMUCalo
 
def L1NtupleAODRAWEMUGEN_MC
 
def L1NtupleAODRAWEMULegacy
 
def L1NtupleEMU
 
def L1NtupleEMUCalo
 
def L1NtupleEMULegacy
 
def L1NtupleEMUNoEventTree
 
def L1NtupleGEN
 
def L1NtupleNANO
 
def L1NtupleNANOEMU
 
def L1NtupleRAW
 
def L1NtupleRAWCalo
 
def L1NtupleRAWEMU
 
def L1NtupleRAWEMUCalo
 
def L1NtupleRAWEMUGEN_MC
 
def L1NtupleRAWEMULegacy
 
def L1NtupleTFileOut
 customisations for L1 ntuple generation More...
 
def PrefireVetoFilter
 

Function Documentation

def customiseL1Ntuple.L1NtupleAOD (   process)

Definition at line 26 of file customiseL1Ntuple.py.

References customiseL1CustomReco.L1NtupleCustomReco(), and L1NtupleTFileOut().

Referenced by L1NtupleAOD_MC(), L1NtupleAODEMU(), L1NtupleAODRAW(), L1NtupleAODRAWEMU(), and L1NtupleAODRAWEMULegacy().

26 
27 def L1NtupleAOD(process):
28 
29  L1NtupleTFileOut(process)
30  L1NtupleCustomReco(process)
31 
32  process.load('L1Trigger.L1TNtuples.L1NtupleAOD_cff')
33  process.l1ntupleaod = cms.Path(
34  process.L1NtupleAOD
35  )
36 
37  process.schedule.append(process.l1ntupleaod)
38 
39  return process
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleAOD_MC (   process)

Definition at line 55 of file customiseL1Ntuple.py.

References L1NtupleAOD().

Referenced by L1NtupleAODEMU_MC(), L1NtupleAODEMUGEN_MC(), and L1NtupleAODRAWEMUGEN_MC().

55 
56 def L1NtupleAOD_MC(process):
57 
58  L1NtupleAOD(process)
59 
60  process.l1JetRecoTree.jecToken = cms.untracked.InputTag("ak4PFCHSL1FastL2L3Corrector")
61 
62  return process
63 
64 
def customiseL1Ntuple.L1NtupleAODCalo (   process)

Definition at line 40 of file customiseL1Ntuple.py.

References customiseL1CustomReco.L1NtupleCustomReco(), and L1NtupleTFileOut().

Referenced by L1NtupleAODEMUCalo(), L1NtupleAODRAWCalo(), and L1NtupleAODRAWEMUCalo().

40 
41 def L1NtupleAODCalo(process):
42 
43  L1NtupleTFileOut(process)
44  L1NtupleCustomReco(process)
45 
46  process.load('L1Trigger.L1TNtuples.L1NtupleAODCalo_cff')
47  process.l1ntupleaodcalo = cms.Path(
48  process.L1NtupleAODCalo
49  )
50 
51  process.schedule.append(process.l1ntupleaodcalo)
52 
53  return process
54 
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleAODEMU (   process)

Definition at line 243 of file customiseL1Ntuple.py.

References L1NtupleAOD(), and L1NtupleEMU().

244 def L1NtupleAODEMU(process):
245 
246  L1NtupleEMU(process)
247  L1NtupleAOD(process)
248 
249  return process
def customiseL1Ntuple.L1NtupleAODEMU_MC (   process)

Definition at line 258 of file customiseL1Ntuple.py.

References L1NtupleAOD_MC(), and L1NtupleEMU().

259 def L1NtupleAODEMU_MC(process):
260 
261  L1NtupleEMU(process)
262  L1NtupleAOD_MC(process)
263 
264  return process
265 
def customiseL1Ntuple.L1NtupleAODEMUCalo (   process)

Definition at line 250 of file customiseL1Ntuple.py.

References L1NtupleAODCalo(), and L1NtupleEMUCalo().

251 def L1NtupleAODEMUCalo(process):
252 
253  L1NtupleEMUCalo(process)
254  L1NtupleAODCalo(process)
255 
256  return process
257 
def customiseL1Ntuple.L1NtupleAODEMUGEN_MC (   process)

Definition at line 274 of file customiseL1Ntuple.py.

References L1NtupleAOD_MC(), L1NtupleEMU(), and L1NtupleGEN().

275 def L1NtupleAODEMUGEN_MC(process):
276 
277  L1NtupleEMU(process)
278  L1NtupleAOD_MC(process)
279  L1NtupleGEN(process)
280 
281  return process
def customiseL1Ntuple.L1NtupleAODRAW (   process)

Definition at line 203 of file customiseL1Ntuple.py.

References L1NtupleAOD(), and L1NtupleRAW().

204 def L1NtupleAODRAW(process):
205 
206  L1NtupleRAW(process)
207  L1NtupleAOD(process)
208 
209  return process
def customiseL1Ntuple.L1NtupleAODRAWCalo (   process)

Definition at line 210 of file customiseL1Ntuple.py.

References L1NtupleAODCalo(), and L1NtupleRAWCalo().

211 def L1NtupleAODRAWCalo(process):
212 
213  L1NtupleRAWCalo(process)
214  L1NtupleAODCalo(process)
215 
216  return process
def customiseL1Ntuple.L1NtupleAODRAWEMU (   process)

Definition at line 227 of file customiseL1Ntuple.py.

References L1NtupleAOD(), L1NtupleEMU(), and L1NtupleRAW().

228 def L1NtupleAODRAWEMU(process):
229 
230  L1NtupleRAW(process)
231  L1NtupleEMU(process)
232  L1NtupleAOD(process)
233 
234  return process
def customiseL1Ntuple.L1NtupleAODRAWEMUCalo (   process)

Definition at line 235 of file customiseL1Ntuple.py.

References L1NtupleAODCalo(), L1NtupleEMUCalo(), and L1NtupleRAWCalo().

236 def L1NtupleAODRAWEMUCalo(process):
237 
238  L1NtupleRAWCalo(process)
239  L1NtupleEMUCalo(process)
240  L1NtupleAODCalo(process)
241 
242  return process
def customiseL1Ntuple.L1NtupleAODRAWEMUGEN_MC (   process)

Definition at line 282 of file customiseL1Ntuple.py.

References L1NtupleAOD_MC(), L1NtupleEMU(), L1NtupleGEN(), and L1NtupleRAW().

283 def L1NtupleAODRAWEMUGEN_MC(process):
284 
285  L1NtupleRAW(process)
286  L1NtupleEMU(process)
287  L1NtupleAOD_MC(process)
288  L1NtupleGEN(process)
289 
290  return process
def customiseL1Ntuple.L1NtupleAODRAWEMULegacy (   process)

Definition at line 217 of file customiseL1Ntuple.py.

References L1NtupleAOD(), L1NtupleEMU(), L1NtupleEMULegacy(), and L1NtupleRAW().

218 def L1NtupleAODRAWEMULegacy(process):
219 
220  L1NtupleRAW(process)
221  L1NtupleEMU(process)
222  L1NtupleEMULegacy(process)
223  L1NtupleAOD(process)
224 
225  return process
226 
def customiseL1Ntuple.L1NtupleEMU (   process)

Definition at line 112 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleAODEMU(), L1NtupleAODEMU_MC(), L1NtupleAODEMUGEN_MC(), L1NtupleAODRAWEMU(), L1NtupleAODRAWEMUGEN_MC(), L1NtupleAODRAWEMULegacy(), L1NtupleRAWEMU(), L1NtupleRAWEMUGEN_MC(), and L1NtupleRAWEMULegacy().

113 def L1NtupleEMU(process):
114 
115  L1NtupleTFileOut(process)
116 
117  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
118  process.l1ntupleemu = cms.Path(
119  process.L1NtupleEMU
120  )
121 
122  process.schedule.append(process.l1ntupleemu)
123 
124  return process
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleEMUCalo (   process)

Definition at line 125 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleAODEMUCalo(), L1NtupleAODRAWEMUCalo(), and L1NtupleRAWEMUCalo().

126 def L1NtupleEMUCalo(process):
127 
128  L1NtupleTFileOut(process)
129 
130  process.load('L1Trigger.L1TNtuples.L1NtupleEMUCalo_cff')
131  process.l1ntupleemucalo = cms.Path(
132  process.L1NtupleEMUCalo
133  )
134 
135  process.schedule.append(process.l1ntupleemucalo)
136 
137  return process
138 
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleEMULegacy (   process)

Definition at line 139 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleAODRAWEMULegacy(), and L1NtupleRAWEMULegacy().

140 def L1NtupleEMULegacy(process):
141 
142  L1NtupleTFileOut(process)
143 
144  process.load('L1Trigger.L1TNtuples.L1NtupleEMULegacy_cff')
145  process.l1ntupleemulegacy = cms.Path(
146  process.L1NtupleEMULegacy
147  )
148 
149  process.schedule.append(process.l1ntupleemulegacy)
150 
151  return process
152 
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleEMUNoEventTree (   process)

Definition at line 291 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

292 def L1NtupleEMUNoEventTree(process):
293 
294  L1NtupleTFileOut(process)
295 
296  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
297  process.L1NtupleEMU = cms.Sequence( process.l1CaloTowerEmuTree+process.l1UpgradeEmuTree+process.l1UpgradeTfMuonEmuTree )
298  process.l1ntuplesim = cms.Path(
299  process.L1NtupleEMU
300  )
301  process.schedule.append(process.l1ntuplesim)
302 
303  return process
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleGEN (   process)

Definition at line 153 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleAODEMUGEN_MC(), L1NtupleAODRAWEMUGEN_MC(), and L1NtupleRAWEMUGEN_MC().

154 def L1NtupleGEN(process):
155 
156  L1NtupleTFileOut(process)
157 
158  process.load('L1Trigger.L1TNtuples.L1NtupleGEN_cff')
159  process.l1ntuplegen = cms.Path(
160  process.L1NtupleGEN
161  )
162 
163  process.schedule.append(process.l1ntuplegen)
164 
165  return process
166 
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleNANO (   process)

Definition at line 85 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleNANOEMU().

85 
86 def L1NtupleNANO(process):
87 
88  L1NtupleTFileOut(process)
89 
90  process.load('L1Trigger.L1TNtuples.L1NtupleNANO_cff')
91  process.l1ntuplenano = cms.Path(
92  process.L1NtupleNANO
93  )
94 
95  process.schedule.append(process.l1ntuplenano)
96 
97  return process
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleNANOEMU (   process)

Definition at line 181 of file customiseL1Ntuple.py.

References L1NtupleNANO().

182 def L1NtupleNANOEMU(process):
183 
184  L1NtupleNANO(process)
185  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
186 
187  process.L1NtupleGTEMU = cms.Sequence( process.l1uGTEmuTree )
188  process.l1ntuplegtemu = cms.Path(
189  process.L1NtupleGTEMU
190  )
191  process.schedule.append(process.l1ntuplegtemu)
192 
193  return process
def customiseL1Ntuple.L1NtupleRAW (   process)

Definition at line 65 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleAODRAW(), L1NtupleAODRAWEMU(), L1NtupleAODRAWEMUGEN_MC(), L1NtupleAODRAWEMULegacy(), L1NtupleRAWEMU(), L1NtupleRAWEMUGEN_MC(), and L1NtupleRAWEMULegacy().

65 
66 def L1NtupleRAW(process):
67 
68  L1NtupleTFileOut(process)
69 
70  process.load('L1Trigger.L1TNtuples.L1NtupleRAW_cff')
71  process.l1ntupleraw = cms.Path(
72  process.L1NtupleRAW
73  )
74 
75  process.schedule.append(process.l1ntupleraw)
76 
77  # for 5 BX of candidates in L1Extra
78  if "gctDigis" in process.producers:
79  process.gctDigis.numberOfGctSamplesToUnpack = cms.uint32(5)
80 
81  if "l1extraParticles" in process.producers:
82  process.l1extraParticles.centralBxOnly = cms.bool(False)
83 
84  return process
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleRAWCalo (   process)

Definition at line 98 of file customiseL1Ntuple.py.

References L1NtupleTFileOut().

Referenced by L1NtupleAODRAWCalo(), L1NtupleAODRAWEMUCalo(), and L1NtupleRAWEMUCalo().

98 
99 def L1NtupleRAWCalo(process):
100 
101  L1NtupleTFileOut(process)
102 
103  process.load('L1Trigger.L1TNtuples.L1NtupleRAWCalo_cff')
104  process.l1ntuplerawcalo = cms.Path(
105  process.L1NtupleRAWCalo
106  )
107 
108  process.schedule.append(process.l1ntuplerawcalo)
109 
110  return process
111 
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.L1NtupleRAWEMU (   process)

Definition at line 167 of file customiseL1Ntuple.py.

References L1NtupleEMU(), and L1NtupleRAW().

168 def L1NtupleRAWEMU(process):
169 
170  L1NtupleRAW(process)
171  L1NtupleEMU(process)
172 
173  return process
def customiseL1Ntuple.L1NtupleRAWEMUCalo (   process)

Definition at line 174 of file customiseL1Ntuple.py.

References L1NtupleEMUCalo(), and L1NtupleRAWCalo().

175 def L1NtupleRAWEMUCalo(process):
176 
177  L1NtupleRAWCalo(process)
178  L1NtupleEMUCalo(process)
179 
180  return process
def customiseL1Ntuple.L1NtupleRAWEMUGEN_MC (   process)

Definition at line 266 of file customiseL1Ntuple.py.

References L1NtupleEMU(), L1NtupleGEN(), and L1NtupleRAW().

267 def L1NtupleRAWEMUGEN_MC(process):
268 
269  L1NtupleRAW(process)
270  L1NtupleEMU(process)
271  L1NtupleGEN(process)
272 
273  return process
def customiseL1Ntuple.L1NtupleRAWEMULegacy (   process)

Definition at line 194 of file customiseL1Ntuple.py.

References L1NtupleEMU(), L1NtupleEMULegacy(), and L1NtupleRAW().

195 def L1NtupleRAWEMULegacy(process):
196 
197  L1NtupleRAW(process)
198  L1NtupleEMU(process)
199  L1NtupleEMULegacy(process)
200 
201  return process
202 
def customiseL1Ntuple.L1NtupleTFileOut (   process)

customisations for L1 ntuple generation

Add new customisations to this file!

Example usage : cmsDriver.py testNtuple -s NONE –customise=L1Trigger/L1TNtuples/customiseL1Ntuple.customiseL1NtupleAOD –conditions=auto:run2_mc_50ns –filein='/store/relval/CMSSW_7_5_0_pre1/RelValProdTTbar_13/AODSIM/MCRUN2_74_V7-v1/00000/48159643-5EE3-E411-818F-0025905A48F0.root' -n 100

Definition at line 14 of file customiseL1Ntuple.py.

Referenced by L1NtupleAOD(), L1NtupleAODCalo(), L1NtupleEMU(), L1NtupleEMUCalo(), L1NtupleEMULegacy(), L1NtupleEMUNoEventTree(), L1NtupleGEN(), L1NtupleNANO(), L1NtupleRAW(), and L1NtupleRAWCalo().

14 
15 def L1NtupleTFileOut(process):
16 
17  process.TFileService = cms.Service(
18  "TFileService",
19  fileName = cms.string('L1Ntuple.root')
20  )
21 
22  return process
def L1NtupleTFileOut
customisations for L1 ntuple generation
def customiseL1Ntuple.PrefireVetoFilter (   process)

Definition at line 304 of file customiseL1Ntuple.py.

305 def PrefireVetoFilter(process):
306 
307  process.load('EventFilter.L1TRawToDigi.triggerRulePrefireVetoFilter_cfi')
308 
309  if hasattr(process, 'l1ntupleraw'):
310  process.l1ntupleraw.insert(0,process.triggerRulePrefireVetoFilter)
311  if hasattr(process, 'l1ntupleemu'):
312  process.l1ntupleemu.insert(0,process.triggerRulePrefireVetoFilter)
313  if hasattr(process, 'l1ntupleaod'):
314  process.l1ntupleaod.insert(0,process.triggerRulePrefireVetoFilter)
315  if hasattr(process, 'l1ntuplerawcalo'):
316  process.l1ntuplerawcalo.insert(0,process.triggerRulePrefireVetoFilter)
317  if hasattr(process, 'l1ntupleemucalo'):
318  process.l1ntupleemucalo.insert(0,process.triggerRulePrefireVetoFilter)
319  if hasattr(process, 'l1ntupleaodcalo'):
320  process.l1ntupleaodcalo.insert(0,process.triggerRulePrefireVetoFilter)
321 
322  return process