ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/Configuration/python/histogramDefinitions.py
Revision: 1.7
Committed: Wed Feb 20 16:26:17 2013 UTC (12 years, 2 months ago) by lantonel
Content type: text/x-python
Branch: MAIN
Changes since 1.6: +8 -16 lines
Log Message:
moved the 'function' variable into the cut string itself: e.g. abs(eta) now allowed

File Contents

# Content
1 import FWCore.ParameterSet.Config as cms
2
3
4 ###############################################
5 ##### Set up the histograms to be plotted #####
6 ###############################################
7
8
9 MuonHistograms = cms.PSet(
10 inputCollection = cms.string("muons"),
11 histograms = cms.VPSet (
12 cms.PSet (
13 name = cms.string("muonPt"),
14 title = cms.string("Muon Transverse Momentum; p_{T} [GeV]"),
15 bins = cms.vdouble(100, 0, 500),
16 inputVariables = cms.vstring("pt"),
17 ),
18 cms.PSet (
19 name = cms.string("muonEta"),
20 title = cms.string("Muon Eta; #eta"),
21 bins = cms.vdouble(100, -5, 5),
22 inputVariables = cms.vstring("eta"),
23 ),
24 cms.PSet (
25 name = cms.string("muonPhi"),
26 title = cms.string("Muon Phi; #phi"),
27 bins = cms.vdouble(100, -3.15, 3.15),
28 inputVariables = cms.vstring("phi"),
29 ),
30 cms.PSet (
31 name = cms.string("muonEtaPhi"),
32 title = cms.string("Muon Eta vs. Phi; #phi; #eta"),
33 bins = cms.vdouble(100, -3.15, 3.15, 100, -5, 5),
34 inputVariables = cms.vstring("phi","eta"),
35 ),
36 cms.PSet (
37 name = cms.string("muonD0"),
38 title = cms.string("Muon d_{0}; d_{0} [cm]"),
39 bins = cms.vdouble(5000, -1, 1),
40 inputVariables = cms.vstring("correctedD0Vertex"),
41 ),
42 cms.PSet (
43 name = cms.string("muonAbsD0"),
44 title = cms.string("Muon d_{0}; |d_{0}| [cm]"),
45 bins = cms.vdouble(5000, 0, 1),
46 inputVariables = cms.vstring("abs(correctedD0Vertex)")
47 ),
48 cms.PSet (
49 name = cms.string("muonD0Sig"),
50 title = cms.string("Muon d_{0} Significance; d_{0} / #sigma_{d_{0}}"),
51 bins = cms.vdouble(1000, -10.0, 10.0),
52 inputVariables = cms.vstring("correctedD0VertexSig"),
53 ),
54 cms.PSet (
55 name = cms.string("muonAbsD0Sig"),
56 title = cms.string("Muon d_{0} Significance; |d_{0}| / #sigma_{d_{0}}"),
57 bins = cms.vdouble(1000, 0, 10.0),
58 inputVariables = cms.vstring("abs(correctedD0VertexSig)"),
59 ),
60 cms.PSet (
61 name = cms.string("muonDz"),
62 title = cms.string("Muon d_{z}; d_{z} [cm]"),
63 bins = cms.vdouble(5000, -20, 20),
64 inputVariables = cms.vstring("correctedDZ"),
65 ),
66 cms.PSet (
67 name = cms.string("muonAbsDz"),
68 title = cms.string("Muon |d_{z}|; |d_{z}| [cm]"),
69 bins = cms.vdouble(5000, 0, 20),
70 inputVariables = cms.vstring("abs(correctedDZ)"),
71 ),
72 cms.PSet (
73 name = cms.string("muonDetIso"),
74 title = cms.string("Muon Detector-based Isolation; rel. iso."),
75 bins = cms.vdouble(1000, 0, 1),
76 inputVariables = cms.vstring("detIso"),
77 ),
78 cms.PSet (
79 name = cms.string("muonPFdBetaIso"),
80 title = cms.string("Muon PF-based #Delta#beta-corrected Isolation; rel. iso."),
81 bins = cms.vdouble(1000, 0, 1),
82 inputVariables = cms.vstring("relPFdBetaIso"),
83 ),
84
85 )
86 )
87
88 ElectronHistograms = cms.PSet(
89 inputCollection = cms.string("electrons"),
90 histograms = cms.VPSet (
91 cms.PSet (
92 name = cms.string("electronPt"),
93 title = cms.string("Electron Transverse Momentum; p_{T} [GeV]"),
94 bins = cms.vdouble(100, 0, 500),
95 inputVariables = cms.vstring("pt"),
96 ),
97 cms.PSet (
98 name = cms.string("electronEta"),
99 title = cms.string("Electron Eta; #eta"),
100 bins = cms.vdouble(100, -5, 5),
101 inputVariables = cms.vstring("eta"),
102 ),
103 cms.PSet (
104 name = cms.string("electronPhi"),
105 title = cms.string("Electron Phi; #phi"),
106 bins = cms.vdouble(100, -3.15, 3.15),
107 inputVariables = cms.vstring("phi"),
108 ),
109 cms.PSet (
110 name = cms.string("electronEtaPhi"),
111 title = cms.string("Electron Eta vs. Phi; #phi; #eta"),
112 bins = cms.vdouble(100, -3.15, 3.15, 100, -5, 5),
113 inputVariables = cms.vstring("phi","eta"),
114 ),
115 cms.PSet (
116 name = cms.string("electronD0"),
117 title = cms.string("Electron d_{0}; d_{0} [cm]"),
118 bins = cms.vdouble(5000, -1, 1),
119 inputVariables = cms.vstring("correctedD0Vertex"),
120 ),
121 cms.PSet (
122 name = cms.string("electronAbsD0"),
123 title = cms.string("Electron d_{0}; |d_{0}| [cm]"),
124 bins = cms.vdouble(5000, 0, 1),
125 inputVariables = cms.vstring("abs(correctedD0Vertex)"),
126 ),
127 cms.PSet (
128 name = cms.string("electronD0Sig"),
129 title = cms.string("Electron d_{0} Significance; d_{0} / #sigma_{d_{0}}"),
130 bins = cms.vdouble(1000, -10.0, 10.0),
131 inputVariables = cms.vstring("correctedD0VertexSig"),
132 ),
133 cms.PSet (
134 name = cms.string("electronAbsD0Sig"),
135 title = cms.string("Electron d_{0} Significance; |d_{0}| / #sigma_{d_{0}}"),
136 bins = cms.vdouble(1000, 0, 10.0),
137 inputVariables = cms.vstring("abs(correctedD0VertexSig)"),
138 ),
139 cms.PSet (
140 name = cms.string("electronDz"),
141 title = cms.string("Electron d_{z}; d_{z} [cm]"),
142 bins = cms.vdouble(5000, -20, 20),
143 inputVariables = cms.vstring("correctedDZ"),
144 ),
145 cms.PSet (
146 name = cms.string("electronAbsDz"),
147 title = cms.string("Electron |d_{z}|; |d_{z}| [cm]"),
148 bins = cms.vdouble(5000, 0, 20),
149 inputVariables = cms.vstring("abs(correctedDZ)"),
150 ),
151 cms.PSet (
152 name = cms.string("electronDetIso"),
153 title = cms.string("Electron Detector-based Isolation; rel. iso."),
154 bins = cms.vdouble(1000, 0, 1),
155 inputVariables = cms.vstring("detIso"),
156 ),
157 cms.PSet (
158 name = cms.string("electronPFrhoIso"),
159 title = cms.string("Electron PF-based #rho-corrected Isolation; rel. iso."),
160 bins = cms.vdouble(1000, 0, 1),
161 inputVariables = cms.vstring("relPFrhoIso"),
162 ),
163 cms.PSet (
164 name = cms.string("electronFbrem"),
165 title = cms.string("Electron Brem. Energy Fraction; fbrem"),
166 bins = cms.vdouble(1000, 0, 2),
167 inputVariables = cms.vstring("fbrem"),
168 ),
169 cms.PSet (
170 name = cms.string("electronMvaTrigV0"),
171 title = cms.string("Electron ID Triggering MVA Output"),
172 bins = cms.vdouble(1000, -1.1, 1.1),
173 inputVariables = cms.vstring("mvaTrigV0"),
174 ),
175 cms.PSet (
176 name = cms.string("electronMvaNonTrigV0"),
177 title = cms.string("Electron ID Non-triggering MVA Output"),
178 bins = cms.vdouble(1000, -1.1, 1.1),
179 inputVariables = cms.vstring("mvaNonTrigV0"),
180 ),
181 )
182 )
183
184
185
186 MCParticleHistograms = cms.PSet(
187 inputCollection = cms.string("mcparticles"),
188 histograms = cms.VPSet (
189 cms.PSet (
190 name = cms.string("mcparticleD0"),
191 title = cms.string("MCparticle d_{0}; d_{0} [cm]"),
192 bins = cms.vdouble(5000, -1, 1),
193 inputVariables = cms.vstring("d0"),
194 ),
195 cms.PSet (
196 name = cms.string("mcparticleAbsD0"),
197 title = cms.string("MCparticle d_{0}; |d_{0}| [cm]"),
198 bins = cms.vdouble(5000, 0, 1),
199 inputVariables = cms.vstring("abs(d0)"),
200 ),
201 cms.PSet (
202 name = cms.string("mcparticleDz"),
203 title = cms.string("MCparticle d_{z}; d_{z} [cm]"),
204 bins = cms.vdouble(5000, -20, 20),
205 inputVariables = cms.vstring("dz"),
206 ),
207 cms.PSet (
208 name = cms.string("mcparticleAbsDZ"),
209 title = cms.string("MCparticle d_{z}; |d_{z}| [cm]"),
210 bins = cms.vdouble(5000, 0, 20),
211 inputVariables = cms.vstring("abs(dz)"),
212 ),
213 )
214 )
215
216
217 MetHistograms = cms.PSet(
218 inputCollection = cms.string("mets"),
219 histograms = cms.VPSet (
220 cms.PSet (
221 name = cms.string("met"),
222 title = cms.string("Missing E_[T]; Missing E_{T} [GeV]"),
223 bins = cms.vdouble(500, 0, 500),
224 inputVariables = cms.vstring("pt"),
225 ),
226 )
227 )