CbmRoot
|
Histogram manager. More...
#include <CbmHistManager.h>
Public Member Functions | |
CbmHistManager () | |
Constructor. More... | |
virtual | ~CbmHistManager () |
Destructor. More... | |
void | Add (const std::string &name, TNamed *object) |
Add new named object to manager. More... | |
template<class T > | |
void | Create1 (const std::string &name, const std::string &title, Int_t nofBins, Double_t minBin, Double_t maxBin) |
Helper function for creation of 1-dimensional histograms and profiles. Template argument is a real object type that has to be created, for example, Create1<TH1F>("name", "title", 100, 0, 100);. More... | |
template<class T > | |
void | Create2 (const std::string &name, const std::string &title, Int_t nofBinsX, Double_t minBinX, Double_t maxBinX, Int_t nofBinsY, Double_t minBinY, Double_t maxBinY) |
Helper function for creation of 2-dimensional histograms and profiles. Template argument is a real object type that has to be created, for example, Create2<TH2F>("name", "title", 100, 0, 100, 200, 0, 200);. More... | |
template<class T > | |
void | Create3 (const std::string &name, const std::string &title, Int_t nofBinsX, Double_t minBinX, Double_t maxBinX, Int_t nofBinsY, Double_t minBinY, Double_t maxBinY, Int_t nofBinsZ, Double_t minBinZ, Double_t maxBinZ) |
Helper function for creation of 3-dimensional histograms and profiles. Template argument is a real object type that has to be created, for example, Create3<TH3F>("name", "title", 100, 0, 100, 200, 0, 200, 300, 0, 300);. More... | |
TH1 * | H1 (const std::string &name) const |
Return pointer to TH1 histogram. More... | |
std::vector< TH1 * > | H1Vector (const std::string &pattern) const |
Return vector of pointers to TH1 histogram. More... | |
TH2 * | H2 (const std::string &name) const |
Return pointer to TH2 histogram. More... | |
std::vector< TH2 * > | H2Vector (const std::string &pattern) const |
Return vector of pointers to TH2 histogram. More... | |
TH3 * | H3 (const std::string &name) const |
Return pointer to TH3 histogram. More... | |
TGraph * | G1 (const std::string &name) const |
Return pointer to TGraph. More... | |
std::vector< TGraph * > | G1Vector (const std::string &pattern) const |
Return vector of pointers to TGraph. More... | |
TGraph2D * | G2 (const std::string &name) const |
Return pointer to TGraph2D. More... | |
std::vector< TGraph2D * > | G2Vector (const std::string &pattern) const |
Return vector of pointers to TGraph2D. More... | |
TProfile * | P1 (const std::string &name) const |
Return pointer to TProfile. More... | |
std::vector< TProfile * > | P1Vector (const std::string &pattern) const |
Return vector of pointers to TProfile. More... | |
TProfile2D * | P2 (const std::string &name) const |
Return pointer to TH2 histogram. More... | |
std::vector< TProfile2D * > | P2Vector (const std::string &pattern) const |
Return vector of pointers to TProfile2D. More... | |
Bool_t | Exists (const std::string &name) const |
Check existence of histogram in manager. More... | |
void | WriteToFile () |
Write all histograms to current opened file. More... | |
void | ReadFromFile (TFile *file) |
Read histograms from file. More... | |
void | AddTNamedObject (TObject *obj) |
Add TName object to map. Used in ReadFromFile method. More... | |
void | AddTDirectoryObject (TObject *obj) |
Add all TName objects to map in directory. Used in ReadFromFile method. More... | |
void | Clear (Option_t *) |
Clear memory. Remove all histograms. More... | |
void | ShrinkEmptyBinsH1 (const std::string &histName) |
Shrink empty bins in H1. More... | |
void | ShrinkEmptyBinsH1ByPattern (const std::string &pattern) |
Shrink empty bins in H1. More... | |
void | ShrinkEmptyBinsH2 (const std::string &histName) |
Shrink empty bins in H2. More... | |
void | ShrinkEmptyBinsH2ByPattern (const std::string &pattern) |
Shrink empty bins in H2. More... | |
void | Scale (const std::string &histName, Double_t scale) |
Scale histogram. More... | |
void | ScaleByPattern (const std::string &pattern, Double_t scale) |
Scale histograms which name matches specified pattern. More... | |
void | NormalizeToIntegral (const std::string &histName) |
Normalize histogram to integral. More... | |
void | NormalizeToIntegralByPattern (const std::string &pattern) |
Normalize histograms to integral which name matches specified pattern. More... | |
void | Rebin (const std::string &histName, Int_t ngroup) |
Rebin histogram. More... | |
void | RebinByPattern (const std::string &pattern, Int_t ngroup) |
Rebin histograms which name matches specified pattern. More... | |
std::string | ToString () const |
Return string representation of class. More... | |
TCanvas * | CreateCanvas (const std::string &name, const std::string &title, Int_t width, Int_t height) |
Create and draw TCanvas and store pointer to it. More... | |
void | SaveCanvasToImage (const std::string &outputDir, const std::string &options="png,eps") |
Save all stored canvases to images. More... | |
template<class T > | |
vector< T > | ObjectVector (const string &pattern) const |
Private Member Functions | |
template<class T > | |
std::vector< T > | ObjectVector (const std::string &pattern) const |
Private Attributes | |
std::map< std::string, TNamed * > | fMap |
std::vector< TCanvas * > | fCanvases |
Friends | |
std::ostream & | operator<< (std::ostream &strm, const CbmHistManager &histManager) |
Operator << for convenient output to std::ostream. More... | |
CbmHistManager::CbmHistManager | ( | ) |
Constructor.
Definition at line 54 of file core/base/CbmHistManager.cxx.
|
virtual |
Destructor.
Definition at line 56 of file core/base/CbmHistManager.cxx.
|
inline |
Add new named object to manager.
[in] | name | Name of the object. |
[in] | object | Pointer to object. |
Definition at line 58 of file CbmHistManager.h.
References fMap.
Referenced by CbmMcbm2018MonitorSts::AddMsComponentToList(), CbmMcbm2018MonitorStsSync::AddMsComponentToList(), CbmMcbm2018MonitorMuch::AddMsComponentToList(), CbmMcbm2018MonitorMuchLite::AddMsComponentToList(), AddTNamedObject(), Create1(), Create2(), Create3(), CbmLitFieldApproximationQa::CreateFieldHistos(), CbmLitFieldApproximationQa::CreateFitterHistos(), CbmLitFieldApproximationQa::CreateGridHistos(), CbmLitTrackingQa::CreateH1(), CbmLitTrackingQa::CreateH1Efficiency(), CbmLitTrackingQa::CreateH1PionSuppression(), CbmLitTrackingQa::CreateH2(), CbmLitTrackingQa::CreateH2Efficiency(), CbmLitRadLengthQa::CreateHistograms(), CbmLitTofQa::CreateHistograms(), CbmLitFitQa::CreateHistograms(), CbmLitFieldQa::CreateHistos(), CbmLitClusteringQa::CreateHitEfficiencyHistograms(), CbmLitFitQa::CreateResidualAndPullHistograms(), CbmLitFitQa::CreateTrackParamHistograms(), CbmCosy2018MonitorPulser::DoUnpack(), and CbmRichUrqmdTest::InitHistograms().
void CbmHistManager::AddTDirectoryObject | ( | TObject * | obj | ) |
Add all TName objects to map in directory. Used in ReadFromFile method.
Definition at line 133 of file core/base/CbmHistManager.cxx.
References AddTNamedObject().
Referenced by ReadFromFile().
void CbmHistManager::AddTNamedObject | ( | TObject * | obj | ) |
Add TName object to map. Used in ReadFromFile method.
Definition at line 123 of file core/base/CbmHistManager.cxx.
References Add().
Referenced by AddTDirectoryObject(), and ReadFromFile().
void CbmHistManager::Clear | ( | Option_t * | ) |
Clear memory. Remove all histograms.
Definition at line 146 of file core/base/CbmHistManager.cxx.
References fMap.
|
inline |
Helper function for creation of 1-dimensional histograms and profiles. Template argument is a real object type that has to be created, for example, Create1<TH1F>("name", "title", 100, 0, 100);.
[in] | name | Object name. |
[in] | title | Object title. |
[in] | nofBins | Number of bins. |
[in] | minBin | Low axis limit. |
[in] | maxBin | Upper axis limit. |
Definition at line 81 of file CbmHistManager.h.
References Add().
Referenced by CbmAnaJpsiTask::CreateAnalysisStepsH1(), CbmAnaJpsiTask::CreateAnaStepsPairSourceH1(), CbmLitClusteringQa::CreateClusterParametersHistograms(), CbmStsDigitizeQa::CreateDigiHistograms(), CbmTrdMCQa::CreateHistograms(), CbmStsDigitizeQa::CreateHistograms(), CbmLitClusteringQa::CreateHistograms(), CbmTrdMCQa::CreateNofObjectsHistograms(), CbmStsDigitizeQa::CreateNofObjectsHistograms(), CbmLitClusteringQa::CreateNofObjectsHistograms(), CbmTrdMCQa::CreatePointHistograms(), CbmAnaJpsiTask::CreateSourceTypesH1(), CbmRichGeoTestOpt::DrawMeanEff(), CbmRichGeoTestOpt::DrawMeanRms(), CbmRichPMTMapping::InitHist(), CbmAnaJpsiSuperEvent::InitHist(), CbmAnaJpsiTask::InitHist(), CbmRichAlignment::InitHistAlignment(), CbmRichCorrectionVector::InitHistAlignment(), CbmRichMCbmQa::InitHistograms(), CbmRichRecoTbQa::InitHistograms(), CbmRichRecoQa::InitHistograms(), CbmRichUrqmdTest::InitHistograms(), CbmRichGeoTest::InitHistograms(), CbmPsdMCbmQaReal::InitHistograms(), CbmRichMCbmAerogelAna::InitHistograms(), CbmRichMCbmQaRichOnly::InitHistograms(), CbmRichMCbmQaReal::InitHistograms(), CbmRichMirrorSortingCorrection::InitHistoMap(), CbmRichMirrorSortingCorrection::InitHistProjection(), CbmRichCorrection::InitHistProjection(), CbmRichCorrectionVector::InitHistProjection(), CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps(), and CbmAnaJpsiReport::SignalOverBgAllSteps().
|
inline |
Helper function for creation of 2-dimensional histograms and profiles. Template argument is a real object type that has to be created, for example, Create2<TH2F>("name", "title", 100, 0, 100, 200, 0, 200);.
[in] | name | Object name. |
[in] | title | Object title. |
[in] | nofBinsX | Number of bins for X axis. |
[in] | minBinX | Low X axis limit. |
[in] | maxBinX | Upper X axis limit. |
[in] | nofBinsY | Number of bins for Y axis. |
[in] | minBinY | Low Y axis limit. |
[in] | maxBinY | Upper Y axis limit. |
Definition at line 104 of file CbmHistManager.h.
References Add().
Referenced by CbmAnaJpsiTask::CreateAnalysisStepsH2(), CbmLitClusteringQa::CreateClusterParametersHistograms(), CbmStsDigitizeQa::CreateDigiHistograms(), CbmTrdMCQa::CreatePointHistograms(), CbmAnaJpsiTask::CreateSourceTypesH2(), CbmRichGeoTestOpt::DrawMeanEff2D(), CbmRichGeoTestOpt::DrawMeanRms2D(), CbmRichAlignment::Finish(), CbmRichCorrectionVector::Finish(), CbmRichPMTMapping::InitHist(), CbmAnaJpsiTask::InitHist(), CbmRichAlignment::InitHistAlignment(), CbmRichCorrectionVector::InitHistAlignment(), CbmRichMCbmQa::InitHistograms(), CbmRichRecoQa::InitHistograms(), CbmRichUrqmdTest::InitHistograms(), CbmRichGeoTest::InitHistograms(), CbmPsdMCbmQaReal::InitHistograms(), CbmRichMCbmAerogelAna::InitHistograms(), CbmRichMCbmQaRichOnly::InitHistograms(), CbmRichMCbmQaReal::InitHistograms(), CbmRichMirrorSortingCorrection::InitHistoMap(), and CbmRichCorrectionVector::InitHistProjection().
|
inline |
Helper function for creation of 3-dimensional histograms and profiles. Template argument is a real object type that has to be created, for example, Create3<TH3F>("name", "title", 100, 0, 100, 200, 0, 200, 300, 0, 300);.
[in] | name | Object name. |
[in] | title | Object title. |
[in] | nofBinsX | Number of bins for X axis. |
[in] | minBinX | Low X axis limit. |
[in] | maxBinX | Upper X axis limit. |
[in] | nofBinsY | Number of bins for Y axis. |
[in] | minBinY | Low Y axis limit. |
[in] | maxBinY | Upper Y axis limit. |
[in] | nofBinsZ | Number of bins for Z axis. |
[in] | minBinZ | Low Z axis limit. |
[in] | maxBinZ | Upper Z axis limit. |
Definition at line 140 of file CbmHistManager.h.
References Add().
Referenced by CbmRichGeoTest::DrawPmts(), CbmRichRecoQa::InitHistograms(), CbmRichGeoTest::InitHistograms(), CbmPsdMCbmQaReal::InitHistograms(), CbmRichMCbmQaReal::InitHistograms(), and CbmRichMirrorSortingCorrection::InitHistoMap().
TCanvas * CbmHistManager::CreateCanvas | ( | const std::string & | name, |
const std::string & | title, | ||
Int_t | width, | ||
Int_t | height | ||
) |
Create and draw TCanvas and store pointer to it.
[in] | name | Name of the canvas. |
[in] | title | Title of the canvas. |
[in] | width | Width of the canvas. |
[in] | height | Height of the canvas. |
Definition at line 267 of file core/base/CbmHistManager.cxx.
References fCanvases.
Referenced by CbmAnaDielectronTaskDraw::Draw1DCut(), CbmAnaDielectronTaskDraw::Draw2DCut(), CbmAnaDielectronTaskDraw::DrawBgSource2D(), CbmAnaDielectronTaskDraw::DrawBgSourcesVsMomentum(), CbmAnaDielectronTaskDraw::DrawBgSourceTracks(), CbmRichMirrorSortingCorrection::DrawDistanceComp(), CbmAnaDielectronTaskDraw::DrawElPiMomHis(), CbmRichMCbmSEDisplay::DrawEvent(), CbmRichMCbmQa::DrawEvent(), CbmAnaDielectronTaskDraw::DrawGammaVertex(), CbmRichGeoTest::DrawH2MeanRms(), CbmRichMCbmQa::DrawHist(), CbmRichRecoTbQa::DrawHist(), CbmRichRecoQa::DrawHist(), CbmPsdMCbmQaReal::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichGeoTestOpt::DrawMeanEff(), CbmRichGeoTestOpt::DrawMeanEff2D(), CbmRichGeoTestOpt::DrawMeanRms(), CbmRichGeoTestOpt::DrawMeanRms2D(), CbmAnaDielectronTaskDraw::DrawMinvForEachAnalysisStep(), CbmAnaDielectronTaskDraw::DrawMinvPtAll(), CbmAnaDielectronTaskDraw::DrawMinvSandBgAll(), CbmAnaDielectronTaskDraw::DrawMinvSourceAll(), CbmAnaDielectronTaskDraw::DrawMismatchesAndGhosts(), CbmAnaDielectronTaskDraw::DrawMomentumDistributionAll(), CbmAnaDielectronTaskDraw::DrawMotherPdg(), CbmAnaDielectronTaskDraw::DrawMvdAndStsHist(), CbmAnaDielectronTaskDraw::DrawMvdCutQa(), CbmRichEventDisplay::DrawOneEvent(), CbmRichGeoTest::DrawPmts(), CbmAnaDielectronTaskDraw::DrawPmtXY(), CbmAnaDielectronTaskDraw::DrawPPAngleMCSignal(), CbmAnaDielectronTaskDraw::DrawPtYDistributionAll(), CbmAnaDielectronTaskDraw::DrawPtYEfficiencyAll(), CbmAnaDielectronTaskDraw::DrawRapidityDistributionAll(), CbmRichMCbmQaReal::DrawRichTofEv(), CbmRichMCbmQaRichOnly::DrawRing(), CbmRichGeoTest::DrawRing(), CbmRichMCbmQaReal::DrawRing(), CbmRichMirrorSortingCorrection::DrawRingTrackDistance(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffix(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffixPmtHalf(), CbmAnaDielectronTaskDraw::DrawSourcesBgPairsAll(), and CbmAnaDielectronTaskDraw::SOverBgAll().
|
inline |
Check existence of histogram in manager.
[in] | name | Name of histogram. |
Definition at line 303 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQa::FillEventCounterHistograms(), CbmLitClusteringQa::FillHitEfficiencyHistograms(), CbmLitClusteringQa::FillResidualAndPullHistograms(), CbmLitClusteringQa::ProcessClusters(), CbmLitClusteringQa::ProcessDigis(), CbmStsDigitizeQa::ProcessDigisAndPoints(), CbmLitClusteringQa::ProcessHits(), CbmLitClusteringQa::ProcessPoints(), CbmCosy2018MonitorPulser::ResetAllHistos(), CbmMcbm2018MonitorStsSync::ResetAllHistos(), CbmMcbm2018MonitorMuch::ResetAllHistos(), CbmMcbm2018MonitorSts::ResetAllHistos(), CbmMcbm2018MonitorMuchLite::ResetAllHistos(), CbmCosy2018MonitorPulser::SaveAllHistos(), CbmMcbm2018MonitorStsSync::SaveAllHistos(), CbmMcbm2018MonitorSts::SaveAllHistos(), CbmMcbm2018MonitorMuch::SaveAllHistos(), and CbmMcbm2018MonitorMuchLite::SaveAllHistos().
|
inline |
Return pointer to TGraph.
[in] | name | Name of graph. |
Definition at line 223 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitFieldQa::FillBHistos().
vector< TGraph * > CbmHistManager::G1Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TGraph.
[in] | pattern | Regex for object name. |
Definition at line 87 of file core/base/CbmHistManager.cxx.
|
inline |
Return pointer to TGraph2D.
[in] | name | Name of graph. |
Definition at line 243 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFieldQa::FillBHistos(), CbmLitFieldApproximationQa::FillBHistos(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), and CbmLitFieldQa::FillRichPmtPlaneBHistos().
vector< TGraph2D * > CbmHistManager::G2Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TGraph2D.
[in] | pattern | Regex for object name. |
Definition at line 91 of file core/base/CbmHistManager.cxx.
Referenced by CbmLitFieldApproximationQaReport::DrawApr(), and CbmLitFieldApproximationQaReport::DrawSlices().
|
inline |
Return pointer to TH1 histogram.
[in] | name | Name of histogram. |
Definition at line 170 of file CbmHistManager.h.
References fMap.
Referenced by CbmRichMCbmQaRichOnly::analyseRing(), CbmRichMCbmQaReal::analyseRing(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmStsDigitizeQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitClusteringQaReport::Create(), CbmRichGeoTest::CreateAccVsMinNofHitsHist(), DefaultAccAndRecLabelFormatter(), DefaultHitEfficiencyLabelFormatter(), CbmAnaJpsiTask::DifferenceSignalAndBg(), CbmAnaJpsiSuperEvent::DoSuperEvent(), CbmAnaJpsiSuperEventReport::Draw(), CbmAnaJpsiSuperEvent::Draw(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitTrackingQaStudyReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmAnaJpsiSuperEventReport::DrawComparison(), CbmRichMirrorSortingCorrection::DrawDistanceComp(), CbmLitTrackingQaStudyReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmRichMCbmQa::DrawHist(), CbmRichRecoTbQa::DrawHist(), CbmRichRecoQa::DrawHist(), CbmPsdMCbmQaReal::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichPMTMapping::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichAlignment::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistAlignment(), CbmRichCorrection::DrawHistProjection(), CbmRichCorrectionVector::DrawHistProjection(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmRichGeoTestOpt::DrawMeanEff(), CbmRichGeoTestOpt::DrawMeanRms(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), CbmAnaJpsiSuperEventReport::DrawMinvSignalBg(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmAnaJpsiSuperEventReport::DrawPairSource(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmRichRecoTbQa::DrawTimeLog(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmTrdMCQa::Exec(), CbmStsDigitizeQa::Exec(), CbmRichMCbmQa::Exec(), CbmPsdMCbmQaReal::Exec(), CbmRichMCbmAerogelAna::Exec(), CbmLitClusteringQa::Exec(), CbmRichMCbmQaRichOnly::Exec(), CbmRichMCbmQaReal::Exec(), CbmAnaJpsiTask::Exec(), CbmLitTrackingQa::Exec(), CbmLitRadLengthQa::ExecDetector(), CbmLitClusteringQa::FillEventCounterHistograms(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitTrackingQa::FillGlobalReconstructionHistos(), CbmLitTrackingQa::FillGlobalReconstructionHistosRich(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), CbmLitRadLengthQa::FillHistosDetector(), CbmRichMirrorSortingCorrection::FillHistProjection(), CbmRichCorrection::FillHistProjection(), CbmRichCorrectionVector::FillHistProjection(), CbmLitClusteringQa::FillHitEfficiencyHistograms(), CbmAnaJpsiTask::FillPairHists(), CbmRichMirrorSortingCorrection::FillRingTrackDistance(), CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr(), CbmLitFitQa::FillTrackParamHistogramm(), CbmLitTrackingQa::FillTrackQualityHistograms(), CbmTrdMCQa::Finish(), CbmStsDigitizeQa::Finish(), CbmRichCorrection::Finish(), CbmRichCorrectionVector::Finish(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmAnaDielectronTaskDraw::H1(), CbmSimulationReport::H1(), CbmLitTrackingQa::IncreaseCounters(), CbmRichUrqmdTest::NofHitsAndPoints(), CbmRichUrqmdTest::NofProjections(), CbmRichUrqmdTest::NofRings(), NormalizeToIntegral(), CbmAnaJpsiTask::PairMcAndAcceptance(), CbmAnaJpsiTask::PairSource(), CbmLitTrackingQa::PionSuppression(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), CbmRichRecoTbQa::Process(), CbmStsDigitizeQa::ProcessAngles(), CbmLitClusteringQa::ProcessClusters(), CbmLitClusteringQa::ProcessDigis(), CbmStsDigitizeQa::ProcessDigisAndPoints(), CbmLitTofQa::ProcessGlobalTracks(), CbmLitTrackingQa::ProcessGlobalTracks(), CbmLitClusteringQa::ProcessHits(), CbmRichGeoTest::ProcessHits(), CbmRichRecoTbQa::ProcessMc(), CbmRichGeoTest::ProcessMc(), CbmLitTrackingQa::ProcessMvd(), CbmTrdMCQa::ProcessPoints(), CbmLitClusteringQa::ProcessPoints(), CbmLitTofQa::ProcessTofHits(), CbmLitTofQa::ProcessTofTracks(), CbmLitFitQa::ProcessTrackMomentumAtVertex(), CbmLitFitQa::ProcessTrackParamsAtVertex(), CbmRichPMTMapping::ProjectionProducer(), CbmRichPMTMapping::ProjectionProducer2(), CbmAnaJpsiSuperEvent::ReadCandidates(), Rebin(), CbmCosy2018MonitorPulser::ResetAllHistos(), CbmMcbm2018MonitorStsSync::ResetAllHistos(), CbmMcbm2018MonitorSts::ResetAllHistos(), CbmMcbm2018MonitorMuch::ResetAllHistos(), CbmMcbm2018MonitorMuchLite::ResetAllHistos(), CbmRichMCbmAerogelAna::RichRings(), CbmRichMCbmQaRichOnly::RichRings(), CbmRichMCbmQaReal::RichRings(), CbmRichGeoTest::RingParameters(), CbmRichRecoTbQa::RingRecoEfficiency(), CbmRichRecoQa::RingTrackMismatchSource(), CbmCosy2018MonitorPulser::SaveAllHistos(), CbmMcbm2018MonitorStsSync::SaveAllHistos(), CbmMcbm2018MonitorSts::SaveAllHistos(), CbmMcbm2018MonitorMuch::SaveAllHistos(), CbmMcbm2018MonitorMuchLite::SaveAllHistos(), Scale(), CbmLitClusteringQaReport::ScaleAndShrinkHistograms(), CbmStsDigitizeQaReport::ScaleHistograms(), ShrinkEmptyBinsH1(), CbmAnaJpsiTask::SignalAndBgReco(), CbmAnaJpsiSuperEventReport::SignalOverBg(), CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps(), CbmAnaJpsiReport::SignalOverBgAllSteps(), CbmAnaJpsiTask::SingleParticleAcceptance(), CbmAnaJpsiTask::TrackSource(), and CbmRichUrqmdTest::Vertex().
vector< TH1 * > CbmHistManager::H1Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TH1 histogram.
[in] | pattern | Regex for histogram name. |
Definition at line 79 of file core/base/CbmHistManager.cxx.
Referenced by CbmLitClusteringQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculatePionSuppressionHistos(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitTrackingQaReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmLitFitQaReport::DrawTrackParams(), CbmLitTrackingQaReport::FillGlobalTrackVariants(), NormalizeToIntegralByPattern(), CbmLitTrackingQa::PionSuppression(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaReport::PrintTrackHits(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), CbmLitTrackingQa::ProcessMcTracks(), RebinByPattern(), CbmLitRadLengthQa::SaveDetectorMaterialBudgetToFile(), ScaleByPattern(), ShrinkEmptyBinsH1ByPattern(), and ShrinkEmptyBinsH2ByPattern().
|
inline |
Return pointer to TH2 histogram.
[in] | name | Name of histogram. |
Definition at line 190 of file CbmHistManager.h.
References fMap.
Referenced by CbmRichMCbmQaRichOnly::analyseRing(), CbmRichMCbmQaReal::analyseRing(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmAnaJpsiTask::DifferenceSignalAndBg(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmRichAlignment::DrawFit(), CbmRichCorrectionVector::DrawFit(), CbmRichMCbmQa::DrawHist(), CbmRichRecoQa::DrawHist(), CbmPsdMCbmQaReal::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichPMTMapping::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichAlignment::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistMapping(), CbmRichGeoTestOpt::DrawMeanEff2D(), CbmRichGeoTestOpt::DrawMeanRms2D(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), CbmRichMirrorSortingCorrection::DrawRingTrackDistance(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffix(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmRichMCbmQa::Exec(), CbmPsdMCbmQaReal::Exec(), CbmRichMCbmAerogelAna::Exec(), CbmRichMCbmQaRichOnly::Exec(), CbmRichMCbmQaReal::Exec(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), CbmRichGeoTest::FillMcVsHitFitCircle(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmAnaJpsiTask::FillPairHists(), CbmRichPMTMapping::FillPMTMap(), CbmRichCorrectionVector::FillPMTMap(), CbmRichPMTMapping::FillPMTMapEllipse(), CbmRichCorrectionVector::FillPMTMapEllipse(), CbmLitClusteringQa::FillResidualAndPullHistograms(), CbmLitFitQa::FillResidualsAndPulls(), CbmRichMirrorSortingCorrection::FillRingTrackDistance(), CbmRichRecoQa::FillRingTrackDistance(), CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr(), CbmTrdMCQa::Finish(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmLitTofQaReport::FitHistograms(), CbmLitTofQa::FitHistograms(), CbmAnaDielectronTaskDraw::H2(), CbmSimulationReport::H2(), CbmAnaJpsiTask::MCPairs(), CbmRichUrqmdTest::NofHitsAndPoints(), CbmRichUrqmdTest::NofProjections(), CbmAnaJpsiTask::PairMcAndAcceptance(), CbmRichUrqmdTest::PmtXYSource(), CbmStsDigitizeQa::ProcessAngles(), CbmStsDigitizeQa::ProcessDigisAndPoints(), CbmRichGeoTest::ProcessHits(), CbmRichGeoTest::ProcessMc(), CbmTrdMCQa::ProcessPoints(), CbmAnaJpsiTask::RichPmtXY(), CbmRichMCbmAerogelAna::RichRings(), CbmRichMCbmQaRichOnly::RichRings(), CbmRichMCbmQaReal::RichRings(), CbmRichGeoTest::RingParameters(), ShrinkEmptyBinsH2(), CbmAnaJpsiTask::TrackSource(), and CbmRichUrqmdTest::Vertex().
vector< TH2 * > CbmHistManager::H2Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TH2 histogram.
[in] | pattern | Regex for histogram name. |
Definition at line 83 of file core/base/CbmHistManager.cxx.
Referenced by CbmSimulationReport::DrawH2ByPattern(), and CbmLitFitQaReport::PrintResAndPullRow().
|
inline |
Return pointer to TH3 histogram.
[in] | name | Name of histogram. |
Definition at line 210 of file CbmHistManager.h.
References fMap.
Referenced by CbmRichRecoQa::DrawHist(), CbmPsdMCbmQaReal::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichGeoTest::DrawPmts(), CbmRichMirrorSortingCorrection::DrawRingTrackDistance(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffix(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffixPmtHalf(), CbmPsdMCbmQaReal::Exec(), CbmRichMCbmQaReal::Exec(), CbmRichMirrorSortingCorrection::FillRingTrackDistance(), CbmRichRecoQa::FillRingTrackDistance(), CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr(), CbmSimulationReport::H3(), and CbmRichGeoTest::RingParameters().
void CbmHistManager::NormalizeToIntegral | ( | const std::string & | histName | ) |
Normalize histogram to integral.
[in] | histName | Name of histogram. |
Definition at line 229 of file core/base/CbmHistManager.cxx.
References H1().
Referenced by NormalizeToIntegralByPattern().
void CbmHistManager::NormalizeToIntegralByPattern | ( | const std::string & | pattern | ) |
Normalize histograms to integral which name matches specified pattern.
[in] | histPatternName | Regular expression for histogram name. |
Definition at line 234 of file core/base/CbmHistManager.cxx.
References H1Vector(), and NormalizeToIntegral().
Referenced by CbmLitTofQaReport::Draw(), and CbmLitClusteringQaReport::ScaleAndShrinkHistograms().
|
private |
vector< T > CbmHistManager::ObjectVector | ( | const string & | pattern | ) | const |
Definition at line 59 of file core/base/CbmHistManager.cxx.
References fMap.
|
inline |
Return pointer to TProfile.
[in] | name | Name of profile. |
Definition at line 263 of file CbmHistManager.h.
References fMap.
Referenced by CbmCosy2018MonitorPulser::ResetAllHistos(), CbmMcbm2018MonitorStsSync::ResetAllHistos(), CbmMcbm2018MonitorMuch::ResetAllHistos(), CbmMcbm2018MonitorSts::ResetAllHistos(), CbmMcbm2018MonitorMuchLite::ResetAllHistos(), CbmCosy2018MonitorPulser::SaveAllHistos(), CbmMcbm2018MonitorStsSync::SaveAllHistos(), CbmMcbm2018MonitorMuch::SaveAllHistos(), CbmMcbm2018MonitorSts::SaveAllHistos(), and CbmMcbm2018MonitorMuchLite::SaveAllHistos().
vector< TProfile * > CbmHistManager::P1Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TProfile.
[in] | pattern | Regex for profile name. |
Definition at line 95 of file core/base/CbmHistManager.cxx.
|
inline |
Return pointer to TH2 histogram.
[in] | name | Name of histogram. |
Definition at line 283 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitRadLengthQa::ExecDetector(), CbmLitRadLengthQa::FillHistosDetector(), CbmLitTrackingGeometryConstructor::GetMuchLayout(), CbmLitTrackingGeometryConstructor::GetRichMaterial(), and CbmLitTrackingGeometryConstructor::GetTrdLayout().
vector< TProfile2D * > CbmHistManager::P2Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TProfile2D.
[in] | pattern | Regex for profile name. |
Definition at line 99 of file core/base/CbmHistManager.cxx.
void CbmHistManager::ReadFromFile | ( | TFile * | file | ) |
Read histograms from file.
[in] | file | Pointer to file with histograms. |
Definition at line 110 of file core/base/CbmHistManager.cxx.
References AddTDirectoryObject(), and AddTNamedObject().
Referenced by CbmRichMCbmQa::DrawFromFile(), CbmPsdMCbmQaReal::DrawFromFile(), CbmRichMCbmAerogelAna::DrawFromFile(), CbmRichMCbmQaRichOnly::DrawFromFile(), CbmRichRecoQa::DrawFromFile(), CbmRichMCbmQaReal::DrawFromFile(), CbmRichGeoTest::DrawFromFile(), CbmAnaDielectronTaskDraw::DrawHistFromFile(), CbmRichAlignment::DrawHistFromFile(), CbmRichPMTMapping::DrawHistFromFile(), CbmRichCorrection::DrawHistFromFile(), CbmRichCorrectionVector::DrawHistFromFile(), CbmLitTrackingGeometryConstructor::GetMuchLayout(), CbmLitTrackingGeometryConstructor::GetRichMaterial(), and CbmLitTrackingGeometryConstructor::GetTrdLayout().
void CbmHistManager::Rebin | ( | const std::string & | histName, |
Int_t | ngroup | ||
) |
Rebin histogram.
[in] | histName | Name of histogram. |
[in] | ngroup | Rebining factor. |
Definition at line 242 of file core/base/CbmHistManager.cxx.
References H1().
Referenced by RebinByPattern().
void CbmHistManager::RebinByPattern | ( | const std::string & | pattern, |
Int_t | ngroup | ||
) |
Rebin histograms which name matches specified pattern.
[in] | histPatternName | Regular expression for histogram name. |
[in] | ngroup | Rebining factor. |
Definition at line 250 of file core/base/CbmHistManager.cxx.
References H1Vector(), and Rebin().
Referenced by CbmAnaJpsiReport::Draw(), CbmAnaJpsiSuperEventReport::Draw(), and CbmAnaJpsiSuperEvent::Draw().
void CbmHistManager::SaveCanvasToImage | ( | const std::string & | outputDir, |
const std::string & | options = "png,eps" |
||
) |
Save all stored canvases to images.
[in] | outputDir | Path to the output directory (could be relative path). |
[in] | options | You can specify image format: eps, png or gif. Example: "gif,eps,png". |
Definition at line 276 of file core/base/CbmHistManager.cxx.
References fCanvases, i, and Cbm::SaveCanvasAsImage().
Referenced by CbmRichGeoTestOpt::Draw(), CbmRichMCbmQa::DrawFromFile(), CbmPsdMCbmQaReal::DrawFromFile(), CbmRichMCbmAerogelAna::DrawFromFile(), CbmRichRecoQa::DrawFromFile(), CbmRichMCbmQaRichOnly::DrawFromFile(), CbmRichMCbmQaReal::DrawFromFile(), CbmRichGeoTest::DrawFromFile(), CbmRichRecoTbQa::Finish(), CbmPsdMCbmQaReal::Finish(), CbmRichMCbmAerogelAna::Finish(), CbmRichRecoQa::Finish(), CbmRichMCbmQaRichOnly::Finish(), CbmRichMCbmQaReal::Finish(), CbmRichEventDisplay::Finish(), CbmRichUrqmdTest::Finish(), CbmRichGeoTest::Finish(), CbmRichMirrorSortingCorrection::Finish(), and CbmAnaDielectronTaskDraw::SaveCanvasToImage().
void CbmHistManager::Scale | ( | const std::string & | histName, |
Double_t | scale | ||
) |
Scale histogram.
[in] | histName | Name of histogram. |
[in] | scale | Scaling factor. |
Definition at line 217 of file core/base/CbmHistManager.cxx.
References H1().
Referenced by CbmTrdMCQa::Finish(), and ScaleByPattern().
void CbmHistManager::ScaleByPattern | ( | const std::string & | pattern, |
Double_t | scale | ||
) |
Scale histograms which name matches specified pattern.
[in] | histPatternName | Regular expression for histogram name. |
[in] | scale | Scaling factor. |
Definition at line 221 of file core/base/CbmHistManager.cxx.
References H1Vector(), and Scale().
Referenced by CbmAnaJpsiReport::Draw(), CbmAnaJpsiSuperEventReport::Draw(), CbmAnaJpsiSuperEvent::Draw(), CbmRichMCbmQa::DrawHist(), CbmPsdMCbmQaReal::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmAnaDielectronTaskDraw::DrawHistFromFile(), CbmLitClusteringQaReport::ScaleAndShrinkHistograms(), and CbmStsDigitizeQaReport::ScaleHistograms().
void CbmHistManager::ShrinkEmptyBinsH1 | ( | const std::string & | histName | ) |
Shrink empty bins in H1.
[in] | histName | Name of histogram. |
Definition at line 154 of file core/base/CbmHistManager.cxx.
References H1(), max(), and min().
Referenced by ShrinkEmptyBinsH1ByPattern().
void CbmHistManager::ShrinkEmptyBinsH1ByPattern | ( | const std::string & | pattern | ) |
Shrink empty bins in H1.
[in] | histPatternName | Regular expression for histogram name. |
Definition at line 174 of file core/base/CbmHistManager.cxx.
References H1Vector(), and ShrinkEmptyBinsH1().
Referenced by CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmLitFitQa::Finish(), CbmLitClusteringQaReport::ScaleAndShrinkHistograms(), and CbmStsDigitizeQaReport::ScaleHistograms().
void CbmHistManager::ShrinkEmptyBinsH2 | ( | const std::string & | histName | ) |
Shrink empty bins in H2.
[in] | histName | Name of histogram. |
Definition at line 182 of file core/base/CbmHistManager.cxx.
References H2(), max(), and min().
Referenced by ShrinkEmptyBinsH2ByPattern().
void CbmHistManager::ShrinkEmptyBinsH2ByPattern | ( | const std::string & | pattern | ) |
Shrink empty bins in H2.
[in] | histPatternName | Regular expression for histogram name. |
Definition at line 209 of file core/base/CbmHistManager.cxx.
References H1Vector(), and ShrinkEmptyBinsH2().
Referenced by CbmLitRadLengthQa::Finish(), and CbmLitClusteringQaReport::ScaleAndShrinkHistograms().
string CbmHistManager::ToString | ( | ) | const |
Return string representation of class.
Definition at line 258 of file core/base/CbmHistManager.cxx.
References fMap.
Referenced by CbmLitRadLengthQa::CreateHistograms(), CbmLitTrackingQa::CreateHistograms(), and CbmLitFieldApproximationQa::CreateHistos().
void CbmHistManager::WriteToFile | ( | ) |
Write all histograms to current opened file.
Definition at line 103 of file core/base/CbmHistManager.cxx.
References fMap.
Referenced by CbmTrdMCQa::Finish(), CbmStsDigitizeQa::Finish(), CbmRichMCbmQa::Finish(), CbmRichRecoTbQa::Finish(), CbmPsdMCbmQaReal::Finish(), CbmLitRadLengthQa::Finish(), CbmRichRecoQa::Finish(), CbmRichMCbmAerogelAna::Finish(), CbmLitClusteringQa::Finish(), CbmRichMCbmQaRichOnly::Finish(), CbmRichMCbmQaReal::Finish(), CbmAnaJpsiTask::Finish(), CbmLitTrackingQa::Finish(), CbmLitTofQa::Finish(), CbmRichUrqmdTest::Finish(), CbmLitFitQa::Finish(), CbmRichGeoTest::Finish(), CbmRichMirrorSortingCorrection::Finish(), CbmLitFieldQa::Init(), CbmLitFieldApproximationQa::Init(), and CbmAnaJpsiSuperEvent::Run().
|
friend |
Operator << for convenient output to std::ostream.
Definition at line 407 of file CbmHistManager.h.
|
private |
Definition at line 440 of file CbmHistManager.h.
Referenced by CreateCanvas(), and SaveCanvasToImage().
|
private |
Definition at line 439 of file CbmHistManager.h.
Referenced by Add(), Clear(), Exists(), G1(), G2(), H1(), H2(), H3(), ObjectVector(), P1(), P2(), ToString(), and WriteToFile().