ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/Configuration/python/histogramDefinitions.py
Revision: 1.3
Committed: Thu Feb 7 14:53:30 2013 UTC (12 years, 2 months ago) by lantonel
Content type: text/x-python
Branch: MAIN
Changes since 1.2: +52 -27 lines
Log Message:
added 2D histograms

File Contents

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