#include <GeoSwimParticle.h>
Public Member Functions | |
| GeoSwimParticle (Int_t pdg, TParticle *particle) | |
| GeoSwimParticle (const TVector3 position, const TVector3 momentum, Double_t charge=-1.0, Int_t pdg=13, Double_t mass=0.105658357 *Munits::GeV) | |
| GeoSwimParticle () | |
| virtual | ~GeoSwimParticle () |
| const TVector3 | GetInitPosition () const |
| const TVector3 | GetPosition () const |
| const TVector3 | GetMomentum () const |
| TVector3 | GetDirection () const |
| Double_t | GetMomentumModulus () const |
| Double_t | GetEnergy () const |
| Double_t | GetMass () const |
| Double_t | GetCharge () const |
| Int_t | GetID () const |
| Double_t | GetS () const |
| Double_t | GetRange () const |
| TParticle * | GetParticle () const |
| void | SetPosition (const TVector3 position) |
| void | SetMomentum (const TVector3 momentum) |
| void | SetMass (Double_t mass) |
| void | SetCharge (Double_t charge) |
| void | SetID (Int_t pdg) |
| void | SetS (double s) |
| void | SetRange (double range) |
Private Attributes | |
| TVector3 | fInitPosition |
| TVector3 | fPosition |
| TVector3 | fMomentum |
| Double_t | fMass |
| Double_t | fCharge |
| Int_t | fPDG |
| Double_t | fS |
| Double_t | fRange |
| TParticle * | fParticle |
|
||||||||||||
|
Definition at line 21 of file GeoSwimParticle.cxx.
|
|
||||||||||||||||||||||||
|
Definition at line 27 of file GeoSwimParticle.cxx. 00031 : 00032 fInitPosition(position),fPosition(position),fMomentum(momentum), 00033 fMass(mass),fCharge(charge),fPDG(pdg),fS(0),fRange(0),fParticle(0) 00034 { 00035 }
|
|
|
Definition at line 38 of file GeoSwimParticle.cxx.
|
|
|
Definition at line 44 of file GeoSwimParticle.cxx. 00044 {
00045 // Destructor
00046 }
|
|
|
Definition at line 101 of file GeoSwimParticle.cxx. 00102 {
00103 return fCharge;
00104 }
|
|
|
Definition at line 71 of file GeoSwimParticle.cxx. References fMomentum, and GetMomentumModulus(). 00072 {
00073 double modulus = GeoSwimParticle::GetMomentumModulus();
00074 if (modulus!=0.0) return fMomentum.Unit();
00075 else return TVector3(0.0,0.0,0.0);
00076 }
|
|
|
Definition at line 87 of file GeoSwimParticle.cxx. References fMass, and fMomentum. Referenced by GeoSwimmer::Swim(). 00088 {
00089 return sqrt(fMass*fMass + fMomentum.Mag2());
00090 }
|
|
|
Definition at line 107 of file GeoSwimParticle.cxx. Referenced by GeoSwimmer::Swim(). 00107 {
00108 return fPDG;
00109 }
|
|
|
Definition at line 50 of file GeoSwimParticle.cxx. Referenced by GeoSwimZCondition::Satisfied(). 00051 {
00052 return fInitPosition;
00053 }
|
|
|
Definition at line 94 of file GeoSwimParticle.cxx. 00095 {
00096 return fMass;
00097 }
|
|
|
Definition at line 64 of file GeoSwimParticle.cxx. Referenced by GeoSwimmer::Swim(). 00065 {
00066 return fMomentum;
00067 }
|
|
|
Definition at line 80 of file GeoSwimParticle.cxx. References fMomentum. Referenced by GetDirection(), and GeoSwimmer::Swim(). 00081 {
00082 return fMomentum.Mag();
00083 }
|
|
|
Definition at line 126 of file GeoSwimParticle.cxx. 00126 {
00127 return fParticle;
00128 }
|
|
|
Definition at line 57 of file GeoSwimParticle.cxx. Referenced by GeoSwimZCondition::Satisfied(), and GeoSwimmer::Swim(). 00058 {
00059 return fPosition;
00060 }
|
|
|
Definition at line 120 of file GeoSwimParticle.cxx. 00121 {
00122 return fRange;
00123 }
|
|
|
Definition at line 113 of file GeoSwimParticle.cxx. 00114 {
00115 return fS;
00116 }
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 139 of file GeoSwimParticle.cxx. References fMomentum. Referenced by GeoSwimmer::Swim(). 00140 {
00141 fMomentum = momentum;
00142 }
|
|
|
Definition at line 132 of file GeoSwimParticle.cxx. References fPosition. Referenced by GeoSwimmer::Swim(). 00133 {
00134 fPosition = position;
00135 }
|
|
|
Definition at line 174 of file GeoSwimParticle.cxx. References fRange. Referenced by GeoSwimmer::Swim(). 00175 {
00176 fRange = range;
00177 }
|
|
|
Definition at line 167 of file GeoSwimParticle.cxx. References fS. Referenced by GeoSwimmer::Swim(). 00168 {
00169 fS = s;
00170 }
|
|
|
Definition at line 58 of file GeoSwimParticle.h. |
|
|
Definition at line 54 of file GeoSwimParticle.h. |
|
|
Definition at line 57 of file GeoSwimParticle.h. Referenced by GetEnergy(). |
|
|
Definition at line 56 of file GeoSwimParticle.h. Referenced by GetDirection(), GetEnergy(), GetMomentumModulus(), and SetMomentum(). |
|
|
Definition at line 62 of file GeoSwimParticle.h. |
|
|
Definition at line 59 of file GeoSwimParticle.h. |
|
|
Definition at line 55 of file GeoSwimParticle.h. Referenced by SetPosition(). |
|
|
Definition at line 61 of file GeoSwimParticle.h. Referenced by SetRange(). |
|
|
Definition at line 60 of file GeoSwimParticle.h. Referenced by SetS(). |
1.3.9.1