-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyJet.h
58 lines (43 loc) · 839 Bytes
/
MyJet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* MyJet.h
*
* Created on: Feb 1, 2012
* Author: csander
*/
#ifndef MYJET_H_
#define MYJET_H_
#include <TLorentzVector.h>
#include <TRandom3.h>
class MyJet: public TLorentzVector {
public:
MyJet();
MyJet(double px, double py, double pz, double e) {
SetPxPyPzE(px, py, pz, e);
}
;
virtual ~MyJet();
void SetBTagDiscriminator(double x) {
btag = x;
}
;
const double GetBTagDiscriminator() {
return btag;
}
;
const bool IsBTagged(double th=1.74) {
return (btag > th);
}
;
void SetJetID(bool id) {
jetid = id;
}
;
const bool GetJetID() {
return jetid;
}
;
private:
double btag;
bool jetid;
};
#endif /* MYJET_H_ */