1 |
csander |
1.1 |
/*
|
2 |
|
|
* MyParton.h
|
3 |
|
|
*
|
4 |
|
|
* Created on: Feb 1, 2012
|
5 |
|
|
* Author: csander
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
#ifndef MYPARTON_H_
|
9 |
|
|
#define MYPARTON_H_
|
10 |
|
|
|
11 |
|
|
#include <TLorentzVector.h>
|
12 |
|
|
|
13 |
|
|
class MyParton: public TLorentzVector {
|
14 |
|
|
|
15 |
|
|
public:
|
16 |
|
|
|
17 |
|
|
MyParton();
|
18 |
|
|
MyParton(double px, double py, double pz, double e) {
|
19 |
|
|
SetPxPyPzE(px, py, pz, e);
|
20 |
|
|
}
|
21 |
|
|
;
|
22 |
|
|
virtual ~MyParton();
|
23 |
|
|
|
24 |
|
|
void SetPid(int id) {
|
25 |
|
|
pid = id;
|
26 |
|
|
}
|
27 |
|
|
;
|
28 |
|
|
|
29 |
|
|
const int GetPid() {
|
30 |
|
|
return pid;
|
31 |
|
|
}
|
32 |
|
|
;
|
33 |
|
|
|
34 |
csander |
1.2 |
void SetNo(int no) {
|
35 |
|
|
position = no;
|
36 |
|
|
}
|
37 |
|
|
;
|
38 |
|
|
|
39 |
|
|
const int GetNo() {
|
40 |
|
|
return position;
|
41 |
|
|
}
|
42 |
|
|
;
|
43 |
|
|
|
44 |
csander |
1.1 |
private:
|
45 |
|
|
|
46 |
csander |
1.2 |
int pid, position;
|
47 |
csander |
1.1 |
|
48 |
|
|
};
|
49 |
|
|
|
50 |
|
|
#endif /* MYPARTON_H_ */
|