CbmRoot
Loading...
Searching...
No Matches
CbmUtils.h File Reference
#include "CbmMCDataManager.h"
#include "FairRootManager.h"
#include "Logger.h"
#include <sstream>
#include <vector>
Include dependency graph for CbmUtils.h:

Go to the source code of this file.

Namespaces

namespace  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)
 
template<typename T >
T * Cbm::GetOrFatal (const std::string &objName, const std::string &description="")
 
CbmMCDataArrayCbm::InitOrFatalMc (const std::string &objName, const std::string &description)
 
void Cbm::SaveCanvasAsImage (TCanvas *c, const std::string &dir, const std::string &option="eps;png;gif")
 
void Cbm::SaveCanvasAsImageImpl (const std::string &imageType, 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 [%]")