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