9 |
|
|
10 |
|
// "get" methods ------------------------------------- |
11 |
|
|
12 |
< |
TVector3 TCGenParticle::Position() const { |
13 |
< |
return _position; |
14 |
< |
} |
15 |
< |
|
16 |
< |
TVector2 TCGenParticle::P2() const { |
17 |
< |
TVector2 v2(this->Px(), this->Py()); |
18 |
< |
return v2; |
19 |
< |
} |
20 |
< |
|
21 |
< |
int TCGenParticle::Charge() const{ |
22 |
< |
return charge; |
12 |
> |
int TCGenParticle::Mother() { |
13 |
> |
return mother; |
14 |
|
} |
15 |
|
|
16 |
< |
int TCGenParticle::GetStatus(){ |
17 |
< |
return _status; |
16 |
> |
int TCGenParticle::Grandmother() { |
17 |
> |
return grandmother; |
18 |
|
} |
19 |
|
|
20 |
< |
int TCGenParticle::Mother() { |
21 |
< |
return mother; |
20 |
> |
int TCGenParticle::GetPDGId() { |
21 |
> |
return PDGID; |
22 |
|
} |
23 |
|
|
24 |
< |
int TCGenParticle::Grandmother() { |
25 |
< |
return grandmother; |
24 |
> |
unsigned TCGenParticle::GetStatus() { |
25 |
> |
return status; |
26 |
|
} |
27 |
|
|
28 |
< |
int TCGenParticle::GetPDGId() { |
29 |
< |
return PDGID; |
28 |
> |
bool TCGenParticle::IsParton() { |
29 |
> |
return isParton_; |
30 |
|
} |
31 |
|
|
32 |
|
//std::vector<int> TCGenParticle::GetDaughters() { |
35 |
|
|
36 |
|
// "set" methods --------------------------------------------- |
37 |
|
|
47 |
– |
void TCGenParticle::SetPosition(float x, float y, float z) { |
48 |
– |
TVector3 p(x, y, z); |
49 |
– |
_position = p; |
50 |
– |
} |
51 |
– |
|
52 |
– |
void TCGenParticle::SetCharge(int c) { |
53 |
– |
charge = c; |
54 |
– |
} |
55 |
– |
|
56 |
– |
void TCGenParticle::SetStatus(int status){ |
57 |
– |
_status = status; |
58 |
– |
} |
38 |
|
//void TCGenParticle::AddDaughter(int d) { |
39 |
|
// daughters.push_back(d); |
40 |
|
//} |
41 |
|
|
42 |
|
void TCGenParticle::SetMother(int m) { |
43 |
< |
mother = m; |
43 |
> |
mother = m; |
44 |
|
} |
45 |
|
|
46 |
|
void TCGenParticle::SetGrandmother(int g) { |
47 |
< |
grandmother = g; |
47 |
> |
grandmother = g; |
48 |
|
} |
49 |
|
|
50 |
|
void TCGenParticle::SetPDGId(int pdg_id) { |
51 |
< |
PDGID = pdg_id; |
51 |
> |
PDGID = pdg_id; |
52 |
> |
} |
53 |
> |
|
54 |
> |
void TCGenParticle::SetStatus(unsigned s) |
55 |
> |
{ |
56 |
> |
status = s; |
57 |
> |
} |
58 |
> |
void TCGenParticle::SetIsParton(bool a) { |
59 |
> |
isParton_=a; |
60 |
|
} |