ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/Configuration/python/histogramDefinitions.py
Revision: 1.2
Committed: Mon Feb 4 17:02:28 2013 UTC (12 years, 2 months ago) by lantonel
Content type: text/x-python
Branch: MAIN
Changes since 1.1: +169 -109 lines
Log Message:
added MCparticle histograms

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 inputVariable = cms.string("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 inputVariable = cms.string("eta"),
23 ),
24 cms.PSet (
25 name = cms.string("muonD0"),
26 title = cms.string("Muon d_{0}; d_{0} [cm]"),
27 bins = cms.vdouble(1000, -1, 1),
28 inputVariable = cms.string("correctedD0Vertex"),
29 ),
30 cms.PSet (
31 name = cms.string("muonAbsD0"),
32 title = cms.string("Muon d_{0}; |d_{0}| [cm]"),
33 bins = cms.vdouble(1000, 0, 1),
34 inputVariable = cms.string("correctedD0Vertex"),
35 function = cms.string("abs"),
36 ),
37 cms.PSet (
38 name = cms.string("muonD0Sig"),
39 title = cms.string("Muon d_{0} Significance; d_{0} / #sigma_{d_{0}}"),
40 bins = cms.vdouble(1000, -10.0, 10.0),
41 inputVariable = cms.string("d0Sig"),
42 ),
43 cms.PSet (
44 name = cms.string("muonAbsD0Sig"),
45 title = cms.string("Muon d_{0} Significance; |d_{0}| / #sigma_{d_{0}}"),
46 bins = cms.vdouble(1000, 0, 10.0),
47 inputVariable = cms.string("d0Sig"),
48 function = cms.string("abs"),
49 ),
50 cms.PSet (
51 name = cms.string("muonDz"),
52 title = cms.string("Muon d_{z}; d_{z} [cm]"),
53 bins = cms.vdouble(1000, -20, 20),
54 inputVariable = cms.string("correctedDZ"),
55 ),
56 cms.PSet (
57 name = cms.string("muonAbsDz"),
58 title = cms.string("Muon |d_{z}|; |d_{z}| [cm]"),
59 bins = cms.vdouble(1000, 0, 20),
60 inputVariable = cms.string("correctedDZ"),
61 function = cms.string("abs"),
62 ),
63 cms.PSet (
64 name = cms.string("muonDetIso"),
65 title = cms.string("Muon Detector-based Isolation; rel. iso."),
66 bins = cms.vdouble(1000, 0, 1),
67 inputVariable = cms.string("detIso"),
68 ),
69 cms.PSet (
70 name = cms.string("muonPFdBetaIso"),
71 title = cms.string("Muon PF-based #Delta#beta-corrected Isolation; rel. iso."),
72 bins = cms.vdouble(1000, 0, 1),
73 inputVariable = cms.string("relPFdBetaIso"),
74 ),
75 )
76 )
77
78 ElectronHistograms = cms.PSet(
79 inputCollection = cms.string("electrons"),
80 histograms = cms.VPSet (
81 cms.PSet (
82 name = cms.string("electronPt"),
83 title = cms.string("Electron Transverse Momentum; p_{T} [GeV]"),
84 bins = cms.vdouble(100, 0, 500),
85 inputVariable = cms.string("pt"),
86 ),
87 cms.PSet (
88 name = cms.string("electronEta"),
89 title = cms.string("Electron Eta; #eta"),
90 bins = cms.vdouble(100, -5, 5),
91 inputVariable = cms.string("eta"),
92 ),
93 cms.PSet (
94 name = cms.string("electronD0"),
95 title = cms.string("Electron d_{0}; d_{0} [cm]"),
96 bins = cms.vdouble(1000, -1, 1),
97 inputVariable = cms.string("correctedD0Vertex"),
98 ),
99 cms.PSet (
100 name = cms.string("electronAbsD0"),
101 title = cms.string("Electron d_{0}; |d_{0}| [cm]"),
102 bins = cms.vdouble(1000, 0, 1),
103 inputVariable = cms.string("correctedD0Vertex"),
104 function = cms.string("abs"),
105 ),
106 cms.PSet (
107 name = cms.string("electronD0Sig"),
108 title = cms.string("Electron d_{0} Significance; d_{0} / #sigma_{d_{0}}"),
109 bins = cms.vdouble(1000, -10.0, 10.0),
110 inputVariable = cms.string("d0Sig"),
111 ),
112 cms.PSet (
113 name = cms.string("electronAbsD0Sig"),
114 title = cms.string("Electron d_{0} Significance; |d_{0}| / #sigma_{d_{0}}"),
115 bins = cms.vdouble(1000, 0, 10.0),
116 inputVariable = cms.string("d0Sig"),
117 function = cms.string("abs"),
118 ),
119 cms.PSet (
120 name = cms.string("electronDz"),
121 title = cms.string("Electron d_{z}; d_{z} [cm]"),
122 bins = cms.vdouble(1000, -20, 20),
123 inputVariable = cms.string("correctedDZ"),
124 ),
125 cms.PSet (
126 name = cms.string("electronAbsDz"),
127 title = cms.string("Electron |d_{z}|; |d_{z}| [cm]"),
128 bins = cms.vdouble(1000, 0, 20),
129 inputVariable = cms.string("correctedDZ"),
130 function = cms.string("abs"),
131 ),
132 cms.PSet (
133 name = cms.string("electronDetIso"),
134 title = cms.string("Electron Detector-based Isolation; rel. iso."),
135 bins = cms.vdouble(1000, 0, 1),
136 inputVariable = cms.string("detIso"),
137 ),
138 cms.PSet (
139 name = cms.string("electronPFrhoIso"),
140 title = cms.string("Electron PF-based #rho-corrected Isolation; rel. iso."),
141 bins = cms.vdouble(1000, 0, 1),
142 inputVariable = cms.string("relPFrhoIso"),
143 ),
144 cms.PSet (
145 name = cms.string("electronFbrem"),
146 title = cms.string("Electron Brem. Energy Fraction; fbrem"),
147 bins = cms.vdouble(1000, 0, 2),
148 inputVariable = cms.string("fbrem"),
149 ),
150 cms.PSet (
151 name = cms.string("electronMvaTrigV0"),
152 title = cms.string("Electron ID Triggering MVA Output"),
153 bins = cms.vdouble(1000, -1.1, 1.1),
154 inputVariable = cms.string("mvaTrigV0"),
155 ),
156 cms.PSet (
157 name = cms.string("electronMvaNonTrigV0"),
158 title = cms.string("Electron ID Non-triggering MVA Output"),
159 bins = cms.vdouble(1000, -1.1, 1.1),
160 inputVariable = cms.string("mvaNonTrigV0"),
161 ),
162 )
163 )
164
165
166
167 MCParticleHistograms = cms.PSet(
168 inputCollection = cms.string("mcparticles"),
169 histograms = cms.VPSet (
170 cms.PSet (
171 name = cms.string("mcparticleD0"),
172 title = cms.string("MCparticle d_{0}; d_{0} [cm]"),
173 bins = cms.vdouble(1000, -1, 1),
174 inputVariable = cms.string("d0"),
175 ),
176 cms.PSet (
177 name = cms.string("mcparticleAbsD0"),
178 title = cms.string("MCparticle d_{0}; |d_{0}| [cm]"),
179 bins = cms.vdouble(1000, 0, 1),
180 inputVariable = cms.string("d0"),
181 function = cms.string("abs"),
182 ),
183 cms.PSet (
184 name = cms.string("mcparticleDz"),
185 title = cms.string("MCparticle d_{z}; d_{z} [cm]"),
186 bins = cms.vdouble(1000, -20, 20),
187 inputVariable = cms.string("dz"),
188 ),
189 cms.PSet (
190 name = cms.string("mcparticleAbsDZ"),
191 title = cms.string("MCparticle d_{z}; |d_{z}| [cm]"),
192 bins = cms.vdouble(1000, 0, 20),
193 inputVariable = cms.string("dz"),
194 function = cms.string("abs"),
195 ),
196 )
197 )