8 |
|
#include "TLorentzVector.h" |
9 |
|
|
10 |
|
namespace HbbAnalysis { |
11 |
< |
|
11 |
> |
|
12 |
|
struct MCVars { |
13 |
|
unsigned int index; |
14 |
|
double E; |
15 |
|
double pT; |
16 |
|
double eta; |
17 |
+ |
double y; |
18 |
|
double phi; |
19 |
|
int pdgId; |
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; |
49 |
|
double pT; |
50 |
|
double eta; |
51 |
+ |
double y; |
52 |
|
double phi; |
53 |
|
int charge; |
54 |
|
int pdgId; |
63 |
|
double E; |
64 |
|
double pT; |
65 |
|
double eta; |
66 |
+ |
double y; |
67 |
|
double phi; |
68 |
|
float charge; |
69 |
|
double vx; |
70 |
|
double vy; |
71 |
|
double vz; |
72 |
+ |
bool hltMatch; |
73 |
|
}; |
74 |
|
|
75 |
|
struct SCVars { |
89 |
|
}; |
90 |
|
|
91 |
|
struct EleIDVars{ |
92 |
+ |
unsigned short idAndIso; |
93 |
|
std::vector<std::pair<std::string,float> > electronIDs; |
94 |
|
float hOverE; |
95 |
|
float deltaPhiIn; |
96 |
|
float deltaEtaIn; |
97 |
|
bool ecalDrivenSeed; |
98 |
|
bool trackerDrivenSeed; |
99 |
+ |
float dB; |
100 |
|
}; |
101 |
|
|
102 |
|
struct MuTrkVars { |
103 |
< |
float IPd0; |
104 |
< |
float IPdz; |
105 |
< |
unsigned int nHits; |
103 |
> |
float dxy; |
104 |
> |
float dz; |
105 |
> |
float normalizedChi2; |
106 |
> |
unsigned int muonHits; |
107 |
> |
int charge; |
108 |
> |
unsigned int trackerHits; |
109 |
> |
unsigned int pixelHits; |
110 |
|
}; |
111 |
|
|
112 |
|
struct MuIsoVars { |
126 |
|
unsigned int nMatchesLoose; |
127 |
|
unsigned int nMatchesMedium; |
128 |
|
unsigned int nMatchesTight; |
129 |
+ |
float dB; |
130 |
|
}; |
131 |
|
|
132 |
< |
struct TauLeadTrkVars{ |
132 |
> |
|
133 |
> |
struct TrkVars{ |
134 |
|
double pT; |
135 |
|
double eta; |
136 |
|
double phi; |
139 |
|
double IPz; |
140 |
|
float signedSipt; |
141 |
|
}; |
142 |
+ |
|
143 |
|
|
144 |
|
struct CaloTauIsoVars{ |
145 |
|
unsigned int nIsoTracks; |
244 |
|
double n60; |
245 |
|
}; |
246 |
|
|
247 |
< |
struct PFJetVars{ |
247 |
> |
struct JPTJetVars{ |
248 |
> |
float zspCorrection; |
249 |
> |
int elecMultiplicity; |
250 |
> |
float calopT; |
251 |
> |
float caloEta; |
252 |
> |
//std::vector<TrkVars> pionsInCone; |
253 |
> |
//std::vector<TrkVars> pionsCurledOut; |
254 |
> |
//std::vector<TrkVars> pionsCurledIn; |
255 |
> |
//std::vector<TrkVars> elecsInCone; |
256 |
> |
//std::vector<TrkVars> elecsCurledOut; |
257 |
> |
//std::vector<TrkVars> elecsCurledIn; |
258 |
> |
//std::vector<TrkVars> muonsInCone; |
259 |
> |
//std::vector<TrkVars> muonsCurledOut; |
260 |
> |
//std::vector<TrkVars> muonsCurledIn; |
261 |
> |
std::vector< std::pair<unsigned int,double> > particleStatusPt; |
262 |
> |
}; |
263 |
> |
|
264 |
> |
struct JPTPFJetVars{ |
265 |
|
double chargedHadronEnergy; |
266 |
|
double chargedHadronEnergyFraction; |
267 |
|
double neutralHadronEnergy; |
268 |
|
double neutralHadronEnergyFraction; |
269 |
|
double chargedEmEnergy; |
270 |
|
double chargedEmEnergyFraction; |
218 |
– |
double chargedMuEnergy; |
219 |
– |
double chargedMuEnergyFraction; |
271 |
|
double neutralEmEnergy; |
272 |
|
double neutralEmEnergyFraction; |
273 |
|
double chargedMultiplicity; |
223 |
– |
double neutralMultiplicity; |
274 |
|
double muonMultiplicity; |
275 |
|
}; |
276 |
|
|
277 |
+ |
struct PFJetVars{ |
278 |
+ |
double chargedMuEnergy; |
279 |
+ |
double chargedMuEnergyFraction; |
280 |
+ |
double neutralMultiplicity; |
281 |
+ |
unsigned numberOfDaughters; |
282 |
+ |
double HFHadronEnergy; |
283 |
+ |
}; |
284 |
+ |
|
285 |
|
struct JetBtagVars{ |
286 |
|
double cSV; |
287 |
|
double cSVMVA; |
288 |
|
double iPMVA; |
289 |
|
double bProba; |
290 |
|
double probability; |
291 |
< |
double sSV; |
291 |
> |
double sSVHE; |
292 |
> |
double sSVHP; |
293 |
|
double softElectronByPt; |
294 |
|
double softElectronByIP3d; |
295 |
|
double softMuon; |
303 |
|
struct JetIDVars{ |
304 |
|
double fHPD; |
305 |
|
double fRBX; |
306 |
< |
double n90Hits; |
306 |
> |
int n90Hits; |
307 |
|
//double fSubDetector1; |
308 |
|
//double fSubDetector2; |
309 |
|
//double fSubDetector3; |
310 |
|
//double fSubDetector4; |
311 |
< |
//double restrictedEMF; |
312 |
< |
//int nHCALTowers; |
313 |
< |
//int nECALTowers; |
311 |
> |
double restrictedEMF; |
312 |
> |
int nHCALTowers; |
313 |
> |
int nECALTowers; |
314 |
|
//double approximatefHPD; |
315 |
|
//double approximatefRBX; |
316 |
< |
//int hitsInN90; |
316 |
> |
int hitsInN90; |
317 |
|
// muon hits id |
318 |
|
//int numberOfHits2RPC; |
319 |
|
//int numberOfHits3RPC; |
320 |
|
//int numberOfHitsRPC; |
321 |
|
}; |
322 |
|
|
323 |
+ |
struct JetECorVars{ |
324 |
+ |
std::vector<std::pair<std::string,double> > Levels; |
325 |
+ |
}; |
326 |
+ |
|
327 |
|
|
328 |
|
struct MetVars{ |
329 |
|
double mET; |
343 |
|
|
344 |
|
struct VertexVars{ |
345 |
|
std::vector<float> trackWeights; |
346 |
+ |
std::vector<float> trackpT; |
347 |
|
double chi2; |
348 |
|
double ndof; |
349 |
|
double x; |
350 |
|
double y; |
351 |
|
double z; |
352 |
+ |
double rho; |
353 |
|
double xError; |
354 |
|
double yError; |
355 |
|
double zError; |
358 |
|
double cov12; |
359 |
|
}; |
360 |
|
|
361 |
+ |
struct BeamSpotVars{ |
362 |
+ |
double x0; |
363 |
+ |
double y0; |
364 |
+ |
double z0; |
365 |
+ |
double sigmaZ; |
366 |
+ |
double BeamWidthX; |
367 |
+ |
double BeamWidthY; |
368 |
+ |
double x0Error; |
369 |
+ |
double y0Error; |
370 |
+ |
double z0Error; |
371 |
+ |
double sigmaZ0Error; |
372 |
+ |
double BeamWidthXError; |
373 |
+ |
double BeamWidthYError; |
374 |
+ |
//double dxdz; |
375 |
+ |
//double dydz; |
376 |
+ |
//double dxdzError; |
377 |
+ |
//double dydzError; |
378 |
+ |
//BeamType type(); |
379 |
+ |
//enum BeamType { Unknown=-1, Fake=0, LHC=1, Tracker=2 }; |
380 |
+ |
//double emittanceX() const { return emittanceX_; } |
381 |
+ |
//double emittanceY() const { return emittanceY_; } |
382 |
+ |
//double betaStar() const { return betaStar_; } |
383 |
+ |
}; |
384 |
+ |
|
385 |
+ |
|
386 |
+ |
|
387 |
+ |
|
388 |
|
double DeltaPhi(const double phi1, const double phi2); |
389 |
|
|
390 |
|
double DeltaR(const BaseVars & v1, const BaseVars & v2); |
415 |
|
double mEx, |
416 |
|
double mEy); |
417 |
|
|
418 |
+ |
double EtaDetector(const BaseVars & v1); |
419 |
+ |
double EtaDetector(const GenVars & v1); |
420 |
+ |
|
421 |
|
}//namespace |
422 |
|
|
423 |
|
#endif |