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) |
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) //