simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
TSParticle Class Reference
Inheritance diagram for TSParticle:
TSNamed TSNamed

Public Member Functions

 TSParticle (TString name, TString label, double mass, double charge, double tau=0)
 
void Init ()
 
int Q () const
 
double M () const
 
double M2 () const
 
double MMeV ()
 
double M2MeV ()
 
double MGeV () const
 
double M2GeV () const
 
TString LabelQ () const
 
TString LabelQSign () const
 
TString LabelMassUnits () const
 
TString LabelMass2Units () const
 
TString LabelMass () const
 
TString LabelMass2 () const
 
TString LabelMassMeV () const
 
TString LabelMassGeV () const
 
TString LabelMass2MeV () const
 
TString LabelMass2GeV () const
 
bool IsUnitMeV () const
 
bool IsUnitGeV () const
 
void Print () const
 
double ScaleToGeV () const
 
double ScaleToMeV () const
 
void SetCharge (int)
 
void SetMass (double)
 
void SetTau (double)
 
double GetBeta (double P) const
 
double GetGamma (double P) const
 
double GetBetaGamma (double) const
 
double GetE (double P) const
 
double GetTau () const
 
double GetCTau () const
 
double GetDecayTime (double P) const
 
double GetDecayLength (double P) const
 
double GetToF (double P) const
 
double GenerateDecayLength (double P)
 
void SetUnitMeV ()
 
void SetUnitGeV ()
 
 TSParticle (TString name, TString label, double mass, double charge, double tau=0)
 
void Init ()
 
int Q () const
 
double M () const
 
double M2 () const
 
double MMeV ()
 
double M2MeV ()
 
double MGeV () const
 
double M2GeV () const
 
TString LabelQ () const
 
TString LabelQSign () const
 
TString LabelMassUnits () const
 
TString LabelMass2Units () const
 
TString LabelMass () const
 
TString LabelMass2 () const
 
TString LabelMassMeV () const
 
TString LabelMassGeV () const
 
TString LabelMass2MeV () const
 
TString LabelMass2GeV () const
 
bool IsUnitMeV () const
 
bool IsUnitGeV () const
 
void Print () const
 
double ScaleToGeV () const
 
double ScaleToMeV () const
 
void SetCharge (int)
 
void SetMass (double)
 
void SetTau (double)
 
double GetBeta (double P) const
 
double GetGamma (double P) const
 
double GetBetaGamma (double) const
 
double GetE (double P) const
 
double GetTau () const
 
double GetCTau () const
 
double GetDecayTime (double P) const
 
double GetDecayLength (double P) const
 
double GetToF (double P) const
 
double GenerateDecayLength (double P)
 
void SetUnitMeV ()
 
void SetUnitGeV ()
 
- Public Member Functions inherited from TSNamed
 TSNamed (TString name, TString label, TString title)
 
void Clear ()
 
virtual TString GetDescription () const
 
TString GetLabel () const
 
TString Label () const
 
TString Name () const
 
TString Title () const
 
const char * GetName () const
 
const char * GetTitle () const
 
virtual void SetLabel (TString)
 
virtual void SetName (TString)
 
virtual void SetTitle (TString)
 
 TSNamed (TString name, TString label, TString title)
 
void Clear ()
 
virtual TString GetDescription () const
 
TString GetLabel () const
 
TString Label () const
 
TString Name () const
 
TString Title () const
 
const char * GetName () const
 
const char * GetTitle () const
 
virtual void SetLabel (TString)
 
virtual void SetName (TString)
 
virtual void SetTitle (TString)
 

Static Public Member Functions

static TString GetReactionForm (const TSArgList &initial, TString, const TSArgList &final)
 
static TString GetReactionForm (const TSArgList &initial, TString, const TSArgList &final)
 

Static Public Attributes

static double MassP =0.938272
 
static double MassN =0.939565
 
static double MassDe =1.8756
 
static double MassPiPlus =0.139570
 
static double MassPiMinus =0.139570
 
static double MassPi0 =0.134976
 
static double MassKPlus =0.493667
 
static double MassKMinus =0.493667
 
static double MassK0 =0.497648
 
static double MassK0S =0.497648
 
static double MassK0L =0.497648
 
static double MassEle =0.510998e-3
 
static double MassPosit =0.510998e-3
 
static double MassMuPlus =0.105658
 
static double MassMuMinus =0.105658
 
static double TauP =TMath::Infinity()
 
static double TauN =881.5
 
static double TauDe =TMath::Infinity()
 
static double TauPiPlus =2.6033*1e-8
 
static double TauPiMinus =2.6033*1e-8
 
static double TauPi0 =0
 
static double TauKPlus =1.2380*1e-8
 
static double TauKMinus =1.2380*1e-8
 
static double TauK0 =5.116*1e-8
 
static double TauK0S =0.8953*1e-10
 
static double TauK0L =5.116*1e-8
 
static double TauEle =TMath::Infinity()
 
static double TauPosit =TMath::Infinity()
 
static double TauMuPlus =2.197*1e-6
 
static double TauMuMinus =2.197*1e-6
 
static int PDGP = 2212
 
static int PDGN = 2112
 
static int PDGDe = 1011
 
static int PDGPiPlus = 211
 
static int PDGPiMinus = -211
 
static int PDGPi0 = 111
 
static int PDGKPlus = 321
 
static int PDGKMinus = -321
 
static int PDGK0 = 311
 
static int PDGK0S = 310
 
static int PDGK0L = 130
 
static int PDGEle = 11
 
static int PDGPosit = -11
 
static int PDGMuPlus = 13
 
static int PDGMuMinus = -13
 
static int IdP = 14
 
static int IdN = 13
 
static int IdDe = 45
 
static int IdPiPlus = 8
 
static int IdPiMinus = 9
 
static int IdPi0 = 7
 
static int IdKPlus = 11
 
static int IdKMinus = 12
 
static int IdK0 = 10
 
static int IdK0S = 16
 
static int IdK0L = 10
 
static int IdEle = 3
 
static int IdPosit = 2
 
static int IdMuPlus = 5
 
static int IdMuMinus = 6
 

Member Function Documentation

double TSParticle::GenerateDecayLength ( double  P)

Not const function: TRandom functions are not const

Tlab = gamma*tau Llab = beta*c*Tlab= beta*c*gamma*tau

probability to survive for a time t P(t)=Exp(-t/gamma*tau)= Exp(-t/Tlab) // Normalized is (1/gamma*tau)*P(t) = N*P(t)

L=beta*c*t t=L/beta*c P(L)= N*P(t(L))*dt/dL = N*Exp(-L/(beta*c*gamma*tau))*(1/beta*c) = (1/beta*c*gamma*tau)*Exp(-L/beta*c*gamma*tau); = (1/Llab)*Exp(-L/Llab) //


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