ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Objects.hh
Revision: 1.4
Committed: Wed Feb 10 13:50:17 2010 UTC (15 years, 2 months ago) by amagnan
Content type: text/plain
Branch: MAIN
Changes since 1.3: +51 -2 lines
Log Message:
add vertices and crab config

File Contents

# Content
1 #ifndef HbbAnalysis_Objects_hh
2 #define HbbAnalysis_Objects_hh
3
4 #include <vector>
5 #include <string>
6 #include <iostream>
7
8 #include "TLorentzVector.h"
9
10 namespace HbbAnalysis {
11
12 struct MCVars {
13 unsigned int index;
14 double E;
15 double pT;
16 double eta;
17 double phi;
18 int pdgId;
19 int status;
20 };
21
22 struct GenVars {
23 bool valid;
24 double E;
25 double pT;
26 double eta;
27 double phi;
28 int charge;
29 int pdgId;
30 int status;
31 double mass;
32 double vx;
33 double vy;
34 double vz;
35 };
36
37 struct BaseVars {
38 double E;
39 double pT;
40 double eta;
41 double phi;
42 float charge;
43 double vx;
44 double vy;
45 double vz;
46 };
47
48 struct SCVars {
49 float sigmaEtaEta;
50 float sigmaIEtaIEta;
51 float e1x5;
52 float e2x5Max;
53 float e5x5;
54 float eOverP;
55 };
56
57 struct EleIsoVars {
58 float calo;
59 float track;
60 float ecal;
61 float hcal;
62 };
63
64 struct EleIDVars{
65 std::vector<std::pair<std::string,float> > electronIDs;
66 float hOverE;
67 float deltaPhiIn;
68 float deltaEtaIn;
69 };
70
71 struct MuTrkVars {
72 float IPd0;
73 float IPdz;
74 unsigned int nHits;
75 };
76
77 struct MuIsoVars {
78 float sumPt;
79 float emEt;
80 float hadEt;
81 float nTracks;
82 float nJets;
83 };
84
85 struct MuIDVars{
86 unsigned short type;
87 std::vector<unsigned short> ids;
88 float caloCompat;
89 float segCompat;
90 unsigned int nChambers;
91 unsigned int nMatchesLoose;
92 unsigned int nMatchesMedium;
93 unsigned int nMatchesTight;
94 };
95
96 struct TauLeadTrkVars{
97 double pT;
98 double eta;
99 double phi;
100 double matchDist;
101 double IPxy;
102 double IPz;
103 float signedSipt;
104 };
105
106 struct CaloTauIsoVars{
107 unsigned int nIsoTracks;
108 unsigned int nSigTracks;
109 float leadTrackHCAL3x3hitsEtSum;
110 float leadTrackHCAL3x3hottesthitDEta;
111 float signalTracksInvariantMass;
112 float tracksInvariantMass;
113 float isolationTracksPtSum;
114 float isolationECALhitsEtSum;
115 float maximumHCALhitEt;
116 };
117
118 struct CaloTauIDVars{
119 float byIsolation;
120 float byLeadingTrackFinding;
121 float byLeadingTrackPtCut;
122 };
123
124 struct PFTauIsoVars{
125 unsigned int nSigCands;
126 unsigned int nIsoCands;
127 double maximumHCALPFClusterEt;
128 //double emFraction;
129 double hcalTotOverPLead;
130 double hcalMaxOverPLead;
131 double hcal3x3OverPLead;
132 double ecalStripSumEOverPLead;
133 double bremsRecoveryEOverPLead;
134 };
135
136 //for hadr, neutr and gamma cands
137 struct PFTauCandVars{
138 unsigned int nSigCands;
139 unsigned int nIsoCands;
140 double isolationPtSum;
141 };
142
143 struct PFTauIDVars{
144 float byLeadingTrackFinding;
145 float byLeadingTrackPtCut;
146 float byTrackIsolation;
147 float byECALIsolation;
148 float byIsolation;
149 float againstElectron;
150 float againstMuon;
151 float byIsolationUsingLeadingPion;
152 float byTaNC;
153 float byTaNCfrHalfPercent;
154 float byTaNCfrOnePercent;
155 float byTaNCfrQuarterPercent;
156 float byTaNCfrTenthPercent;
157 float ecalIsolationUsingLeadingPion;
158 float leadingPionPtCut;
159 float trackIsolationUsingLeadingPion;
160 };
161
162 struct PFTauEleIDVars{
163 double pT;
164 double eta;
165 double phi;
166 float output;
167 float decision;
168 };
169
170 struct PFTauMuIDVars{
171 float caloCompat;
172 float segCompat;
173 float decision;
174 };
175
176 struct JetVars{
177 //1=had, 2=e, 3=mu for heavy quarks;
178 //2=uds, 3=g for light quarks
179 unsigned int flavour;
180 int partonFlavour;
181 unsigned int nAssociatedTracks;
182 double rawpT;
183 //double rawEta;
184 //double rawPhi;
185 };
186
187 struct CaloJetVars{
188 double maxEInEmTowers;
189 double maxEInHadTowers;
190 double energyFractionHadronic;
191 double emEnergyFraction;
192 double hadEnergyInHB;
193 double hadEnergyInHO;
194 double hadEnergyInHE;
195 double hadEnergyInHF;
196 double emEnergyInEB;
197 double emEnergyInEE;
198 double emEnergyInHF;
199 double towersArea;
200 double n90;
201 double n60;
202 };
203
204 struct PFJetVars{
205 double chargedHadronEnergy;
206 double chargedHadronEnergyFraction;
207 double neutralHadronEnergy;
208 double neutralHadronEnergyFraction;
209 double chargedEmEnergy;
210 double chargedEmEnergyFraction;
211 double chargedMuEnergy;
212 double chargedMuEnergyFraction;
213 double neutralEmEnergy;
214 double neutralEmEnergyFraction;
215 double chargedMultiplicity;
216 double neutralMultiplicity;
217 double muonMultiplicity;
218 };
219
220 struct JetBtagVars{
221 double cSV;
222 double cSVMVA;
223 double iPMVA;
224 double bProba;
225 double probability;
226 double sSV;
227 double softElectronByPt;
228 double softElectronByIP3d;
229 double softMuon;
230 double softMuonByPt;
231 double softMuonByIP3d;
232 double tCHE;
233 double tCHP;
234 };
235
236
237 struct JetIDVars{
238 double fHPD;
239 double fRBX;
240 int n90Hits;
241 //double fSubDetector1;
242 //double fSubDetector2;
243 //double fSubDetector3;
244 //double fSubDetector4;
245 //double restrictedEMF;
246 //int nHCALTowers;
247 //int nECALTowers;
248 //double approximatefHPD;
249 //double approximatefRBX;
250 //int hitsInN90;
251 // muon hits id
252 //int numberOfHits2RPC;
253 //int numberOfHits3RPC;
254 //int numberOfHitsRPC;
255 };
256
257
258 struct MetVars{
259 double mET;
260 double mEx;
261 double mEy;
262 double sumET;
263 double phi;
264 double mEtSig;
265 };
266
267 struct TriggerVars{
268 std::string name;
269 unsigned int index;
270 bool accept;
271 };
272
273
274 struct VertexVars{
275 std::vector<float> trackWeights;
276 double chi2;
277 double ndof;
278 double x;
279 double y;
280 double z;
281 double xError;
282 double yError;
283 double zError;
284 double cov01;
285 double cov02;
286 double cov12;
287 };
288
289 double DeltaPhi(const double phi1, const double phi2);
290
291 double DeltaR(const BaseVars & v1, const BaseVars & v2);
292
293 double SameSign(const BaseVars & v1, const BaseVars & v2);
294
295 double OppSign(const BaseVars & v1, const BaseVars & v2);
296
297 TLorentzVector FourMomentum(const BaseVars & v, const double scale=1) ;
298
299 double TransverseMass(const BaseVars & leg1,
300 const BaseVars & leg2,
301 const double mEx,
302 const double mEy);
303
304 double TransverseMass(const BaseVars & leg1,
305 const double mEx,
306 const double mEy);
307
308 TLorentzVector FourMomentumCDFmethod(const BaseVars & leg1,
309 const BaseVars & leg2,
310 double mEx,
311 double mEy);
312
313 TLorentzVector FourMomentumCollinearApprox(const BaseVars & leg1,
314 const BaseVars & leg2,
315 double mEx,
316 double mEy);
317
318 }//namespace
319
320 #endif