CbmRoot
Loading...
Searching...
No Matches
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 176 of file PairAnalysisHelper.cxx.

◆ 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 615 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 592 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 636 of file PairAnalysisHelper.cxx.

◆ GetContentMaximum()

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

Definition at line 510 of file PairAnalysisHelper.cxx.

Referenced by PairAnalysisSignalExt::Draw().

◆ GetContentMinimum()

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

Definition at line 479 of file PairAnalysisHelper.cxx.

Referenced by PairAnalysisSignalExt::Draw().

◆ GetDetName()

◆ GetFormula()

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

◆ GetFormulaName()

TString PairAnalysisHelper::GetFormulaName ( TFormula * form)

Definition at line 310 of file PairAnalysisHelper.cxx.

References PairAnalysisVarManager::GetValueName().

◆ GetFormulaTitle()

TString PairAnalysisHelper::GetFormulaTitle ( TFormula * form)

Definition at line 287 of file PairAnalysisHelper.cxx.

References PairAnalysisVarManager::GetValueLabel().

◆ GetPDGlabel()

TString PairAnalysisHelper::GetPDGlabel ( Int_t pdg)

Definition at line 381 of file PairAnalysisHelper.cxx.

Referenced by SetPDGBinLabels().

◆ GetPrecision()

Int_t PairAnalysisHelper::GetPrecision ( Double_t value)

Definition at line 652 of file PairAnalysisHelper.cxx.

◆ GetQuantile()

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

Definition at line 537 of file PairAnalysisHelper.cxx.

References pos.

◆ MakeArbitraryBinning()

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

Definition at line 91 of file PairAnalysisHelper.cxx.

References Error.

◆ 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 120 of file PairAnalysisHelper.cxx.

◆ MakeLinBinning()

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

Definition at line 69 of file PairAnalysisHelper.cxx.

References first.

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 Error, first, and MakeLinBinning().

◆ MakePdgBinning()

TVectorD * PairAnalysisHelper::MakePdgBinning ( )

Definition at line 247 of file PairAnalysisHelper.cxx.

References gr.

◆ MakeStatBinLimits()

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

Definition at line 198 of file PairAnalysisHelper.cxx.

Referenced by PairAnalysisSignalExt::Process().

◆ NormalizeSlicesY()

void PairAnalysisHelper::NormalizeSlicesY ( TH2 * h)

normalize

Definition at line 574 of file PairAnalysisHelper.cxx.

◆ SetGEANTBinLabels()

void PairAnalysisHelper::SetGEANTBinLabels ( TH1 * hist)

Definition at line 447 of file PairAnalysisHelper.cxx.

◆ SetPDGBinLabels()

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