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; |
88 |
|
}; |
89 |
|
|
90 |
|
struct EleIDVars{ |
91 |
+ |
bool idAndIso; |
92 |
|
std::vector<std::pair<std::string,float> > electronIDs; |
93 |
|
float hOverE; |
94 |
|
float deltaPhiIn; |
95 |
|
float deltaEtaIn; |
96 |
+ |
bool ecalDrivenSeed; |
97 |
+ |
bool trackerDrivenSeed; |
98 |
|
}; |
99 |
|
|
100 |
|
struct MuTrkVars { |
122 |
|
unsigned int nMatchesTight; |
123 |
|
}; |
124 |
|
|
125 |
< |
struct TauLeadTrkVars{ |
125 |
> |
struct TrkVars{ |
126 |
|
double pT; |
127 |
|
double eta; |
128 |
|
double phi; |
177 |
|
float byIsolation; |
178 |
|
float againstElectron; |
179 |
|
float againstMuon; |
180 |
+ |
float byIsolationUsingLeadingPion; |
181 |
+ |
float byTaNC; |
182 |
+ |
float byTaNCfrHalfPercent; |
183 |
+ |
float byTaNCfrOnePercent; |
184 |
+ |
float byTaNCfrQuarterPercent; |
185 |
+ |
float byTaNCfrTenthPercent; |
186 |
+ |
float ecalIsolationUsingLeadingPion; |
187 |
+ |
float leadingPionPtCut; |
188 |
+ |
float trackIsolationUsingLeadingPion; |
189 |
|
}; |
190 |
|
|
191 |
|
struct PFTauEleIDVars{ |
209 |
|
int partonFlavour; |
210 |
|
unsigned int nAssociatedTracks; |
211 |
|
double rawpT; |
212 |
+ |
float etaMean; |
213 |
+ |
float phiMean; |
214 |
+ |
float etaEtaMoment; |
215 |
+ |
float phiPhiMoment; |
216 |
+ |
float etaPhiMoment; |
217 |
+ |
bool l1Match; |
218 |
+ |
bool hltMatch; |
219 |
|
//double rawEta; |
220 |
|
//double rawPhi; |
221 |
|
}; |
237 |
|
double n60; |
238 |
|
}; |
239 |
|
|
240 |
< |
struct PFJetVars{ |
240 |
> |
struct JPTJetVars{ |
241 |
> |
float zspCorrection; |
242 |
> |
int elecMultiplicity; |
243 |
> |
std::vector<TrkVars> pionsInCone; |
244 |
> |
std::vector<TrkVars> pionsCurledOut; |
245 |
> |
std::vector<TrkVars> pionsCurledIn; |
246 |
> |
std::vector<TrkVars> elecsInCone; |
247 |
> |
std::vector<TrkVars> elecsCurledOut; |
248 |
> |
std::vector<TrkVars> elecsCurledIn; |
249 |
> |
std::vector<TrkVars> muonsInCone; |
250 |
> |
std::vector<TrkVars> muonsCurledOut; |
251 |
> |
std::vector<TrkVars> muonsCurledIn; |
252 |
> |
}; |
253 |
> |
|
254 |
> |
struct JPTPFJetVars{ |
255 |
|
double chargedHadronEnergy; |
256 |
|
double chargedHadronEnergyFraction; |
257 |
|
double neutralHadronEnergy; |
258 |
|
double neutralHadronEnergyFraction; |
259 |
|
double chargedEmEnergy; |
260 |
|
double chargedEmEnergyFraction; |
202 |
– |
double chargedMuEnergy; |
203 |
– |
double chargedMuEnergyFraction; |
261 |
|
double neutralEmEnergy; |
262 |
|
double neutralEmEnergyFraction; |
263 |
|
double chargedMultiplicity; |
207 |
– |
double neutralMultiplicity; |
264 |
|
double muonMultiplicity; |
265 |
|
}; |
266 |
|
|
267 |
+ |
struct PFJetVars{ |
268 |
+ |
double chargedMuEnergy; |
269 |
+ |
double chargedMuEnergyFraction; |
270 |
+ |
double neutralMultiplicity; |
271 |
+ |
}; |
272 |
+ |
|
273 |
|
struct JetBtagVars{ |
274 |
|
double cSV; |
275 |
|
double cSVMVA; |
276 |
|
double iPMVA; |
277 |
|
double bProba; |
278 |
|
double probability; |
279 |
< |
double sSV; |
280 |
< |
double softElectron; |
279 |
> |
double sSVHE; |
280 |
> |
double sSVHP; |
281 |
> |
double softElectronByPt; |
282 |
> |
double softElectronByIP3d; |
283 |
|
double softMuon; |
284 |
< |
double softMuonNoIP; |
284 |
> |
double softMuonByPt; |
285 |
> |
double softMuonByIP3d; |
286 |
|
double tCHE; |
287 |
|
double tCHP; |
288 |
|
}; |
289 |
|
|
290 |
+ |
|
291 |
+ |
struct JetIDVars{ |
292 |
+ |
double fHPD; |
293 |
+ |
double fRBX; |
294 |
+ |
int n90Hits; |
295 |
+ |
//double fSubDetector1; |
296 |
+ |
//double fSubDetector2; |
297 |
+ |
//double fSubDetector3; |
298 |
+ |
//double fSubDetector4; |
299 |
+ |
double restrictedEMF; |
300 |
+ |
int nHCALTowers; |
301 |
+ |
int nECALTowers; |
302 |
+ |
//double approximatefHPD; |
303 |
+ |
//double approximatefRBX; |
304 |
+ |
int hitsInN90; |
305 |
+ |
// muon hits id |
306 |
+ |
//int numberOfHits2RPC; |
307 |
+ |
//int numberOfHits3RPC; |
308 |
+ |
//int numberOfHitsRPC; |
309 |
+ |
}; |
310 |
+ |
|
311 |
+ |
|
312 |
|
struct MetVars{ |
313 |
|
double mET; |
314 |
|
double mEx; |
324 |
|
bool accept; |
325 |
|
}; |
326 |
|
|
327 |
+ |
|
328 |
+ |
struct VertexVars{ |
329 |
+ |
std::vector<float> trackWeights; |
330 |
+ |
double chi2; |
331 |
+ |
double ndof; |
332 |
+ |
double x; |
333 |
+ |
double y; |
334 |
+ |
double z; |
335 |
+ |
double xError; |
336 |
+ |
double yError; |
337 |
+ |
double zError; |
338 |
+ |
double cov01; |
339 |
+ |
double cov02; |
340 |
+ |
double cov12; |
341 |
+ |
}; |
342 |
+ |
|
343 |
|
double DeltaPhi(const double phi1, const double phi2); |
344 |
|
|
345 |
|
double DeltaR(const BaseVars & v1, const BaseVars & v2); |
346 |
+ |
double DeltaR(const BaseVars & v1, const GenVars & v2); |
347 |
|
|
348 |
|
double SameSign(const BaseVars & v1, const BaseVars & v2); |
349 |
|
|
370 |
|
double mEx, |
371 |
|
double mEy); |
372 |
|
|
373 |
+ |
double EtaDetector(const BaseVars & v1); |
374 |
+ |
double EtaDetector(const GenVars & v1); |
375 |
+ |
|
376 |
|
}//namespace |
377 |
|
|
378 |
|
#endif |