CMS 3D CMS Logo

customiseL1Ntuple.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import os
3 
4 ##############################################################################
5 # customisations for L1 ntuple generation
6 #
7 # Add new customisations to this file!
8 #
9 # Example usage :
10 # 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
11 #
12 ##############################################################################
13 
14 def L1NtupleTFileOut(process):
15 
16  process.TFileService = cms.Service(
17  "TFileService",
18  fileName = cms.string('L1Ntuple.root')
19  )
20 
21  return process
22 
24 
25 
26 def L1NtupleAOD(process):
27 
28  L1NtupleTFileOut(process)
29  L1NtupleCustomReco(process)
30 
31  process.load('L1Trigger.L1TNtuples.L1NtupleAOD_cff')
32  process.l1ntupleaod = cms.Path(
33  process.L1NtupleAOD
34  )
35 
36  process.schedule.append(process.l1ntupleaod)
37 
38  return process
39 
40 
41 def L1NtupleAOD_MC(process):
42 
43  L1NtupleAOD(process)
44 
45  process.l1JetRecoTree.jecToken = cms.untracked.InputTag("ak4PFCHSL1FastL2L3Corrector")
46 
47  return process
48 
49 
50 
51 def L1NtupleRAW(process):
52 
53  L1NtupleTFileOut(process)
54 
55  process.load('L1Trigger.L1TNtuples.L1NtupleRAW_cff')
56  process.l1ntupleraw = cms.Path(
57  process.L1NtupleRAW
58  )
59 
60  process.schedule.append(process.l1ntupleraw)
61 
62  # for 5 BX of candidates in L1Extra
63  if "gctDigis" in process.producers:
64  process.gctDigis.numberOfGctSamplesToUnpack = cms.uint32(5)
65 
66  if "l1extraParticles" in process.producers:
67  process.l1extraParticles.centralBxOnly = cms.bool(False)
68 
69  return process
70 
71 
72 
73 def L1NtupleEMU(process):
74 
75  L1NtupleTFileOut(process)
76 
77  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
78  process.l1ntupleemu = cms.Path(
79  process.L1NtupleEMU
80  )
81 
82  process.schedule.append(process.l1ntupleemu)
83 
84  return process
85 
86 
87 def L1NtupleGEN(process):
88 
89  L1NtupleTFileOut(process)
90 
91  process.load('L1Trigger.L1TNtuples.L1NtupleGEN_cff')
92  process.l1ntuplegen = cms.Path(
93  process.L1NtupleGEN
94  )
95 
96  process.schedule.append(process.l1ntuplegen)
97 
98  return process
99 
100 
101 def L1NtupleRAWEMU(process):
102 
103  L1NtupleRAW(process)
104  L1NtupleEMU(process)
105 
106  return process
107 
108 
109 def L1NtupleAODRAW(process):
110 
111  L1NtupleRAW(process)
112  L1NtupleAOD(process)
113 
114  return process
115 
116 
117 def L1NtupleAODRAWEMU(process):
118 
119  L1NtupleRAW(process)
120  L1NtupleEMU(process)
121  L1NtupleAOD(process)
122 
123  return process
124 
125 def L1NtupleAODEMU(process):
126 
127  L1NtupleEMU(process)
128  L1NtupleAOD(process)
129 
130  return process
131 
132 def L1NtupleAODEMU_MC(process):
133 
134  L1NtupleEMU(process)
135  L1NtupleAOD_MC(process)
136 
137  return process
138 
139 
140 def L1NtupleRAWEMUGEN_MC(process):
141 
142  L1NtupleRAW(process)
143  L1NtupleEMU(process)
144  L1NtupleGEN(process)
145 
146  return process
147 
148 def L1NtupleAODEMUGEN_MC(process):
149 
150  L1NtupleEMU(process)
151  L1NtupleAOD_MC(process)
152  L1NtupleGEN(process)
153 
154  return process
155 
156 
158 
159  L1NtupleTFileOut(process)
160 
161  process.load('L1Trigger.L1TNtuples.L1NtupleEMU_cff')
162  process.L1NtupleEMU = cms.Sequence( process.l1CaloTowerEmuTree+process.l1UpgradeEmuTree+process.l1UpgradeTfMuonEmuTree )
163  process.l1ntuplesim = cms.Path(
164  process.L1NtupleEMU
165  )
166  process.schedule.append(process.l1ntuplesim)
167 
168  return process
169 
170 
def L1NtupleAODEMU_MC(process)
def L1NtupleAOD(process)
def L1NtupleAODRAW(process)
def L1NtupleEMUNoEventTree(process)
def L1NtupleEMU(process)
def L1NtupleAODEMUGEN_MC(process)
def L1NtupleAOD_MC(process)
def L1NtupleGEN(process)
def L1NtupleRAWEMU(process)
def L1NtupleRAWEMUGEN_MC(process)
def L1NtupleTFileOut(process)
customisations for L1 ntuple generation
def L1NtupleAODEMU(process)
def L1NtupleAODRAWEMU(process)
def L1NtupleRAW(process)