1 |
csander |
1.1 |
/*
|
2 |
|
|
* MyMuon.h
|
3 |
|
|
*
|
4 |
|
|
* Created on: Feb 1, 2012
|
5 |
|
|
* Author: csander
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
#ifndef MYMUON_H_
|
9 |
|
|
#define MYMUON_H_
|
10 |
|
|
|
11 |
|
|
#include <TLorentzVector.h>
|
12 |
|
|
|
13 |
|
|
class MyMuon: public TLorentzVector {
|
14 |
|
|
|
15 |
|
|
public:
|
16 |
|
|
|
17 |
|
|
MyMuon();
|
18 |
|
|
MyMuon(double px, double py, double pz, double e) {
|
19 |
|
|
SetPxPyPzE(px, py, pz, e);
|
20 |
|
|
}
|
21 |
|
|
;
|
22 |
|
|
virtual ~MyMuon();
|
23 |
|
|
|
24 |
|
|
void SetIsolation(double x) {
|
25 |
|
|
isolation = x;
|
26 |
|
|
}
|
27 |
|
|
;
|
28 |
|
|
|
29 |
csander |
1.2 |
void SetCharge(int q) {
|
30 |
|
|
charge = q;
|
31 |
|
|
}
|
32 |
|
|
;
|
33 |
|
|
|
34 |
csander |
1.1 |
const double GetIsolation() {
|
35 |
|
|
return isolation;
|
36 |
|
|
}
|
37 |
|
|
;
|
38 |
|
|
|
39 |
csander |
1.3 |
const bool IsIsolated() {
|
40 |
csander |
1.5 |
return (isolation < 1.);
|
41 |
csander |
1.3 |
}
|
42 |
|
|
;
|
43 |
csander |
1.2 |
const int GetCharge() {
|
44 |
|
|
return charge;
|
45 |
|
|
}
|
46 |
|
|
;
|
47 |
|
|
|
48 |
csander |
1.1 |
private:
|
49 |
|
|
|
50 |
|
|
double isolation;
|
51 |
csander |
1.2 |
int charge;
|
52 |
csander |
1.1 |
|
53 |
|
|
};
|
54 |
|
|
|
55 |
|
|
#endif /* MYMUON_H_ */
|