CbmRoot
PairAnalysisHelper Namespace Reference

Functions

TVectorD * MakeLogBinning (Int_t nbinsX, Double_t xmin, Double_t xmax)
 
TVectorD * MakeLinBinning (Int_t nbinsX, Double_t xmin, Double_t xmax)
 
TVectorD * MakeArbitraryBinning (const char *bins)
 
TVectorD * MakeGausBinning (Int_t nbinsX, Double_t mean, Double_t sigma)
 
TVectorD * CombineBinning (TVectorD *low, TVectorD *high)
 
TArrayD * MakeStatBinLimits (TH1 *h, Double_t stat)
 
TVectorD * MakePdgBinning ()
 
Double_t EvalFormula (TFormula *form, const Double_t *values)
 
TString GetFormulaTitle (TFormula *form)
 
TString GetFormulaName (TFormula *form)
 
TFormula * GetFormula (const char *name, const char *formula)
 
void SetPDGBinLabels (TH1 *hist, Bool_t clean)
 
TString GetPDGlabel (Int_t pdg)
 
void SetGEANTBinLabels (TH1 *hist)
 
TString GetDetName (ECbmModuleId det)
 
Double_t GetContentMinimum (TH1 *h, Bool_t inclErr=kTRUE)
 
Double_t GetContentMaximum (TH1 *h, Bool_t inclErr=kTRUE)
 
Double_t GetQuantile (TH1 *h1, Double_t p=0.5)
 
void NormalizeSlicesY (TH2 *h)
 
void CumulateSlicesX (TH2 *h, Bool_t reverse=kFALSE, Bool_t norm=kFALSE)
 
void Cumulate (TH1 *h, Bool_t reverse=kFALSE, Bool_t norm=kFALSE)
 
TObject * FindObjectByTitle (TObjArray *arrhist, TString ref)
 
Int_t GetPrecision (Double_t value)
 

Function Documentation

◆ CombineBinning()

TVectorD * PairAnalysisHelper::CombineBinning ( TVectorD *  low,
TVectorD *  high 
)

Definition at line 180 of file PairAnalysisHelper.cxx.

References i.

◆ Cumulate()

void PairAnalysisHelper::Cumulate ( TH1 *  h,
Bool_t  reverse = kFALSE,
Bool_t  norm = kFALSE 
)

NOTE: addition +-1 for limits because of != loop

Definition at line 619 of file PairAnalysisHelper.cxx.

◆ CumulateSlicesX()

void PairAnalysisHelper::CumulateSlicesX ( TH2 *  h,
Bool_t  reverse = kFALSE,
Bool_t  norm = kFALSE 
)

NOTE: addition +-1 for limits because of != loop

Definition at line 597 of file PairAnalysisHelper.cxx.

Referenced by CbmFastSim::Init().

◆ EvalFormula()

Double_t PairAnalysisHelper::EvalFormula ( TFormula *  form,
const Double_t *  values 
)

◆ FindObjectByTitle()

TObject * PairAnalysisHelper::FindObjectByTitle ( TObjArray *  arrhist,
TString  ref 
)

Definition at line 639 of file PairAnalysisHelper.cxx.

References i.

◆ GetContentMaximum()

Double_t PairAnalysisHelper::GetContentMaximum ( TH1 *  h,
Bool_t  inclErr = kTRUE 
)

Definition at line 513 of file PairAnalysisHelper.cxx.

Referenced by PairAnalysisSignalExt::Draw().

◆ GetContentMinimum()

Double_t PairAnalysisHelper::GetContentMinimum ( TH1 *  h,
Bool_t  inclErr = kTRUE 
)

Definition at line 480 of file PairAnalysisHelper.cxx.

Referenced by PairAnalysisSignalExt::Draw().

◆ GetDetName()

◆ GetFormula()

TFormula * PairAnalysisHelper::GetFormula ( const char *  name,
const char *  formula 
)

Definition at line 330 of file PairAnalysisHelper.cxx.

References PairAnalysisVarManager::GetValueName(), and i.

Referenced by PairAnalysisObjectCuts::AddCut().

◆ GetFormulaName()

TString PairAnalysisHelper::GetFormulaName ( TFormula *  form)

Definition at line 315 of file PairAnalysisHelper.cxx.

References PairAnalysisVarManager::GetValueName().

◆ GetFormulaTitle()

TString PairAnalysisHelper::GetFormulaTitle ( TFormula *  form)

Definition at line 291 of file PairAnalysisHelper.cxx.

References PairAnalysisVarManager::GetValueLabel().

◆ GetPDGlabel()

TString PairAnalysisHelper::GetPDGlabel ( Int_t  pdg)

Definition at line 386 of file PairAnalysisHelper.cxx.

Referenced by SetPDGBinLabels().

◆ GetPrecision()

Int_t PairAnalysisHelper::GetPrecision ( Double_t  value)

Definition at line 657 of file PairAnalysisHelper.cxx.

◆ GetQuantile()

Double_t PairAnalysisHelper::GetQuantile ( TH1 *  h1,
Double_t  p = 0.5 
)

Definition at line 541 of file PairAnalysisHelper.cxx.

References i, and pos.

◆ MakeArbitraryBinning()

TVectorD * PairAnalysisHelper::MakeArbitraryBinning ( const char *  bins)

Definition at line 91 of file PairAnalysisHelper.cxx.

◆ MakeGausBinning()

TVectorD * PairAnalysisHelper::MakeGausBinning ( Int_t  nbinsX,
Double_t  mean,
Double_t  sigma 
)

normalize with sum

condition for bin limit

set value to vector

next bin and limit

fix end integral value

store prevoius integral value

Definition at line 122 of file PairAnalysisHelper.cxx.

◆ MakeLinBinning()

TVectorD * PairAnalysisHelper::MakeLinBinning ( Int_t  nbinsX,
Double_t  xmin,
Double_t  xmax 
)

Definition at line 70 of file PairAnalysisHelper.cxx.

References first, and i.

Referenced by PairAnalysisCutQA::Init(), and MakeLogBinning().

◆ MakeLogBinning()

TVectorD * PairAnalysisHelper::MakeLogBinning ( Int_t  nbinsX,
Double_t  xmin,
Double_t  xmax 
)

Definition at line 40 of file PairAnalysisHelper.cxx.

References first, i, and MakeLinBinning().

◆ MakePdgBinning()

TVectorD * PairAnalysisHelper::MakePdgBinning ( )

Definition at line 252 of file PairAnalysisHelper.cxx.

References gr, and i.

◆ MakeStatBinLimits()

TArrayD * PairAnalysisHelper::MakeStatBinLimits ( TH1 *  h,
Double_t  stat 
)

Definition at line 203 of file PairAnalysisHelper.cxx.

References i.

Referenced by PairAnalysisSignalExt::Process().

◆ NormalizeSlicesY()

void PairAnalysisHelper::NormalizeSlicesY ( TH2 *  h)

normalize

Definition at line 580 of file PairAnalysisHelper.cxx.

◆ SetGEANTBinLabels()

void PairAnalysisHelper::SetGEANTBinLabels ( TH1 *  hist)

Definition at line 450 of file PairAnalysisHelper.cxx.

References i.

◆ SetPDGBinLabels()

void PairAnalysisHelper::SetPDGBinLabels ( TH1 *  hist,
Bool_t  clean 
)

Definition at line 350 of file PairAnalysisHelper.cxx.

References PairAnalysisStyler::GetFirstHistogram(), GetPDGlabel(), and i.