|
VMC Examples Version 6.7
|
Extended TParticle with pointers to mother and daughter particles. More...
#include <Ex02Particle.h>

Public Member Functions | |
| Ex02Particle (Int_t id, TParticle *particle) | |
| Ex02Particle (Int_t id, TParticle *particle, Ex02Particle *mother) | |
| Ex02Particle () | |
| virtual | ~Ex02Particle () |
| void | SetMother (Ex02Particle *particle) |
| void | AddDaughter (Ex02Particle *particle) |
| virtual void | Print (Option_t *option="") const |
| void | PrintDaughters () const |
| Int_t | GetID () const |
| TParticle * | GetParticle () const |
| Ex02Particle * | GetMother () const |
| Int_t | GetNofDaughters () const |
| Ex02Particle * | GetDaughter (Int_t i) const |
Private Attributes | |
| Int_t | fID |
| The particle Id. | |
| TParticle * | fParticle |
| The particle definition. | |
| TRef | fMother |
| The particle mother. | |
| TRefArray | fDaughters |
| The particle daughters. | |
Extended TParticle with pointers to mother and daughter particles.
Definition at line 33 of file Ex02Particle.h.
| Ex02Particle::Ex02Particle | ( | Int_t | id, |
| TParticle * | particle ) |
Standard constructor
| id | The particle id |
| particle | The particle definition (TParticle) |
Definition at line 32 of file Ex02Particle.cxx.
| Ex02Particle::Ex02Particle | ( | Int_t | id, |
| TParticle * | particle, | ||
| Ex02Particle * | mother ) |
Standard constructor
| id | The particle id |
| particle | The particle definition (TParticle) |
| mother | The particle mother |
Definition at line 41 of file Ex02Particle.cxx.
| Ex02Particle::Ex02Particle | ( | ) |
Default constructor
Definition at line 51 of file Ex02Particle.cxx.
|
virtual |
Destructor
Definition at line 57 of file Ex02Particle.cxx.
| void Ex02Particle::SetMother | ( | Ex02Particle * | particle | ) |
Set particle mother
| particle | The mother particle |
Definition at line 69 of file Ex02Particle.cxx.
| void Ex02Particle::AddDaughter | ( | Ex02Particle * | particle | ) |
Add particles daughter
| particle | The daughter particle |
Definition at line 78 of file Ex02Particle.cxx.
|
virtual |
Print particle properties.
Definition at line 87 of file Ex02Particle.cxx.
| void Ex02Particle::PrintDaughters | ( | ) | const |
Print particles daughters.
Definition at line 107 of file Ex02Particle.cxx.
| Int_t Ex02Particle::GetID | ( | ) | const |
Definition at line 122 of file Ex02Particle.cxx.
| TParticle * Ex02Particle::GetParticle | ( | ) | const |
Definition at line 130 of file Ex02Particle.cxx.
| Ex02Particle * Ex02Particle::GetMother | ( | ) | const |
Definition at line 138 of file Ex02Particle.cxx.
| Int_t Ex02Particle::GetNofDaughters | ( | ) | const |
Definition at line 146 of file Ex02Particle.cxx.
| Ex02Particle * Ex02Particle::GetDaughter | ( | Int_t | i | ) | const |
| i | The daughter index |
Definition at line 154 of file Ex02Particle.cxx.
|
private |
The particle Id.
Definition at line 56 of file Ex02Particle.h.
|
private |
The particle definition.
Definition at line 57 of file Ex02Particle.h.
|
private |
The particle mother.
Definition at line 58 of file Ex02Particle.h.
|
private |
The particle daughters.
Definition at line 59 of file Ex02Particle.h.