CbmRoot
Cbm Namespace Reference

Namespaces

 GeometryUtils
 

Functions

void SaveCanvasAsImage (TCanvas *c, const std::string &dir, const std::string &option)
 
string FindAndReplace (const string &name, const string &oldSubstr, const string &newSubstr)
 
vector< string > Split (const string &name, char delimiter)
 
TH1D * DivideH1 (TH1 *h1, TH1 *h2, const string &histName, double scale, const string &titleYaxis)
 
TH2D * DivideH2 (TH2 *h1, TH2 *h2, const string &histName, double scale, const string &titleZaxis)
 
template<class T >
std::string ToString (const T &value)
 
template<class T >
std::string NumberToString (const T &value, int precision=1)
 
template<class T >
int Sign (const T &x)
 
std::string FindAndReplace (const std::string &name, const std::string &oldSubstr, const std::string &newSubstr)
 
std::vector< std::string > Split (const std::string &name, char delimiter)
 
TH1D * DivideH1 (TH1 *h1, TH1 *h2, const std::string &histName="", double scale=100., const std::string &titleYaxis="Efficiency [%]")
 
TH2D * DivideH2 (TH2 *h1, TH2 *h2, const std::string &histName="", double scale=100., const std::string &titleZaxis="Efficiency [%]")
 

Function Documentation

◆ DivideH1() [1/2]

TH1D* Cbm::DivideH1 ( TH1 *  h1,
TH1 *  h2,
const std::string &  histName = "",
double  scale = 100.,
const std::string &  titleYaxis = "Efficiency [%]" 
)

◆ DivideH1() [2/2]

TH1D* Cbm::DivideH1 ( TH1 *  h1,
TH1 *  h2,
const string &  histName,
double  scale,
const string &  titleYaxis 
)

◆ DivideH2() [1/2]

TH2D* Cbm::DivideH2 ( TH2 *  h1,
TH2 *  h2,
const std::string &  histName = "",
double  scale = 100.,
const std::string &  titleZaxis = "Efficiency [%]" 
)

◆ DivideH2() [2/2]

TH2D* Cbm::DivideH2 ( TH2 *  h1,
TH2 *  h2,
const string &  histName,
double  scale,
const string &  titleZaxis 
)

◆ FindAndReplace() [1/2]

std::string Cbm::FindAndReplace ( const std::string &  name,
const std::string &  oldSubstr,
const std::string &  newSubstr 
)

◆ FindAndReplace() [2/2]

◆ NumberToString()

◆ SaveCanvasAsImage()

◆ Sign()

template<class T >
int Cbm::Sign ( const T &  x)

◆ Split() [1/2]

std::vector<std::string> Cbm::Split ( const std::string &  name,
char  delimiter 
)

◆ Split() [2/2]

◆ ToString()

template<class T >
std::string Cbm::ToString ( const T &  value)