Public Member Functions | |
TSDEdxGenerator (TString name, TString title) | |
TSDEdxGenerator (TString name, TString title, const TSVariable &dedx_var) | |
void | ApplyCalibrationCorrection (bool) |
double | ComputeAverage (std::vector< double > &clusters, double trunc_low, double trunc_up, int algo, double param=0) const |
double | Generate () const |
double | Generate (int num_clusters) const |
double | Generate (double momentum, double mass, int num_clusters=0) const |
double | GetMean () const |
int | GetNumOfUsedClusters () const |
TObject * | GetTrackDEdxDistrib () const |
TObject * | ImportTrackDEdxDistrib () const |
void | Init () |
void | SetAverageAlgoType (int) |
void | SetAverageAlgoParam (double) |
void | SetAsymmetry (double) |
void | SetBetheBloch (const TSBetheBlochFunc &) |
void | SetClusterChargeDistrib (TF1 &) |
void | SetClusterChargeDistrib (TH1F &) |
void | SetClusterChargeDistrib (TString fname, double min, double max, double p0, double p1=0, double p2=0, double p3=0) |
void | SetDEdxVariable (const TSVariable &v) |
void | SetMean (double) const |
void | SetPointDistrib (TH1F &) |
void | SetSigmaScaling (double m, double alpha) |
void | SetTrackDEdxDistrib (TF1 &) |
void | SetTrackDEdxDistrib (TH1F &) |
void | SetTrackDEdxDistrib (TString fname, double min, double max, double p0, double p1=0, double p2=0, double p3=0) |
void | SetTruncation (double up, double low=0) |
void | SetWidthSmearing (double) |
TSDEdxGenerator (TString name, TString title) | |
TSDEdxGenerator (TString name, TString title, const TSVariable &dedx_var) | |
void | ApplyCalibrationCorrection (bool) |
double | ComputeAverage (std::vector< double > &clusters, double trunc_low, double trunc_up, int algo, double param=0) const |
double | Generate () const |
double | Generate (int num_clusters) const |
double | Generate (double momentum, double mass, int num_clusters=0) const |
double | GetMean () const |
int | GetNumOfUsedClusters () const |
TObject * | GetTrackDEdxDistrib () const |
TObject * | ImportTrackDEdxDistrib () const |
void | Init () |
void | SetAverageAlgoType (int) |
void | SetAverageAlgoParam (double) |
void | SetAsymmetry (double) |
void | SetBetheBloch (const TSBetheBlochFunc &) |
void | SetClusterChargeDistrib (TF1 &) |
void | SetClusterChargeDistrib (TH1F &) |
void | SetClusterChargeDistrib (TString fname, double min, double max, double p0, double p1=0, double p2=0, double p3=0) |
void | SetDEdxVariable (const TSVariable &v) |
void | SetMean (double) const |
void | SetPointDistrib (TH1F &) |
void | SetSigmaScaling (double m, double alpha) |
void | SetTrackDEdxDistrib (TF1 &) |
void | SetTrackDEdxDistrib (TH1F &) |
void | SetTrackDEdxDistrib (TString fname, double min, double max, double p0, double p1=0, double p2=0, double p3=0) |
void | SetTruncation (double up, double low=0) |
void | SetWidthSmearing (double) |
![]() | |
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) |
double TSDEdxGenerator::ComputeAverage | ( | std::vector< double > & | clusters, |
double | trunc_low, | ||
double | trunc_up, | ||
int | algo, | ||
double | param = 0 |
||
) | const |
Compute Truncated average between trunc_low and trunc_up fractions of a list of charges.
Different options to compute the average
algo = 0: Standard
void TSDEdxGenerator::SetTrackDEdxDistrib | ( | TString | fname, |
double | min, | ||
double | max, | ||
double | p0, | ||
double | p1 = 0 , |
||
double | p2 = 0 , |
||
double | p3 = 0 |
||
) |
Configure built in functions via the functor class TSDEdxDistrib
"Gaus" p0 = mean p1 = sigma
"DoubleTailedGaus" p0 = mean p1 = sigma p2 = sigma_tail p3 = amplitude ratio
"AsymGaus" p0 = mean p1 = sigma p2 = delta
"Landau" p0 = mpv; p1 = width