2 |
|
#define _TGENPARTICLE_H |
3 |
|
|
4 |
|
#include "TObject.h" |
5 |
+ |
#include "TCPhysObject.h" |
6 |
|
#include "TLorentzVector.h" |
7 |
|
#include "TVector2.h" |
8 |
|
#include "TVector3.h" |
9 |
|
#include <vector> |
10 |
|
|
11 |
< |
class TCGenParticle : public TLorentzVector { |
12 |
< |
private: |
13 |
< |
TVector3 _position; |
13 |
< |
int _status; |
14 |
< |
int charge; |
15 |
< |
int mother; |
11 |
> |
class TCGenParticle : public TCPhysObject { |
12 |
> |
private: |
13 |
> |
int mother; |
14 |
|
int grandmother; |
15 |
< |
int PDGID; |
16 |
< |
// std::vector<int> daughters; |
15 |
> |
int PDGID; |
16 |
> |
unsigned status; |
17 |
> |
bool isParton_; |
18 |
|
|
19 |
< |
public: |
20 |
< |
TCGenParticle(); |
21 |
< |
virtual ~TCGenParticle(); |
22 |
< |
|
23 |
< |
TVector3 Position() const; |
24 |
< |
TVector2 P2() const; |
25 |
< |
int Charge() const; |
27 |
< |
int Mother(); |
19 |
> |
// std::vector<int> daughters; |
20 |
> |
|
21 |
> |
public: |
22 |
> |
TCGenParticle(); |
23 |
> |
virtual ~TCGenParticle(); |
24 |
> |
|
25 |
> |
int Mother(); |
26 |
|
int Grandmother(); |
27 |
< |
int GetPDGId(); |
28 |
< |
int GetStatus(); |
29 |
< |
// std::vector<int> GetDaughters(); |
30 |
< |
|
31 |
< |
// "set" methods --------- |
32 |
< |
void SetPosition(float x, float y, float z); |
33 |
< |
void SetCharge(int c); |
34 |
< |
// void AddDaughter(int d); |
35 |
< |
void SetMother(int m); |
27 |
> |
int GetPDGId(); |
28 |
> |
unsigned GetStatus(); |
29 |
> |
|
30 |
> |
bool IsParton(); |
31 |
> |
|
32 |
> |
// std::vector<int> GetDaughters(); |
33 |
> |
|
34 |
> |
// "set" methods --------- |
35 |
> |
// void AddDaughter(int d); |
36 |
> |
void SetMother(int m); |
37 |
|
void SetGrandmother(int g); |
38 |
< |
void SetPDGId(int pdg_id); |
39 |
< |
void SetStatus(int status); |
38 |
> |
void SetPDGId(int pdg_id); |
39 |
> |
void SetStatus(unsigned s); |
40 |
|
|
41 |
< |
ClassDef(TCGenParticle, 1); |
41 |
> |
void SetIsParton(bool a); |
42 |
|
|
43 |
+ |
ClassDef(TCGenParticle, 1); |
44 |
|
}; |
45 |
|
|
46 |
|
#endif |