CbmRoot
CbmUtils.h File Reference
#include <sstream>
#include <vector>
Include dependency graph for CbmUtils.h:

Go to the source code of this file.

Namespaces

 Cbm
 

Functions

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