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

Public Member Functions

 TSToFGenerator (TString)
 
 TSToFGenerator (TString, const TSVariable &vx, const TSVariable &vy)
 
double ComputeDm2 (double tof, double mom, double len) const
 
double ComputeDm2dp (double tof, double mom, double len) const
 
double ComputeDm2dt (double tof, double mom, double len) const
 
double ComputeDm2dL (double tof, double mom, double len) const
 
double ComputeMass (double tof, double mom, double len) const
 
double ComputeToF (double mass, double mom, double len) const
 
double GenerateMass2 (TString part, double mom) const
 
double GenerateMass2 (double mass, double mom, double len) const
 
TF1 * GetMass2Distrib (TString part, double mom) const
 
int GetMass2DistribNPars (TString part) const
 
TF1 * GetMomResolFunc () const
 
TF1 * GetParametrization (TString name, int par) const
 
double GetParamValue (TString name, int par, double p) const
 
double GetSigmaMom (double) const
 
double GetSigmaPathLen () const
 
double GetSigmaToF () const
 
double GetToFOffset () const
 
TF1 * GetToFResolDistr () const
 
void Init ()
 
TF1 * ImportMass2Distrib (TString part, double mom) const
 
void SetParticle (TString name, TString label, float mass=0)
 
void SetMass2DistributionFunction (TString name, TF1 &, int width_par=-1)
 
void SetMass2DistributionFunction (TString name, TString fname, int width_par=-1)
 
void SetMass2MeanFunction (TString name, TF1 &)
 
void SetMass2MeanFunction (TString name, TString poly_name, double, double=0, double=0)
 
void SetMass2WidthFunction (TString name, TF1 &)
 
void SetMass2WidthFunction (TString name, TString poly_name, double, double=0, double=0)
 
void SetMass2WidthScaling (TString part1, TString part2)
 
void SetParamFunction (TString, int par, TF1 &)
 
void SetParamFunction (TString name, int par, TString poly_name, double, double=0, double=0)
 
void SetMomentumVariable (const TSVariable &)
 
void SetMomentumResolution (double, double=0, double=0)
 
void SetPathLengthResolution (double)
 
void SetMomentumRange (double min, double max)
 
void SetToFResolution (double)
 
void SetToFResolution (TF1 &)
 
void SetToFVariable (const TSVariable &)
 
void SetToFRange (double, double)
 
void SetToFOffset (double)
 
 TSToFGenerator (TString)
 
 TSToFGenerator (TString, const TSVariable &vx, const TSVariable &vy)
 
double ComputeDm2 (double tof, double mom, double len) const
 
double ComputeDm2dp (double tof, double mom, double len) const
 
double ComputeDm2dt (double tof, double mom, double len) const
 
double ComputeDm2dL (double tof, double mom, double len) const
 
double ComputeMass (double tof, double mom, double len) const
 
double ComputeToF (double mass, double mom, double len) const
 
double GenerateMass2 (TString part, double mom) const
 
double GenerateMass2 (double mass, double mom, double len) const
 
TF1 * GetMass2Distrib (TString part, double mom) const
 
int GetMass2DistribNPars (TString part) const
 
TF1 * GetMomResolFunc () const
 
TF1 * GetParametrization (TString name, int par) const
 
double GetParamValue (TString name, int par, double p) const
 
double GetSigmaMom (double) const
 
double GetSigmaPathLen () const
 
double GetSigmaToF () const
 
double GetToFOffset () const
 
TF1 * GetToFResolDistr () const
 
void Init ()
 
TF1 * ImportMass2Distrib (TString part, double mom) const
 
void SetParticle (TString name, TString label, float mass=0)
 
void SetMass2DistributionFunction (TString name, TF1 &, int width_par=-1)
 
void SetMass2DistributionFunction (TString name, TString fname, int width_par=-1)
 
void SetMass2MeanFunction (TString name, TF1 &)
 
void SetMass2MeanFunction (TString name, TString poly_name, double, double=0, double=0)
 
void SetMass2WidthFunction (TString name, TF1 &)
 
void SetMass2WidthFunction (TString name, TString poly_name, double, double=0, double=0)
 
void SetMass2WidthScaling (TString part1, TString part2)
 
void SetParamFunction (TString, int par, TF1 &)
 
void SetParamFunction (TString name, int par, TString poly_name, double, double=0, double=0)
 
void SetMomentumVariable (const TSVariable &)
 
void SetMomentumResolution (double, double=0, double=0)
 
void SetPathLengthResolution (double)
 
void SetMomentumRange (double min, double max)
 
void SetToFResolution (double)
 
void SetToFResolution (TF1 &)
 
void SetToFVariable (const TSVariable &)
 
void SetToFRange (double, double)
 
void SetToFOffset (double)
 
- 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)
 

Member Function Documentation

double TSToFGenerator::ComputeMass ( double  tof,
double  mom,
double  len 
) const

tof: ns mom: GeV/c len: m

Referenced by ComputeToF().

double TSToFGenerator::ComputeToF ( double  mass,
double  mom,
double  len 
) const

mass: GeV/c**2 mom: GeV/c len: m

References ComputeMass().

void TSToFGenerator::SetMass2DistributionFunction ( TString  name,
TF1 &  f,
int  width_par = -1 
)

Set the Mass2 Distribution Function for a Particle

One has to specify which param number can be representative of the distribition width, this is necessary to se properly the x-axis range of the distribution every time all the parameters are calculated from their own parametrization function for a given momentum value

void TSToFGenerator::SetMass2DistributionFunction ( TString  name,
TString  fname,
int  width_par = -1 
)

Set the Mass2 Distribution Function for a Particle see comments for the parent method SetMass2DistributionFunction(TString fname,TF1 &f, int width_par)

void TSToFGenerator::SetMass2MeanFunction ( TString  name,
TF1 &  f 
)

Set Parametrization Function of the Mass2-Mean as a function of the Momentum

Assume that Mass2 Distrib is Gaussian

References TSToF_Part::SetParamFunc().

void TSToFGenerator::SetMass2MeanFunction ( TString  name,
TString  poly_name,
double  p0,
double  p1 = 0,
double  p2 = 0 
)

Set Parametrization Function of the Mass2-Mean as a function of the Momentum

Assume that Mass2 Distrib is Gaussian

References TSToF_Part::SetParamFunc().

void TSToFGenerator::SetMass2WidthFunction ( TString  name,
TF1 &  f 
)

Set Parametrization Function of the Mass2-Width as a function of the Momentum

Assume that Mass2 Distrib is gaussian

References TSToF_Part::SetParamFunc().

void TSToFGenerator::SetMass2WidthFunction ( TString  name,
TString  poly_name,
double  p0,
double  p1 = 0,
double  p2 = 0 
)

Set Parametrization Function of the Mass2-Width as a function of the Momentum

Assume that Mass2 Distrib is Gaussian

References TSToF_Part::SetParamFunc().

void TSToFGenerator::SetMass2WidthScaling ( TString  part1,
TString  part2 
)
void TSToFGenerator::SetParamFunction ( TString  name,
int  par,
TF1 &  f 
)

Set Parametrization Function of the parameter ip for the particle name as a function of the Momentum

References TSToF_Part::SetParamFunc().

void TSToFGenerator::SetParamFunction ( TString  name,
int  par,
TString  poly_name,
double  p0,
double  p1 = 0,
double  p2 = 0 
)

Set Parametrization Function of the Mass2 distribution parameter ipar of the particle name as a function of the Momentum

Assume that Mass2 Distrib is Gaussian

References TSToF_Part::SetParamFunc().


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