CbmRoot
|
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 [%]") |
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 70 of file CbmUtils.cxx.
Referenced by CbmRichRecoTbQa::DrawHist(), CbmRichGeoTest::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 92 of file CbmUtils.cxx.
Referenced by CbmRichGeoTest::DrawHist(), CbmAnaJpsiReport::DrawPtYEfficiency(), and CbmAnaDielectronTaskDraw::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 45 of file CbmUtils.cxx.
Referenced by CbmLitClusteringQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaStudyReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculatePionSuppressionHistos(), CbmLitTrackingQa::CreateHistograms(), DefaultHitEfficiencyLabelFormatter(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitTrackingQaReport::DrawEfficiency(), CbmLitTrackingQaStudyReport::DrawEfficiency(), CbmLitFieldQaReport::DrawFieldAlongZ(), CbmLitFieldQaReport::DrawFieldSlices(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitTrackingQaReport::DrawYPt(), ElectronIdEfficiencyLabelFormatter(), CbmLitTrackingQa::FillGlobalReconstructionHistos(), CbmLitTrackingQa::FillGlobalReconstructionHistosRich(), CbmLitTrackingQa::PionSuppression(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaReport::PrintTrackHits(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), and CbmLitTrackingQa::ProcessMcTracks().
std::string Cbm::NumberToString | ( | const T & | value, |
int | precision = 1 |
||
) |
Definition at line 23 of file CbmUtils.h.
Referenced by CbmRichGeoTest::CalcEfficiency(), CbmAnaDielectronTaskDraw::Draw2DCut(), CbmAnaJpsiReport::DrawEfficiency(), CbmAnaDielectronTaskDraw::DrawElPiMomHis(), CbmRichRecoTbQa::DrawHist(), CbmAnaJpsiSuperEventReport::DrawMinvDiffPtBins(), CbmAnaJpsiReport::DrawMinvMismatches(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), CbmAnaDielectronTaskDraw::DrawMinvSource(), CbmAnaDielectronTaskDraw::DrawMinvSourceAll(), and CbmRichGeoTestOpt::DrawTextLabelsH2().
void Cbm::SaveCanvasAsImage | ( | TCanvas * | c, |
const std::string & | dir, | ||
const std::string & | option | ||
) |
Definition at line 20 of file CbmUtils.cxx.
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(), CbmRichTrainAnnElectrons::SaveCanvasToImage(), and CbmHistManager::SaveCanvasToImage().
int Cbm::Sign | ( | const T & | x | ) |
Definition at line 36 of file CbmUtils.h.
References x, and NS_L1TrackFitter::ZERO.
Referenced by ThermalParticle::CalculateParticleDensity(), CbmHadronAnalysis::ExecEvent(), CbmTofFindTracks::FillHistograms(), and CbmMuchFindVectors::FindChi2().
std::vector<std::string> Cbm::Split | ( | const std::string & | name, |
char | delimiter | ||
) |
vector<string> Cbm::Split | ( | const string & | name, |
char | delimiter | ||
) |
Definition at line 54 of file CbmUtils.cxx.
Referenced by DefaultAccAndRecLabelFormatter(), DefaultEfficiencyLabelFormatter(), DefaultHitEfficiencyLabelFormatter(), DefaultPionSuppressionLabelFormatter(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitFieldQaReport::DrawFieldAlongZ(), CbmLitFieldQaReport::DrawFieldSlices(), CbmLitFieldApproximationQaReport::DrawSlices(), ElectronIdEfficiencyLabelFormatter(), EventNoRowNameFormatter(), CbmLitTrackingQaReport::FillGlobalTrackVariants(), NofGhostsRowNameFormatter(), NofObjectsRowNameFormatter(), CbmLitTrackingQa::PionSuppression(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), CbmLitTrackingQaReport::PrintTrackHits(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), CbmLitTrackingQa::ProcessMcTracks(), and TrackHitsRowNameFormatter().
std::string Cbm::ToString | ( | const T & | value | ) |
Definition at line 16 of file CbmUtils.h.
Referenced by CbmMcbm2019TimeWinEventBuilderTask::FillOutput(), CbmMcbm2018EventBuilder::FillOutput(), CbmStack::Print(), CbmDeviceMcbmEventBuilderWin::SendEvents(), and CbmTestDigi::ToString().