GeoSwimParticle Class Reference

#include <GeoSwimParticle.h>

List of all members.

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

Detailed Description

Definition at line 17 of file GeoSwimParticle.h.


Constructor & Destructor Documentation

GeoSwimParticle::GeoSwimParticle ( Int_t  pdg,
TParticle *  particle 
)

Definition at line 21 of file GeoSwimParticle.cxx.

00021                                                                :
00022   fPDG(pdg),fS(0),fRange(0),fParticle(particle)
00023 { 
00024 }

GeoSwimParticle::GeoSwimParticle ( const TVector3  position,
const TVector3  momentum,
Double_t  charge = -1.0,
Int_t  pdg = 13,
Double_t  mass = 0.105658357*Munits::GeV 
)

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 }

GeoSwimParticle::GeoSwimParticle (  ) 

Definition at line 38 of file GeoSwimParticle.cxx.

00038                                  : 
00039   fPDG(-1),fS(0),fRange(0),fParticle(0)
00040 {
00041 }

GeoSwimParticle::~GeoSwimParticle (  )  [virtual]

Definition at line 44 of file GeoSwimParticle.cxx.

00044                                   {
00045 // Destructor
00046 }


Member Function Documentation

double GeoSwimParticle::GetCharge (  )  const

Definition at line 101 of file GeoSwimParticle.cxx.

References fCharge.

00102 { 
00103   return fCharge; 
00104 } 

TVector3 GeoSwimParticle::GetDirection (  )  const

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 }

double GeoSwimParticle::GetEnergy (  )  const

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 }

Int_t GeoSwimParticle::GetID (  )  const

Definition at line 107 of file GeoSwimParticle.cxx.

References fPDG.

Referenced by GeoSwimmer::Swim().

00107                                     {
00108   return fPDG;
00109 }  

const TVector3 GeoSwimParticle::GetInitPosition (  )  const

Definition at line 50 of file GeoSwimParticle.cxx.

References fInitPosition.

Referenced by GeoSwimZCondition::Satisfied().

00051 {
00052   return fInitPosition;
00053 } 

double GeoSwimParticle::GetMass (  )  const

Definition at line 94 of file GeoSwimParticle.cxx.

References fMass.

00095 { 
00096   return fMass; 
00097 } 

const TVector3 GeoSwimParticle::GetMomentum (  )  const

Definition at line 64 of file GeoSwimParticle.cxx.

References fMomentum.

Referenced by GeoSwimmer::Swim().

00065 {
00066   return fMomentum;
00067 } 

double GeoSwimParticle::GetMomentumModulus (  )  const

Definition at line 80 of file GeoSwimParticle.cxx.

References fMomentum.

Referenced by GetDirection(), and GeoSwimmer::Swim().

00081 {
00082   return fMomentum.Mag();
00083 } 

TParticle * GeoSwimParticle::GetParticle (  )  const

Definition at line 126 of file GeoSwimParticle.cxx.

References fParticle.

00126                                                {
00127   return fParticle;
00128 }  

const TVector3 GeoSwimParticle::GetPosition (  )  const

Definition at line 57 of file GeoSwimParticle.cxx.

References fPosition.

Referenced by GeoSwimZCondition::Satisfied(), and GeoSwimmer::Swim().

00058 {
00059   return fPosition;
00060 } 

double GeoSwimParticle::GetRange (  )  const

Definition at line 120 of file GeoSwimParticle.cxx.

References fRange.

00121 { 
00122   return fRange; 
00123 } 

double GeoSwimParticle::GetS (  )  const

Definition at line 113 of file GeoSwimParticle.cxx.

References fS.

00114 { 
00115   return fS; 
00116 } 

void GeoSwimParticle::SetCharge ( Double_t  charge  ) 
void GeoSwimParticle::SetID ( Int_t  pdg  ) 
void GeoSwimParticle::SetMass ( Double_t  mass  ) 
void GeoSwimParticle::SetMomentum ( const TVector3  momentum  ) 

Definition at line 139 of file GeoSwimParticle.cxx.

References fMomentum.

Referenced by GeoSwimmer::Swim().

00140 {
00141   fMomentum = momentum;
00142 }

void GeoSwimParticle::SetPosition ( const TVector3  position  ) 

Definition at line 132 of file GeoSwimParticle.cxx.

References fPosition.

Referenced by GeoSwimmer::Swim().

00133 { 
00134   fPosition = position;
00135 }

void GeoSwimParticle::SetRange ( double  range  ) 

Definition at line 174 of file GeoSwimParticle.cxx.

References fRange.

Referenced by GeoSwimmer::Swim().

00175 {
00176   fRange = range;
00177 }

void GeoSwimParticle::SetS ( double  s  ) 

Definition at line 167 of file GeoSwimParticle.cxx.

References fS.

Referenced by GeoSwimmer::Swim().

00168 {
00169   fS = s;
00170 }


Member Data Documentation

Double_t GeoSwimParticle::fCharge [private]

Definition at line 58 of file GeoSwimParticle.h.

Referenced by GetCharge().

TVector3 GeoSwimParticle::fInitPosition [private]

Definition at line 54 of file GeoSwimParticle.h.

Referenced by GetInitPosition().

Double_t GeoSwimParticle::fMass [private]

Definition at line 57 of file GeoSwimParticle.h.

Referenced by GetEnergy(), and GetMass().

TVector3 GeoSwimParticle::fMomentum [private]
TParticle* GeoSwimParticle::fParticle [private]

Definition at line 62 of file GeoSwimParticle.h.

Referenced by GetParticle().

Int_t GeoSwimParticle::fPDG [private]

Definition at line 59 of file GeoSwimParticle.h.

Referenced by GetID().

TVector3 GeoSwimParticle::fPosition [private]

Definition at line 55 of file GeoSwimParticle.h.

Referenced by GetPosition(), and SetPosition().

Double_t GeoSwimParticle::fRange [private]

Definition at line 61 of file GeoSwimParticle.h.

Referenced by GetRange(), and SetRange().

Double_t GeoSwimParticle::fS [private]

Definition at line 60 of file GeoSwimParticle.h.

Referenced by GetS(), and SetS().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1