CbmRoot
|
Namespaces | |
namespace | File |
namespace | GeometryUtils |
Functions | |
CbmMCDataArray * | InitOrFatalMc (const std::string &objName, const std::string &description) |
void | SaveCanvasAsImage (TCanvas *c, const string &dir, const string &option) |
void | SaveCanvasAsImageImpl (const string &imageType, TCanvas *c, const string &dir, const 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) |
template<typename T > | |
T * | GetOrFatal (const std::string &objName, const std::string &description="") |
void | SaveCanvasAsImage (TCanvas *c, const std::string &dir, const std::string &option="eps;png;gif") |
void | SaveCanvasAsImageImpl (const std::string &imageType, TCanvas *c, const std::string &dir, const std::string &option) |
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 [%]") |
TH1D * Cbm::DivideH1 | ( | TH1 * | h1, |
TH1 * | h2, | ||
const std::string & | histName = "", | ||
double | scale = 100., | ||
const std::string & | titleYaxis = "Efficiency [%]" ) |
TH1D * Cbm::DivideH1 | ( | TH1 * | h1, |
TH1 * | h2, | ||
const string & | histName, | ||
double | scale, | ||
const string & | titleYaxis ) |
Definition at line 84 of file CbmUtils.cxx.
Referenced by CbmRichGeoTest::DrawHist(), CbmRichRecoTbQa::DrawHist(), and CbmAnaJpsiReport::DrawMomEffAllSteps().
TH2D * Cbm::DivideH2 | ( | TH2 * | h1, |
TH2 * | h2, | ||
const std::string & | histName = "", | ||
double | scale = 100., | ||
const std::string & | titleZaxis = "Efficiency [%]" ) |
TH2D * Cbm::DivideH2 | ( | TH2 * | h1, |
TH2 * | h2, | ||
const string & | histName, | ||
double | scale, | ||
const string & | titleZaxis ) |
Definition at line 103 of file CbmUtils.cxx.
Referenced by CbmRichGeoTest::DrawHist(), CbmAnaJpsiReport::DrawPtYEfficiency(), and LmvmDraw::DrawPtYEfficiency().
std::string Cbm::FindAndReplace | ( | const std::string & | name, |
const std::string & | oldSubstr, | ||
const std::string & | newSubstr ) |
string Cbm::FindAndReplace | ( | const string & | name, |
const string & | oldSubstr, | ||
const string & | newSubstr ) |
Definition at line 59 of file CbmUtils.cxx.
T * Cbm::GetOrFatal | ( | const std::string & | objName, |
const std::string & | description = "" ) |
Definition at line 60 of file CbmUtils.h.
Referenced by CbmRichGeoTest::Init(), CbmRichUrqmdTest::Init(), and InitOrFatalMc().
CbmMCDataArray * Cbm::InitOrFatalMc | ( | const std::string & | objName, |
const std::string & | description ) |
Definition at line 28 of file CbmUtils.cxx.
References GetOrFatal(), and CbmMCDataManager::InitBranch().
Referenced by CbmRichGeoTest::Init(), and CbmRichUrqmdTest::Init().
std::string Cbm::NumberToString | ( | const T & | value, |
int | precision = 1 ) |
Definition at line 34 of file CbmUtils.h.
References ToString().
Referenced by CbmRichGeoTest::CalcEfficiency(), LmvmDraw::Draw2DCut(), LmvmDraw::DrawAccRecVsMom(), CbmAnaJpsiReport::DrawEfficiency(), LmvmHist::DrawEfficiency(), LmvmDraw::DrawElPurity(), DrawH1andFitGauss(), CbmRichRecoTbQa::DrawHist(), CbmLitFitQaReport::DrawHistSigmaRMS(), LmvmDraw::DrawMinvBgPairSrc(), CbmAnaJpsiSuperEventReport::DrawMinvDiffPtBins(), LmvmDraw::DrawMinvMatching(), CbmAnaJpsiReport::DrawMinvMismatches(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), LmvmDrawAll::DrawPurity(), LmvmDrawAll::DrawPurityHistText(), LmvmDrawAll::DrawSignificance(), CbmRichGeoTestOpt::DrawTextLabelsH2(), LmvmDrawAll::DrawTofHitXY(), CbmRichRecoQa::GetMeanRmsOverflowString(), CbmRichRecoQa::GetMeanRmsOverflowString(), and LmvmDrawAll::InvestigateMisid().
void Cbm::SaveCanvasAsImage | ( | TCanvas * | c, |
const std::string & | dir, | ||
const std::string & | option = "eps;png;gif" ) |
void Cbm::SaveCanvasAsImage | ( | TCanvas * | c, |
const string & | dir, | ||
const string & | option ) |
Definition at line 36 of file CbmUtils.cxx.
References SaveCanvasAsImageImpl().
Referenced by CbmRichAlignment::DrawFit(), CbmRichCorrectionVector::DrawFit(), CbmRichMirrorSortingAlignment::DrawFitAndExtractAngles(), CbmLitCheckEnergyLossMuons::DrawGraphs(), CbmRichPMTMapping::DrawHist(), CbmRichAlignment::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistMapping(), CbmRichCorrection::DrawHistProjection(), CbmRichCorrectionVector::DrawHistProjection(), CbmRichMirrorSortingCorrection::DrawMap(), CbmReport::SaveCanvasesAsImages(), CbmAnaLmvmDrawStudy::SaveCanvasToImage(), CbmHistManager::SaveCanvasToImage(), and CbmRichTrainAnnElectrons::SaveCanvasToImage().
void Cbm::SaveCanvasAsImageImpl | ( | const std::string & | imageType, |
TCanvas * | c, | ||
const std::string & | dir, | ||
const std::string & | option ) |
void Cbm::SaveCanvasAsImageImpl | ( | const string & | imageType, |
TCanvas * | c, | ||
const string & | dir, | ||
const string & | option ) |
Definition at line 46 of file CbmUtils.cxx.
Referenced by SaveCanvasAsImage().
int Cbm::Sign | ( | const T & | x | ) |
Definition at line 48 of file CbmUtils.h.
References x.
std::vector< std::string > Cbm::Split | ( | const std::string & | name, |
char | delimiter ) |
vector< string > Cbm::Split | ( | const string & | name, |
char | delimiter ) |
Definition at line 67 of file CbmUtils.cxx.
std::string Cbm::ToString | ( | const T & | value | ) |
Definition at line 26 of file CbmUtils.h.
Referenced by CbmLitFieldFitter::FitSlice(), CbmLitTrackingGeometryConstructor::GetMuchLayout(), CbmLitTrackingGeometryConstructor::GetTrdLayout(), and NumberToString().