8 |
|
#include "TLorentzVector.h" |
9 |
|
|
10 |
|
namespace HbbAnalysis { |
11 |
< |
|
11 |
> |
|
12 |
|
struct MCVars { |
13 |
|
unsigned int index; |
14 |
|
double E; |
20 |
|
int status; |
21 |
|
}; |
22 |
|
|
23 |
+ |
struct HLTVars { |
24 |
+ |
float pT; |
25 |
+ |
float eta; |
26 |
+ |
float phi; |
27 |
+ |
int id; |
28 |
+ |
float mass; |
29 |
+ |
unsigned int type;//1=EM, 2=muon, 3=jet, 0=unknown |
30 |
+ |
}; |
31 |
+ |
|
32 |
+ |
struct L1Vars { |
33 |
+ |
//type: |
34 |
+ |
//0 = empty |
35 |
+ |
//1 = central jet |
36 |
+ |
//2 = tau jet |
37 |
+ |
//3 = forward jet |
38 |
+ |
unsigned int type; |
39 |
+ |
int bx; |
40 |
+ |
float pT; |
41 |
+ |
float ET; |
42 |
+ |
float eta; |
43 |
+ |
float phi; |
44 |
+ |
}; |
45 |
+ |
|
46 |
|
struct GenVars { |
47 |
|
bool valid; |
48 |
|
double E; |
88 |
|
}; |
89 |
|
|
90 |
|
struct EleIDVars{ |
91 |
+ |
unsigned short idAndIso; |
92 |
|
std::vector<std::pair<std::string,float> > electronIDs; |
93 |
|
float hOverE; |
94 |
|
float deltaPhiIn; |
98 |
|
}; |
99 |
|
|
100 |
|
struct MuTrkVars { |
101 |
< |
float IPd0; |
102 |
< |
float IPdz; |
103 |
< |
unsigned int nHits; |
101 |
> |
float dxy; |
102 |
> |
float dz; |
103 |
> |
float normalizedChi2; |
104 |
> |
unsigned int muonHits; |
105 |
> |
int charge; |
106 |
> |
unsigned int trackerHits; |
107 |
> |
unsigned int pixelHits; |
108 |
|
}; |
109 |
|
|
110 |
|
struct MuIsoVars { |
126 |
|
unsigned int nMatchesTight; |
127 |
|
}; |
128 |
|
|
129 |
+ |
|
130 |
|
struct TrkVars{ |
131 |
|
double pT; |
132 |
|
double eta; |
136 |
|
double IPz; |
137 |
|
float signedSipt; |
138 |
|
}; |
139 |
+ |
|
140 |
|
|
141 |
|
struct CaloTauIsoVars{ |
142 |
|
unsigned int nIsoTracks; |
244 |
|
}; |
245 |
|
|
246 |
|
struct JPTJetVars{ |
247 |
< |
int zspCorrection; |
248 |
< |
float elecMultiplicity; |
249 |
< |
std::vector<TrkVars> pionsInCone; |
250 |
< |
std::vector<TrkVars> pionsCurledOut; |
251 |
< |
std::vector<TrkVars> pionsCurledIn; |
252 |
< |
std::vector<TrkVars> elecsInCone; |
253 |
< |
std::vector<TrkVars> elecsCurledOut; |
254 |
< |
std::vector<TrkVars> elecsCurledIn; |
255 |
< |
std::vector<TrkVars> muonsInCone; |
256 |
< |
std::vector<TrkVars> muonsCurledOut; |
257 |
< |
std::vector<TrkVars> muonsCurledIn; |
247 |
> |
float zspCorrection; |
248 |
> |
int elecMultiplicity; |
249 |
> |
float calopT; |
250 |
> |
float caloEta; |
251 |
> |
//std::vector<TrkVars> pionsInCone; |
252 |
> |
//std::vector<TrkVars> pionsCurledOut; |
253 |
> |
//std::vector<TrkVars> pionsCurledIn; |
254 |
> |
//std::vector<TrkVars> elecsInCone; |
255 |
> |
//std::vector<TrkVars> elecsCurledOut; |
256 |
> |
//std::vector<TrkVars> elecsCurledIn; |
257 |
> |
//std::vector<TrkVars> muonsInCone; |
258 |
> |
//std::vector<TrkVars> muonsCurledOut; |
259 |
> |
//std::vector<TrkVars> muonsCurledIn; |
260 |
> |
std::vector< std::pair<unsigned int,double> > particleStatusPt; |
261 |
|
}; |
262 |
|
|
263 |
|
struct JPTPFJetVars{ |
305 |
|
//double fSubDetector2; |
306 |
|
//double fSubDetector3; |
307 |
|
//double fSubDetector4; |
308 |
< |
//double restrictedEMF; |
309 |
< |
//int nHCALTowers; |
310 |
< |
//int nECALTowers; |
308 |
> |
double restrictedEMF; |
309 |
> |
int nHCALTowers; |
310 |
> |
int nECALTowers; |
311 |
|
//double approximatefHPD; |
312 |
|
//double approximatefRBX; |
313 |
|
int hitsInN90; |
317 |
|
//int numberOfHitsRPC; |
318 |
|
}; |
319 |
|
|
320 |
+ |
struct JetECorVars{ |
321 |
+ |
std::vector<std::pair<std::string,double> > Levels; |
322 |
+ |
}; |
323 |
+ |
|
324 |
|
|
325 |
|
struct MetVars{ |
326 |
|
double mET; |
340 |
|
|
341 |
|
struct VertexVars{ |
342 |
|
std::vector<float> trackWeights; |
343 |
+ |
std::vector<float> trackpT; |
344 |
|
double chi2; |
345 |
|
double ndof; |
346 |
|
double x; |
347 |
|
double y; |
348 |
|
double z; |
349 |
+ |
double rho; |
350 |
|
double xError; |
351 |
|
double yError; |
352 |
|
double zError; |
355 |
|
double cov12; |
356 |
|
}; |
357 |
|
|
358 |
+ |
struct BeamSpotVars{ |
359 |
+ |
double x0; |
360 |
+ |
double y0; |
361 |
+ |
double z0; |
362 |
+ |
double sigmaZ; |
363 |
+ |
double BeamWidthX; |
364 |
+ |
double BeamWidthY; |
365 |
+ |
double x0Error; |
366 |
+ |
double y0Error; |
367 |
+ |
double z0Error; |
368 |
+ |
double sigmaZ0Error; |
369 |
+ |
double BeamWidthXError; |
370 |
+ |
double BeamWidthYError; |
371 |
+ |
//double dxdz; |
372 |
+ |
//double dydz; |
373 |
+ |
//double dxdzError; |
374 |
+ |
//double dydzError; |
375 |
+ |
//BeamType type(); |
376 |
+ |
//enum BeamType { Unknown=-1, Fake=0, LHC=1, Tracker=2 }; |
377 |
+ |
//double emittanceX() const { return emittanceX_; } |
378 |
+ |
//double emittanceY() const { return emittanceY_; } |
379 |
+ |
//double betaStar() const { return betaStar_; } |
380 |
+ |
}; |
381 |
+ |
|
382 |
+ |
|
383 |
+ |
|
384 |
+ |
|
385 |
|
double DeltaPhi(const double phi1, const double phi2); |
386 |
|
|
387 |
|
double DeltaR(const BaseVars & v1, const BaseVars & v2); |