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 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 |
+ |
}; |
30 |
+ |
|
31 |
+ |
struct L1Vars { |
32 |
+ |
//type: |
33 |
+ |
//0 = empty |
34 |
+ |
//1 = central jet |
35 |
+ |
//2 = tau jet |
36 |
+ |
//3 = forward jet |
37 |
+ |
unsigned int type; |
38 |
+ |
int bx; |
39 |
+ |
float pT; |
40 |
+ |
float ET; |
41 |
+ |
float eta; |
42 |
+ |
float phi; |
43 |
+ |
}; |
44 |
+ |
|
45 |
|
struct GenVars { |
46 |
|
bool valid; |
47 |
+ |
double E; |
48 |
|
double pT; |
49 |
|
double eta; |
50 |
+ |
double y; |
51 |
|
double phi; |
52 |
|
int charge; |
53 |
|
int pdgId; |
59 |
|
}; |
60 |
|
|
61 |
|
struct BaseVars { |
62 |
+ |
double E; |
63 |
|
double pT; |
64 |
|
double eta; |
65 |
+ |
double y; |
66 |
|
double phi; |
67 |
|
float charge; |
68 |
|
double vx; |
91 |
|
float hOverE; |
92 |
|
float deltaPhiIn; |
93 |
|
float deltaEtaIn; |
94 |
+ |
bool ecalDrivenSeed; |
95 |
+ |
bool trackerDrivenSeed; |
96 |
|
}; |
97 |
|
|
98 |
+ |
struct MuTrkVars { |
99 |
+ |
float IPd0; |
100 |
+ |
float IPdz; |
101 |
+ |
unsigned int nHits; |
102 |
+ |
}; |
103 |
+ |
|
104 |
|
struct MuIsoVars { |
105 |
|
float sumPt; |
106 |
|
float emEt; |
120 |
|
unsigned int nMatchesTight; |
121 |
|
}; |
122 |
|
|
123 |
< |
struct TauLeadTrkVars{ |
123 |
> |
struct TrkVars{ |
124 |
|
double pT; |
125 |
|
double eta; |
126 |
|
double phi; |
175 |
|
float byIsolation; |
176 |
|
float againstElectron; |
177 |
|
float againstMuon; |
178 |
+ |
float byIsolationUsingLeadingPion; |
179 |
+ |
float byTaNC; |
180 |
+ |
float byTaNCfrHalfPercent; |
181 |
+ |
float byTaNCfrOnePercent; |
182 |
+ |
float byTaNCfrQuarterPercent; |
183 |
+ |
float byTaNCfrTenthPercent; |
184 |
+ |
float ecalIsolationUsingLeadingPion; |
185 |
+ |
float leadingPionPtCut; |
186 |
+ |
float trackIsolationUsingLeadingPion; |
187 |
|
}; |
188 |
|
|
189 |
|
struct PFTauEleIDVars{ |
207 |
|
int partonFlavour; |
208 |
|
unsigned int nAssociatedTracks; |
209 |
|
double rawpT; |
210 |
+ |
float etaMean; |
211 |
+ |
float phiMean; |
212 |
+ |
float etaEtaMoment; |
213 |
+ |
float phiPhiMoment; |
214 |
+ |
float etaPhiMoment; |
215 |
+ |
bool l1Match; |
216 |
+ |
bool hltMatch; |
217 |
|
//double rawEta; |
218 |
|
//double rawPhi; |
219 |
|
}; |
235 |
|
double n60; |
236 |
|
}; |
237 |
|
|
238 |
< |
struct PFJetVars{ |
238 |
> |
struct JPTJetVars{ |
239 |
> |
float zspCorrection; |
240 |
> |
int elecMultiplicity; |
241 |
> |
std::vector<TrkVars> pionsInCone; |
242 |
> |
std::vector<TrkVars> pionsCurledOut; |
243 |
> |
std::vector<TrkVars> pionsCurledIn; |
244 |
> |
std::vector<TrkVars> elecsInCone; |
245 |
> |
std::vector<TrkVars> elecsCurledOut; |
246 |
> |
std::vector<TrkVars> elecsCurledIn; |
247 |
> |
std::vector<TrkVars> muonsInCone; |
248 |
> |
std::vector<TrkVars> muonsCurledOut; |
249 |
> |
std::vector<TrkVars> muonsCurledIn; |
250 |
> |
}; |
251 |
> |
|
252 |
> |
struct JPTPFJetVars{ |
253 |
|
double chargedHadronEnergy; |
254 |
|
double chargedHadronEnergyFraction; |
255 |
|
double neutralHadronEnergy; |
256 |
|
double neutralHadronEnergyFraction; |
257 |
|
double chargedEmEnergy; |
258 |
|
double chargedEmEnergyFraction; |
190 |
– |
double chargedMuEnergy; |
191 |
– |
double chargedMuEnergyFraction; |
259 |
|
double neutralEmEnergy; |
260 |
|
double neutralEmEnergyFraction; |
261 |
|
double chargedMultiplicity; |
195 |
– |
double neutralMultiplicity; |
262 |
|
double muonMultiplicity; |
263 |
|
}; |
264 |
|
|
265 |
+ |
struct PFJetVars{ |
266 |
+ |
double chargedMuEnergy; |
267 |
+ |
double chargedMuEnergyFraction; |
268 |
+ |
double neutralMultiplicity; |
269 |
+ |
}; |
270 |
+ |
|
271 |
|
struct JetBtagVars{ |
272 |
|
double cSV; |
273 |
|
double cSVMVA; |
274 |
|
double iPMVA; |
275 |
|
double bProba; |
276 |
|
double probability; |
277 |
< |
double sSV; |
278 |
< |
double softElectron; |
277 |
> |
double sSVHE; |
278 |
> |
double sSVHP; |
279 |
> |
double softElectronByPt; |
280 |
> |
double softElectronByIP3d; |
281 |
|
double softMuon; |
282 |
< |
double softMuonNoIP; |
282 |
> |
double softMuonByPt; |
283 |
> |
double softMuonByIP3d; |
284 |
|
double tCHE; |
285 |
|
double tCHP; |
286 |
|
}; |
287 |
|
|
288 |
+ |
|
289 |
+ |
struct JetIDVars{ |
290 |
+ |
double fHPD; |
291 |
+ |
double fRBX; |
292 |
+ |
int n90Hits; |
293 |
+ |
//double fSubDetector1; |
294 |
+ |
//double fSubDetector2; |
295 |
+ |
//double fSubDetector3; |
296 |
+ |
//double fSubDetector4; |
297 |
+ |
double restrictedEMF; |
298 |
+ |
int nHCALTowers; |
299 |
+ |
int nECALTowers; |
300 |
+ |
//double approximatefHPD; |
301 |
+ |
//double approximatefRBX; |
302 |
+ |
int hitsInN90; |
303 |
+ |
// muon hits id |
304 |
+ |
//int numberOfHits2RPC; |
305 |
+ |
//int numberOfHits3RPC; |
306 |
+ |
//int numberOfHitsRPC; |
307 |
+ |
}; |
308 |
+ |
|
309 |
+ |
|
310 |
|
struct MetVars{ |
311 |
|
double mET; |
312 |
|
double mEx; |
323 |
|
}; |
324 |
|
|
325 |
|
|
326 |
+ |
struct VertexVars{ |
327 |
+ |
std::vector<float> trackWeights; |
328 |
+ |
double chi2; |
329 |
+ |
double ndof; |
330 |
+ |
double x; |
331 |
+ |
double y; |
332 |
+ |
double z; |
333 |
+ |
double xError; |
334 |
+ |
double yError; |
335 |
+ |
double zError; |
336 |
+ |
double cov01; |
337 |
+ |
double cov02; |
338 |
+ |
double cov12; |
339 |
+ |
}; |
340 |
+ |
|
341 |
+ |
double DeltaPhi(const double phi1, const double phi2); |
342 |
+ |
|
343 |
+ |
double DeltaR(const BaseVars & v1, const BaseVars & v2); |
344 |
+ |
double DeltaR(const BaseVars & v1, const GenVars & v2); |
345 |
+ |
|
346 |
+ |
double SameSign(const BaseVars & v1, const BaseVars & v2); |
347 |
+ |
|
348 |
+ |
double OppSign(const BaseVars & v1, const BaseVars & v2); |
349 |
+ |
|
350 |
+ |
TLorentzVector FourMomentum(const BaseVars & v, const double scale=1) ; |
351 |
+ |
|
352 |
+ |
double TransverseMass(const BaseVars & leg1, |
353 |
+ |
const BaseVars & leg2, |
354 |
+ |
const double mEx, |
355 |
+ |
const double mEy); |
356 |
+ |
|
357 |
+ |
double TransverseMass(const BaseVars & leg1, |
358 |
+ |
const double mEx, |
359 |
+ |
const double mEy); |
360 |
+ |
|
361 |
+ |
TLorentzVector FourMomentumCDFmethod(const BaseVars & leg1, |
362 |
+ |
const BaseVars & leg2, |
363 |
+ |
double mEx, |
364 |
+ |
double mEy); |
365 |
+ |
|
366 |
+ |
TLorentzVector FourMomentumCollinearApprox(const BaseVars & leg1, |
367 |
+ |
const BaseVars & leg2, |
368 |
+ |
double mEx, |
369 |
+ |
double mEy); |
370 |
+ |
|
371 |
+ |
double EtaDetector(const BaseVars & v1); |
372 |
+ |
double EtaDetector(const GenVars & v1); |
373 |
|
|
374 |
|
}//namespace |
375 |
+ |
|
376 |
|
#endif |