VMC Examples Version 6.6
|
Extended TParticle with pointers to mother and daughter particles. More...
#include <Ex01Particle.h>
Public Member Functions | |
Ex01Particle (Int_t id, TParticle *particle) | |
Ex01Particle (Int_t id, TParticle *particle, Ex01Particle *mother) | |
Ex01Particle () | |
virtual | ~Ex01Particle () |
void | SetMother (Ex01Particle *particle) |
void | AddDaughter (Ex01Particle *particle) |
Int_t | GetID () const |
TParticle * | GetParticle () const |
Ex01Particle * | GetMother () const |
Int_t | GetNofDaughters () const |
Ex01Particle * | GetDaughter (Int_t i) const |
Private Attributes | |
Int_t | fID |
The particle Id. | |
TParticle * | fParticle |
The particle definition. | |
Ex01Particle * | fMother |
The particle mother. | |
TObjArray * | fDaughters |
The particle daughters. | |
Extended TParticle with pointers to mother and daughter particles.
Definition at line 31 of file Ex01Particle.h.
Ex01Particle::Ex01Particle | ( | Int_t | id, |
TParticle * | particle ) |
Standard constructor
id | The particle id |
particle | The particle definition (TParticle) |
Definition at line 28 of file Ex01Particle.cxx.
Ex01Particle::Ex01Particle | ( | Int_t | id, |
TParticle * | particle, | ||
Ex01Particle * | mother ) |
Standard constructor
id | The particle id |
particle | The particle definition (TParticle) |
mother | The particle mother |
Definition at line 37 of file Ex01Particle.cxx.
Ex01Particle::Ex01Particle | ( | ) |
Default constructor
Definition at line 47 of file Ex01Particle.cxx.
|
virtual |
Destructor
Definition at line 53 of file Ex01Particle.cxx.
void Ex01Particle::SetMother | ( | Ex01Particle * | particle | ) |
Set particle mother
particle | The mother particle |
Definition at line 76 of file Ex01Particle.cxx.
void Ex01Particle::AddDaughter | ( | Ex01Particle * | particle | ) |
Add particles daughter
particle | The daughter particle |
Definition at line 65 of file Ex01Particle.cxx.
Int_t Ex01Particle::GetID | ( | ) | const |
Definition at line 85 of file Ex01Particle.cxx.
TParticle * Ex01Particle::GetParticle | ( | ) | const |
Definition at line 93 of file Ex01Particle.cxx.
Ex01Particle * Ex01Particle::GetMother | ( | ) | const |
Definition at line 101 of file Ex01Particle.cxx.
Int_t Ex01Particle::GetNofDaughters | ( | ) | const |
Definition at line 109 of file Ex01Particle.cxx.
Ex01Particle * Ex01Particle::GetDaughter | ( | Int_t | i | ) | const |
i | The daughter index |
Definition at line 119 of file Ex01Particle.cxx.
|
private |
The particle Id.
Definition at line 52 of file Ex01Particle.h.
|
private |
The particle definition.
Definition at line 53 of file Ex01Particle.h.
|
private |
The particle mother.
Definition at line 54 of file Ex01Particle.h.
|
private |
The particle daughters.
Definition at line 55 of file Ex01Particle.h.