CbmRoot
|
Histogram manager. More...
#include <CbmHistManager.h>
Public Member Functions | |
CbmHistManager () | |
Constructor. | |
virtual | ~CbmHistManager () |
Destructor. | |
void | Add (const std::string &name, TNamed *object) |
Add new named object to manager. | |
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);. | |
template<class T > | |
void | Create1 (const std::string &name, const std::string &title, const std::vector< Double_t > &binsX) |
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", binsX);. | |
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);. | |
template<class T > | |
void | Create2 (const std::string &name, const std::string &title, const std::vector< Double_t > &binsX, const std::vector< Double_t > &binsY) |
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", binsX, binsY);. | |
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);. | |
template<class T , int nDim> | |
void | CreateSparse (const std::string &name, const std::string &title, const std::array< Int_t, nDim > &nBins, const std::array< Double_t, nDim > &minVals, const std::array< Double_t, nDim > &maxVals) |
Helper function for creation of THnSparse objects. | |
TNamed * | GetObject (const std::string &name) const |
TH1 * | H1 (const std::string &name) const |
Return pointer to TH1 histogram. | |
TH1 * | H1Clone (const std::string &name) const |
Return clone of TH1 histogram. | |
std::vector< TH1 * > | H1Vector (const std::vector< std::string > &names) const |
Return vector of pointers to TH1 histogram. | |
std::vector< TH1 * > | H1Vector (const std::string &pattern) const |
Return vector of pointers to TH1 histogram. | |
TH2 * | H2 (const std::string &name) const |
Return pointer to TH2 histogram. | |
TH2 * | H2Clone (const std::string &name) const |
Return clone of TH2 histogram. | |
std::vector< TH2 * > | H2Vector (const std::vector< std::string > &names) const |
Return vector of pointers to TH2 histogram. | |
std::vector< TH2 * > | H2Vector (const std::string &pattern) const |
Return vector of pointers to TH2 histogram. | |
TH3 * | H3 (const std::string &name) const |
Return pointer to TH3 histogram. | |
TH3 * | H3Clone (const std::string &name) const |
Return clone of TH3 histogram. | |
THnSparse * | HnSparse (const std::string &name) const |
Return pointer to THnSparse histogram. | |
TGraph * | G1 (const std::string &name) const |
Return pointer to TGraph. | |
std::vector< TGraph * > | G1Vector (const std::vector< std::string > &names) const |
Return vector of pointers to TGraph. | |
std::vector< TGraph * > | G1Vector (const std::string &pattern) const |
Return vector of pointers to TGraph. | |
TGraph2D * | G2 (const std::string &name) const |
Return pointer to TGraph2D. | |
std::vector< TGraph2D * > | G2Vector (const std::vector< std::string > &names) const |
Return vector of pointers to TGraph2D. | |
std::vector< TGraph2D * > | G2Vector (const std::string &pattern) const |
Return vector of pointers to TGraph2D. | |
TProfile * | P1 (const std::string &name) const |
Return pointer to TProfile. | |
std::vector< TProfile * > | P1Vector (const std::vector< std::string > &names) const |
Return vector of pointers to TProfile. | |
std::vector< TProfile * > | P1Vector (const std::string &pattern) const |
Return vector of pointers to TProfile. | |
TProfile2D * | P2 (const std::string &name) const |
Return pointer to TProfile2D. | |
std::vector< TProfile2D * > | P2Vector (const std::vector< std::string > &names) const |
Return vector of pointers to TProfile2D. | |
std::vector< TProfile2D * > | P2Vector (const std::string &pattern) const |
Return vector of pointers to TProfile2D. | |
Bool_t | Exists (const std::string &name) const |
Check existence of object in manager. | |
void | WriteToFile () |
Write all objects to current opened file. | |
void | WriteCanvasToFile () |
Write all canvas to current opened file. | |
void | ReadFromFile (TFile *file) |
Read histograms from file. | |
void | AddTNamedObject (TObject *obj) |
Add TName object to map. Used in ReadFromFile method. | |
void | AddTDirectoryObject (TObject *obj) |
Add all TName objects to map in directory. Used in ReadFromFile method. | |
void | Clear (Option_t *="") |
Clear memory. Remove all histograms and canvases. | |
void | ShrinkEmptyBinsH1 (const std::string &histName) |
Shrink empty bins in H1. | |
void | ShrinkEmptyBinsH1ByPattern (const std::string &pattern) |
Shrink empty bins in H1. | |
void | ShrinkEmptyBinsH2 (const std::string &histName) |
Shrink empty bins in H2. | |
void | ShrinkEmptyBinsH2ByPattern (const std::string &pattern) |
Shrink empty bins in H2. | |
void | Scale (const std::string &histName, Double_t scale) |
Scale histogram. | |
void | ScaleByPattern (const std::string &pattern, Double_t scale) |
Scale histograms which name matches specified pattern. | |
void | NormalizeToIntegral (const std::string &histName) |
Normalize histogram to integral. | |
void | NormalizeToIntegralByPattern (const std::string &pattern) |
Normalize histograms to integral which name matches specified pattern. | |
void | Rebin (const std::string &histName, Int_t ngroup) |
Rebin histogram. | |
void | RebinByPattern (const std::string &pattern, Int_t ngroup) |
Rebin histograms which name matches specified pattern. | |
std::string | ToString () const |
Return string representation of class. | |
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. | |
void | SaveCanvasToImage (const std::string &outputDir, const std::string &options="png,eps") |
Save all stored canvases to images. | |
template<class T > | |
vector< T > | ObjectVector (const string &pattern) const |
template<class T > | |
vector< T > | ObjectVector (const vector< string > &names) const |
Private Member Functions | |
template<class T > | |
std::vector< T > | ObjectVector (const std::string &pattern) const |
template<class T > | |
std::vector< T > | ObjectVector (const std::vector< std::string > &names) 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. | |
CbmHistManager::CbmHistManager | ( | ) |
Constructor.
Definition at line 50 of file core/base/CbmHistManager.cxx.
|
virtual |
Destructor.
Definition at line 52 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 65 of file CbmHistManager.h.
References fMap.
Referenced by CbmMcbm2018MonitorAlgoMuchLite::AddMsComponentToList(), CbmMcbm2018MonitorMuch::AddMsComponentToList(), CbmMcbm2018MonitorMuchLite::AddMsComponentToList(), CbmMcbm2018MonitorSts::AddMsComponentToList(), CbmMcbm2018MonitorStsSync::AddMsComponentToList(), AddTNamedObject(), Create1(), Create1(), Create2(), Create2(), Create3(), CbmLitFieldApproximationQa::CreateFieldHistos(), CbmLitFieldApproximationQa::CreateFitterHistos(), CbmLitFieldApproximationQa::CreateGridHistos(), CbmLitTrackingQa::CreateH1(), CbmLitTrackingQa::CreateH1Efficiency(), CbmLitTrackingQa::CreateH1PionSuppression(), CbmLitTrackingQa::CreateH2(), CbmLitTrackingQa::CreateH2Efficiency(), LmvmHist::CreateHByClone(), CbmLitFitQa::CreateHistograms(), CbmLitRadLengthQa::CreateHistograms(), CbmLitTofQa::CreateHistograms(), CbmLitFieldQa::CreateHistos(), CbmLitClusteringQa::CreateHitEfficiencyHistograms(), LmvmDrawAll::CreateMeanHist(), CbmLitFitQa::CreateResidualAndPullHistograms(), CreateSparse(), CbmLitFitQa::CreateTrackParamHistograms(), and CbmCosy2018MonitorPulser::DoUnpack().
void CbmHistManager::AddTDirectoryObject | ( | TObject * | obj | ) |
Add all TName objects to map in directory. Used in ReadFromFile method.
Definition at line 155 of file core/base/CbmHistManager.cxx.
References AddTDirectoryObject(), and AddTNamedObject().
Referenced by AddTDirectoryObject(), and ReadFromFile().
void CbmHistManager::AddTNamedObject | ( | TObject * | obj | ) |
Add TName object to map. Used in ReadFromFile method.
Definition at line 145 of file core/base/CbmHistManager.cxx.
References Add().
Referenced by AddTDirectoryObject(), and ReadFromFile().
void CbmHistManager::Clear | ( | Option_t * | = "" | ) |
Clear memory. Remove all histograms and canvases.
Definition at line 169 of file core/base/CbmHistManager.cxx.
References fCanvases, and fMap.
Referenced by CbmRichGeoTest::Finish(), and CbmRichUrqmdTest::Finish().
|
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", binsX);.
[in] | name | Object name. |
[in] | title | Object title. |
[in] | binsX | array of low-edges for each bin in X |
Definition at line 103 of file CbmHistManager.h.
References Add().
|
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 88 of file CbmHistManager.h.
References Add().
Referenced by CbmAnaJpsiTask::CreateAnalysisStepsH1(), CbmAnaJpsiTask::CreateAnaStepsPairSourceH1(), CbmLitClusteringQa::CreateClusterParametersHistograms(), CbmStsDigitizeQa::CreateDigiHistograms(), CbmLitClusteringQa::CreateHistograms(), CbmStsDigitizeQa::CreateHistograms(), CbmTrdMCQa::CreateHistograms(), CbmLitClusteringQa::CreateNofObjectsHistograms(), CbmLitClusteringQa::CreateNofObjectsHistograms(), CbmStsDigitizeQa::CreateNofObjectsHistograms(), CbmTrdMCQa::CreateNofObjectsHistograms(), CbmTrdMCQa::CreatePointHistograms(), CbmAnaJpsiTask::CreateSourceTypesH1(), CbmRichGeoTestOpt::DrawMeanEff(), CbmRichGeoTestOpt::DrawMeanRms(), CbmAnaJpsiSuperEvent::InitHist(), CbmAnaJpsiTask::InitHist(), CbmRichPMTMapping::InitHist(), CbmRichAlignment::InitHistAlignment(), CbmRichCorrectionVector::InitHistAlignment(), CbmPsdMCbmQaReal::InitHistograms(), CbmRichDigiQa::InitHistograms(), CbmRichGeoTest::InitHistograms(), CbmRichMCbmAerogelAna::InitHistograms(), CbmRichMCbmQa::InitHistograms(), CbmRichMCbmQaReal::InitHistograms(), CbmRichMCbmQaRichOnly::InitHistograms(), CbmRichRecoQa::InitHistograms(), CbmRichRecoTbQa::InitHistograms(), CbmRichUrqmdTest::InitHistograms(), CbmRichMirrorSortingCorrection::InitHistoMap(), CbmRichCorrection::InitHistProjection(), CbmRichCorrectionVector::InitHistProjection(), CbmRichMirrorSortingCorrection::InitHistProjection(), CbmAnaJpsiReport::SignalOverBgAllSteps(), and CbmAnaJpsiSuperEventReport::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", binsX, binsY);.
[in] | name | Object name. |
[in] | title | Object title. |
[in] | binsX | array of low-edges for each bin in X |
[in] | binsY | array of low-edges for each bin in Y |
Definition at line 140 of file CbmHistManager.h.
References Add().
|
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 123 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(), CbmAnaJpsiTask::InitHist(), CbmRichPMTMapping::InitHist(), CbmRichAlignment::InitHistAlignment(), CbmRichCorrectionVector::InitHistAlignment(), CbmPsdMCbmQaReal::InitHistograms(), CbmRichDigiQa::InitHistograms(), CbmRichGeoTest::InitHistograms(), CbmRichMCbmAerogelAna::InitHistograms(), CbmRichMCbmQa::InitHistograms(), CbmRichMCbmQaReal::InitHistograms(), CbmRichMCbmQaRichOnly::InitHistograms(), CbmRichRecoQa::InitHistograms(), CbmRichUrqmdTest::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 164 of file CbmHistManager.h.
References Add().
Referenced by CbmRichGeoTest::DrawPmts(), CbmPsdMCbmQaReal::InitHistograms(), CbmRichGeoTest::InitHistograms(), CbmRichMCbmQaReal::InitHistograms(), CbmRichRecoQa::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 303 of file core/base/CbmHistManager.cxx.
References fCanvases.
Referenced by LmvmDrawAll::CalcCutEffRange(), LmvmDraw::Draw1DCut(), LmvmDraw::Draw2DCut(), LmvmDraw::DrawAccRecVsMom(), LmvmHist::DrawAllCands(), LmvmHist::DrawAllCandsAndSteps(), LmvmHist::DrawAllGTracks(), LmvmDraw::DrawAnaStepMany(), LmvmDraw::DrawBetaMomSpectra(), LmvmDrawAll::DrawBetaMomSpectra(), LmvmDraw::DrawBgSourcePairsAll(), LmvmDraw::DrawBgSourceTracks(), LmvmDraw::DrawCombinatorialPairs(), LmvmDrawAll::DrawCutEffSignal(), CbmRichMirrorSortingCorrection::DrawDistanceComp(), LmvmDraw::DrawElPurity(), CbmRichMCbmQa::DrawEvent(), CbmRichMCbmSEDisplay::DrawEvent(), LmvmDraw::DrawGammaVertex(), LmvmDrawAll::DrawGTrackVertex(), CbmRichGeoTest::DrawH2MeanRms(), CbmPsdMCbmQaReal::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichMCbmQa::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichRecoQa::DrawHist(), CbmRichRecoTbQa::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmRichGeoTestOpt::DrawMeanEff(), CbmRichGeoTestOpt::DrawMeanEff2D(), CbmRichGeoTestOpt::DrawMeanRms(), CbmRichGeoTestOpt::DrawMeanRms2D(), LmvmDraw::DrawMinvAll(), LmvmDrawAll::DrawMinvAll(), LmvmDraw::DrawMinvBg(), LmvmDrawAll::DrawMinvBgSourcesAll(), LmvmDrawAll::DrawMinvCombBgAndSignal(), LmvmDrawAll::DrawMinvOfficialStyle(), LmvmDrawAll::DrawMinvPtAll(), LmvmDrawAll::DrawMinvScaleValues(), LmvmDraw::DrawMisc(), LmvmDraw::DrawMismatchesAndGhosts(), CbmRichRecoQa::DrawMismatchSrc(), LmvmDrawAll::DrawMomentum(), LmvmDrawAll::DrawMomPluto(), LmvmDrawAll::DrawMomRecoPrecision(), LmvmDraw::DrawMvdAndStsHist(), LmvmDraw::DrawMvdCutQa(), CbmRichEventDisplay::DrawOneEvent(), LmvmDrawAll::DrawPionSuppression(), CbmRichGeoTest::DrawPmts(), LmvmDraw::DrawPmtXY(), LmvmDrawAll::DrawPtYAndTofM2Elid(), LmvmDrawAll::DrawPurity(), CbmRichMCbmQaReal::DrawRichTofEv(), CbmRichGeoTest::DrawRing(), CbmRichMCbmQaReal::DrawRing(), CbmRichMCbmQaRichOnly::DrawRing(), CbmRichRecoQa::DrawRingTrackDist(), CbmRichMirrorSortingCorrection::DrawRingTrackDistance(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffix(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffixPmtHalf(), LmvmDrawAll::DrawSBgResults(), LmvmDrawAll::DrawSBgVsMinv(), LmvmDrawAll::DrawSignificance(), LmvmDraw::DrawSource2D(), LmvmDrawAll::DrawTofHitXY(), LmvmDrawAll::DrawTofM2(), LmvmDrawAll::DrawTofPilePids(), LmvmDrawAll::InvestigateMisid(), and LmvmDrawAll::SBgRangeAll().
|
inline |
Helper function for creation of THnSparse objects.
<T> | { real object type that has to be created, for example THnSparseD } |
<nDim> | { Array dimensions for nBins, minVals and maxVals } CreateSparse<THnSparseD, 3>("name", "title", nDim, nBins, minVals, maxVals); |
[in] | name | Object name. |
[in] | title | Object title. |
[in] | nBins | Array of size nDim with number of bins for each dimension. |
[in] | minVals | Array of size nDim with minimum values for each dimension. |
[in] | maxVals | Array of size nDim with maximum values for each dimension. |
Definition at line 184 of file CbmHistManager.h.
References Add().
|
inline |
Check existence of object in manager.
[in] | name | Name of object. |
Definition at line 425 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitClusteringQa::FillEventCounterHistograms(), CbmLitClusteringQa::FillHitEfficiencyHistograms(), CbmLitClusteringQa::FillResidualAndPullHistograms(), CbmLitClusteringQa::ProcessClusters(), CbmLitClusteringQa::ProcessDigis(), CbmStsDigitizeQa::ProcessDigisAndPoints(), CbmLitClusteringQa::ProcessHits(), CbmLitClusteringQa::ProcessPoints(), CbmCosy2018MonitorPulser::ResetAllHistos(), CbmMcbm2018MonitorAlgoMuchLite::ResetAllHistos(), CbmMcbm2018MonitorMuch::ResetAllHistos(), CbmMcbm2018MonitorMuchLite::ResetAllHistos(), CbmMcbm2018MonitorSts::ResetAllHistos(), CbmMcbm2018MonitorStsSync::ResetAllHistos(), CbmCosy2018MonitorPulser::SaveAllHistos(), CbmMcbm2018MonitorAlgoMuchLite::SaveAllHistos(), CbmMcbm2018MonitorMuch::SaveAllHistos(), CbmMcbm2018MonitorMuchLite::SaveAllHistos(), CbmMcbm2018MonitorSts::SaveAllHistos(), and CbmMcbm2018MonitorStsSync::SaveAllHistos().
|
inline |
Return pointer to TGraph.
[in] | name | Name of TGraph. |
Definition at line 313 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitFieldQaReport::DrawFieldAlongZ(), and CbmLitFieldQa::FillBHistos().
std::vector< TGraph * > CbmHistManager::G1Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TGraph.
[in] | pattern | Regex for TGraph name. |
std::vector< TGraph * > CbmHistManager::G1Vector | ( | const std::vector< std::string > & | names | ) | const |
Return vector of pointers to TGraph.
[in] | names | Vector of TGraph names. |
Referenced by CbmLitFieldQaReport::DrawFieldAlongZ().
|
inline |
Return pointer to TGraph2D.
[in] | name | Name of TGraph2D. |
Definition at line 341 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitFieldQaReport::DrawFieldRichPmtPlane(), CbmLitFieldQaReport::DrawFieldSlices(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFieldApproximationQa::FillBHistos(), CbmLitFieldQa::FillBHistos(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), and CbmLitFieldQa::FillRichPmtPlaneBHistos().
std::vector< TGraph2D * > CbmHistManager::G2Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TGraph2D.
[in] | pattern | Regex for TGraph2D name. |
std::vector< TGraph2D * > CbmHistManager::G2Vector | ( | const std::vector< std::string > & | names | ) | const |
Return vector of pointers to TGraph2D.
[in] | names | Vector of TGraph2D names. |
Referenced by CbmLitFieldApproximationQaReport::DrawApr(), CbmLitFieldQaReport::DrawFieldSlices(), and CbmLitFieldApproximationQaReport::DrawSlices().
|
inline |
Definition at line 192 of file CbmHistManager.h.
References fMap.
Referenced by LmvmHist::CreateHByClone(), and LmvmHist::GetObject().
|
inline |
Return pointer to TH1 histogram.
[in] | name | Name of TH1 histogram. |
Definition at line 207 of file CbmHistManager.h.
References fMap.
Referenced by CbmRichMCbmQaReal::analyseRing(), CbmRichMCbmQaRichOnly::analyseRing(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmLitClusteringQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmStsDigitizeQaReport::Create(), CbmRichGeoTest::CreateAccVsMinNofHitsHist(), DefaultAccAndRecLabelFormatter(), DefaultHitEfficiencyLabelFormatter(), CbmAnaJpsiTask::DifferenceSignalAndBg(), CbmAnaJpsiSuperEvent::DoSuperEvent(), CbmAnaJpsiSuperEvent::Draw(), CbmAnaJpsiSuperEventReport::Draw(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitTrackingQaStudyReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmAnaJpsiSuperEventReport::DrawComparison(), CbmRichMirrorSortingCorrection::DrawDistanceComp(), CbmLitTrackingQaStudyReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmPsdMCbmQaReal::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichMCbmQa::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichPMTMapping::DrawHist(), CbmRichRecoQa::DrawHist(), CbmRichRecoTbQa::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmRichAlignment::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistAlignment(), LmvmDraw::DrawHistFromFile(), CbmRichCorrection::DrawHistProjection(), CbmRichCorrectionVector::DrawHistProjection(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmRichGeoTestOpt::DrawMeanEff(), CbmRichGeoTestOpt::DrawMeanRms(), CbmAnaJpsiSuperEventReport::DrawMinvDiffPtBins(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), CbmAnaJpsiSuperEventReport::DrawMinvSignalBg(), CbmRichRecoQa::DrawMismatchSrc(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmAnaJpsiSuperEventReport::DrawPairSource(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmRichRecoTbQa::DrawTimeLog(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmAnaJpsiTask::Exec(), CbmLitClusteringQa::Exec(), CbmLitTrackingQa::Exec(), CbmPsdMCbmQaReal::Exec(), CbmRichDigiQa::Exec(), CbmRichMCbmAerogelAna::Exec(), CbmRichMCbmQa::Exec(), CbmRichMCbmQaReal::Exec(), CbmRichMCbmQaRichOnly::Exec(), CbmStsDigitizeQa::Exec(), CbmTrdMCQa::Exec(), CbmLitRadLengthQa::ExecDetector(), CbmLitClusteringQa::FillEventCounterHistograms(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitTrackingQa::FillGlobalReconstructionHistos(), CbmLitTrackingQa::FillGlobalReconstructionHistosRich(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), CbmLitRadLengthQa::FillHistosDetector(), CbmRichCorrection::FillHistProjection(), CbmRichCorrectionVector::FillHistProjection(), CbmRichMirrorSortingCorrection::FillHistProjection(), CbmLitClusteringQa::FillHitEfficiencyHistograms(), CbmAnaJpsiTask::FillPairHists(), CbmRichMirrorSortingCorrection::FillRingTrackDistance(), CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr(), CbmLitFitQa::FillTrackParamHistogramm(), CbmLitTrackingQa::FillTrackQualityHistograms(), CbmRichCorrection::Finish(), CbmRichCorrectionVector::Finish(), CbmStsDigitizeQa::Finish(), CbmTrdMCQa::Finish(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmSimulationReport::H1(), LmvmHist::H1(), H1Clone(), 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(), CbmRichGeoTest::ProcessMc(), CbmRichRecoTbQa::ProcessMc(), CbmLitTrackingQa::ProcessMvd(), CbmLitClusteringQa::ProcessPoints(), CbmTrdMCQa::ProcessPoints(), CbmLitTofQa::ProcessTofHits(), CbmLitTofQa::ProcessTofTracks(), CbmLitFitQa::ProcessTrackMomentumAtVertex(), CbmLitFitQa::ProcessTrackParamsAtVertex(), CbmRichPMTMapping::ProjectionProducer(), CbmRichPMTMapping::ProjectionProducer2(), CbmAnaJpsiSuperEvent::ReadCandidates(), Rebin(), CbmCosy2018MonitorPulser::ResetAllHistos(), CbmMcbm2018MonitorAlgoMuchLite::ResetAllHistos(), CbmMcbm2018MonitorMuch::ResetAllHistos(), CbmMcbm2018MonitorMuchLite::ResetAllHistos(), CbmMcbm2018MonitorSts::ResetAllHistos(), CbmMcbm2018MonitorStsSync::ResetAllHistos(), CbmRichMCbmAerogelAna::RichRings(), CbmRichMCbmQaReal::RichRings(), CbmRichMCbmQaRichOnly::RichRings(), CbmRichGeoTest::RingParameters(), CbmRichRecoTbQa::RingRecoEfficiency(), CbmRichRecoQa::RingTrackMismatchSource(), CbmCosy2018MonitorPulser::SaveAllHistos(), CbmMcbm2018MonitorAlgoMuchLite::SaveAllHistos(), CbmMcbm2018MonitorMuch::SaveAllHistos(), CbmMcbm2018MonitorMuchLite::SaveAllHistos(), CbmMcbm2018MonitorSts::SaveAllHistos(), CbmMcbm2018MonitorStsSync::SaveAllHistos(), Scale(), CbmLitClusteringQaReport::ScaleAndShrinkHistograms(), CbmStsDigitizeQaReport::ScaleHistograms(), ShrinkEmptyBinsH1(), CbmAnaJpsiTask::SignalAndBgReco(), CbmAnaJpsiSuperEventReport::SignalOverBg(), CbmAnaJpsiReport::SignalOverBgAllSteps(), CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps(), CbmAnaJpsiTask::SingleParticleAcceptance(), CbmAnaJpsiTask::TrackSource(), and CbmRichUrqmdTest::Vertex().
|
inline |
Return clone of TH1 histogram.
[in] | name | Name of TH1 histogram. |
Definition at line 221 of file CbmHistManager.h.
References H1().
Referenced by CbmRichGeoTest::DrawHist().
std::vector< TH1 * > CbmHistManager::H1Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TH1 histogram.
[in] | pattern | Regex for TH1 histogram name. |
std::vector< TH1 * > CbmHistManager::H1Vector | ( | const std::vector< std::string > & | names | ) | const |
Return vector of pointers to TH1 histogram.
[in] | names | Vector of TH1 histogram names. |
Referenced by CbmLitClusteringQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculatePionSuppressionHistos(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitTrackingQaReport::DrawEfficiency(), CbmRichGeoTest::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmLitFitQaReport::DrawTrackParams(), CbmLitTrackingQaReport::FillGlobalTrackVariants(), NormalizeToIntegralByPattern(), CbmLitTrackingQa::PionSuppression(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::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 TH2 histogram. |
Definition at line 243 of file CbmHistManager.h.
References fMap.
Referenced by CbmRichMCbmQaReal::analyseRing(), CbmRichMCbmQaRichOnly::analyseRing(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmAnaJpsiTask::DifferenceSignalAndBg(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmRichAlignment::DrawFit(), CbmRichCorrectionVector::DrawFit(), CbmPsdMCbmQaReal::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichMCbmQa::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), CbmRichPMTMapping::DrawHist(), CbmRichRecoQa::DrawHist(), CbmRichUrqmdTest::DrawHist(), CbmRichAlignment::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistAlignment(), CbmRichCorrectionVector::DrawHistMapping(), CbmRichGeoTestOpt::DrawMeanEff2D(), CbmRichGeoTestOpt::DrawMeanRms2D(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), CbmRichRecoQa::DrawRingTrackDist(), CbmRichMirrorSortingCorrection::DrawRingTrackDistance(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffix(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmPsdMCbmQaReal::Exec(), CbmRichDigiQa::Exec(), CbmRichMCbmAerogelAna::Exec(), CbmRichMCbmQa::Exec(), CbmRichMCbmQaReal::Exec(), CbmRichMCbmQaRichOnly::Exec(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), CbmRichGeoTest::FillMcVsHitFitCircle(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmAnaJpsiTask::FillPairHists(), CbmRichCorrectionVector::FillPMTMap(), CbmRichPMTMapping::FillPMTMap(), CbmRichCorrectionVector::FillPMTMapEllipse(), CbmRichPMTMapping::FillPMTMapEllipse(), CbmLitClusteringQa::FillResidualAndPullHistograms(), CbmLitFitQa::FillResidualsAndPulls(), CbmRichMirrorSortingCorrection::FillRingTrackDistance(), CbmRichRecoQa::FillRingTrackDistance(), CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr(), CbmTrdMCQa::Finish(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmLitTofQa::FitHistograms(), CbmLitTofQaReport::FitHistograms(), CbmSimulationReport::H2(), LmvmHist::H2(), H2Clone(), CbmAnaJpsiTask::MCPairs(), CbmRichUrqmdTest::NofHitsAndPoints(), CbmRichUrqmdTest::NofProjections(), CbmAnaJpsiTask::PairMcAndAcceptance(), CbmRichUrqmdTest::PmtXYSource(), CbmStsDigitizeQa::ProcessAngles(), CbmStsDigitizeQa::ProcessDigisAndPoints(), CbmRichGeoTest::ProcessHits(), CbmRichGeoTest::ProcessMc(), CbmTrdMCQa::ProcessPoints(), CbmAnaJpsiTask::RichPmtXY(), CbmRichMCbmAerogelAna::RichRings(), CbmRichMCbmQaReal::RichRings(), CbmRichMCbmQaRichOnly::RichRings(), CbmRichGeoTest::RingParameters(), ShrinkEmptyBinsH2(), CbmAnaJpsiTask::TrackSource(), and CbmRichUrqmdTest::Vertex().
|
inline |
Return clone of TH2 histogram.
[in] | name | Name of TH2 histogram. |
Definition at line 257 of file CbmHistManager.h.
References H2().
Referenced by CbmRichGeoTest::DrawHist(), and CbmRichUrqmdTest::DrawHist().
std::vector< TH2 * > CbmHistManager::H2Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TH2 histogram.
[in] | pattern | Regex for TH2 histogram name. |
std::vector< TH2 * > CbmHistManager::H2Vector | ( | const std::vector< std::string > & | names | ) | const |
Return vector of pointers to TH2 histogram.
[in] | names | Vector of TH2 histogram names. |
Referenced by CbmSimulationReport::DrawH2ByPattern(), and CbmLitFitQaReport::PrintResAndPullRow().
|
inline |
Return pointer to TH3 histogram.
[in] | name | Name of TH3 histogram. |
Definition at line 278 of file CbmHistManager.h.
References fMap.
Referenced by CbmPsdMCbmQaReal::DrawHist(), CbmRichGeoTest::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichRecoQa::DrawHist(), CbmRichGeoTest::DrawPmts(), CbmRichRecoQa::DrawRingTrackDist(), CbmRichMirrorSortingCorrection::DrawRingTrackDistance(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffix(), CbmRichRecoQa::DrawRingTrackDistHistWithSuffixPmtHalf(), CbmPsdMCbmQaReal::Exec(), CbmRichMCbmQaReal::Exec(), CbmRichMirrorSortingCorrection::FillRingTrackDistance(), CbmRichRecoQa::FillRingTrackDistance(), CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr(), CbmSimulationReport::H3(), H3Clone(), and CbmRichGeoTest::RingParameters().
|
inline |
Return clone of TH3 histogram.
[in] | name | Name of TH3 histogram. |
Definition at line 292 of file CbmHistManager.h.
References H3().
|
inline |
Return pointer to THnSparse histogram.
[in] | name | Name of THnSparse histogram. |
Definition at line 299 of file CbmHistManager.h.
References fMap.
void CbmHistManager::NormalizeToIntegral | ( | const std::string & | histName | ) |
Normalize histogram to integral.
[in] | histName | Name of histogram. |
Definition at line 260 of file core/base/CbmHistManager.cxx.
References H1().
Referenced by CbmRichGeoTest::DrawHist(), CbmRichUrqmdTest::DrawHist(), and 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 266 of file core/base/CbmHistManager.cxx.
References H1Vector(), and NormalizeToIntegral().
Referenced by CbmLitTofQaReport::Draw(), and CbmLitClusteringQaReport::ScaleAndShrinkHistograms().
|
private |
|
private |
vector< T > CbmHistManager::ObjectVector | ( | const string & | pattern | ) | const |
Definition at line 55 of file core/base/CbmHistManager.cxx.
References fMap.
vector< T > CbmHistManager::ObjectVector | ( | const vector< string > & | names | ) | const |
Definition at line 93 of file core/base/CbmHistManager.cxx.
References fMap.
|
inline |
Return pointer to TProfile.
[in] | name | Name of TProfile. |
Definition at line 369 of file CbmHistManager.h.
References fMap.
Referenced by CbmCosy2018MonitorPulser::ResetAllHistos(), CbmMcbm2018MonitorAlgoMuchLite::ResetAllHistos(), CbmMcbm2018MonitorMuch::ResetAllHistos(), CbmMcbm2018MonitorMuchLite::ResetAllHistos(), CbmMcbm2018MonitorSts::ResetAllHistos(), CbmMcbm2018MonitorStsSync::ResetAllHistos(), CbmCosy2018MonitorPulser::SaveAllHistos(), CbmMcbm2018MonitorAlgoMuchLite::SaveAllHistos(), CbmMcbm2018MonitorMuch::SaveAllHistos(), CbmMcbm2018MonitorMuchLite::SaveAllHistos(), CbmMcbm2018MonitorSts::SaveAllHistos(), and CbmMcbm2018MonitorStsSync::SaveAllHistos().
std::vector< TProfile * > CbmHistManager::P1Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TProfile.
[in] | pattern | Regex for TProfile name. |
std::vector< TProfile * > CbmHistManager::P1Vector | ( | const std::vector< std::string > & | names | ) | const |
Return vector of pointers to TProfile.
[in] | names | Vector of TProfile names. |
|
inline |
Return pointer to TProfile2D.
[in] | name | Name of TProfile2D. |
Definition at line 397 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitRadLengthQaReport::DrawDetector(), CbmLitRadLengthQa::ExecDetector(), CbmLitRadLengthQa::FillHistosDetector(), CbmLitTrackingGeometryConstructor::GetMuchLayout(), CbmLitTrackingGeometryConstructor::GetRichMaterial(), and CbmLitTrackingGeometryConstructor::GetTrdLayout().
std::vector< TProfile2D * > CbmHistManager::P2Vector | ( | const std::string & | pattern | ) | const |
Return vector of pointers to TProfile2D.
[in] | pattern | Regex for TProfile2D name. |
std::vector< TProfile2D * > CbmHistManager::P2Vector | ( | const std::vector< std::string > & | names | ) | const |
Return vector of pointers to TProfile2D.
[in] | names | Vector of TProfile2D names. |
void CbmHistManager::ReadFromFile | ( | TFile * | file | ) |
Read histograms from file.
[in] | file | Pointer to file with histograms. |
Definition at line 131 of file core/base/CbmHistManager.cxx.
References AddTDirectoryObject(), and AddTNamedObject().
Referenced by CbmPsdMCbmQaReal::DrawFromFile(), CbmRichGeoTest::DrawFromFile(), CbmRichMCbmAerogelAna::DrawFromFile(), CbmRichMCbmQa::DrawFromFile(), CbmRichMCbmQaReal::DrawFromFile(), CbmRichMCbmQaRichOnly::DrawFromFile(), CbmRichRecoQa::DrawFromFile(), CbmRichAlignment::DrawHistFromFile(), CbmRichCorrection::DrawHistFromFile(), CbmRichCorrectionVector::DrawHistFromFile(), CbmRichPMTMapping::DrawHistFromFile(), LmvmDraw::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 275 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 284 of file core/base/CbmHistManager.cxx.
References H1Vector(), and Rebin().
Referenced by CbmAnaJpsiReport::Draw(), CbmAnaJpsiSuperEvent::Draw(), and CbmAnaJpsiSuperEventReport::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 310 of file core/base/CbmHistManager.cxx.
References fCanvases, and Cbm::SaveCanvasAsImage().
Referenced by CbmRichGeoTestOpt::Draw(), CbmPsdMCbmQaReal::DrawFromFile(), CbmRichGeoTest::DrawFromFile(), CbmRichMCbmAerogelAna::DrawFromFile(), CbmRichMCbmQa::DrawFromFile(), CbmRichMCbmQaReal::DrawFromFile(), CbmRichMCbmQaRichOnly::DrawFromFile(), CbmRichRecoQa::DrawFromFile(), CbmPsdMCbmQaReal::Finish(), CbmRichEventDisplay::Finish(), CbmRichGeoTest::Finish(), CbmRichMCbmAerogelAna::Finish(), CbmRichMCbmQaReal::Finish(), CbmRichMCbmQaRichOnly::Finish(), CbmRichMirrorSortingCorrection::Finish(), CbmRichRecoQa::Finish(), CbmRichRecoTbQa::Finish(), CbmRichUrqmdTest::Finish(), LmvmDraw::SaveCanvasToImage(), and LmvmDrawAll::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 249 of file core/base/CbmHistManager.cxx.
References H1().
Referenced by CbmRichUrqmdTest::DrawHist(), CbmRichRecoQa::DrawMismatchSrc(), 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 251 of file core/base/CbmHistManager.cxx.
References H1Vector(), and Scale().
Referenced by CbmAnaJpsiReport::Draw(), CbmAnaJpsiSuperEvent::Draw(), CbmAnaJpsiSuperEventReport::Draw(), CbmPsdMCbmQaReal::DrawHist(), CbmRichMCbmAerogelAna::DrawHist(), CbmRichMCbmQa::DrawHist(), CbmRichMCbmQaReal::DrawHist(), CbmRichMCbmQaRichOnly::DrawHist(), LmvmDraw::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 182 of file core/base/CbmHistManager.cxx.
References H1().
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 203 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 212 of file core/base/CbmHistManager.cxx.
References H2().
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 240 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 293 of file core/base/CbmHistManager.cxx.
References fMap.
Referenced by CbmLitRadLengthQa::CreateHistograms(), CbmLitTrackingQa::CreateHistograms(), and CbmLitFieldApproximationQa::CreateHistos().
void CbmHistManager::WriteCanvasToFile | ( | ) |
Write all canvas to current opened file.
Definition at line 124 of file core/base/CbmHistManager.cxx.
References fCanvases.
void CbmHistManager::WriteToFile | ( | ) |
Write all objects to current opened file.
Definition at line 116 of file core/base/CbmHistManager.cxx.
References fMap.
Referenced by CbmAnaJpsiTask::Finish(), CbmLitClusteringQa::Finish(), CbmLitFitQa::Finish(), CbmLitRadLengthQa::Finish(), CbmLitTofQa::Finish(), CbmLitTrackingQa::Finish(), CbmPsdMCbmQaReal::Finish(), CbmRichDigiQa::Finish(), CbmRichGeoTest::Finish(), CbmRichMCbmAerogelAna::Finish(), CbmRichMCbmQa::Finish(), CbmRichMCbmQaReal::Finish(), CbmRichMCbmQaRichOnly::Finish(), CbmRichMirrorSortingCorrection::Finish(), CbmRichRecoQa::Finish(), CbmRichRecoTbQa::Finish(), CbmRichUrqmdTest::Finish(), CbmStsDigitizeQa::Finish(), CbmTrdMCQa::Finish(), CbmLitFieldApproximationQa::Init(), CbmLitFieldQa::Init(), CbmAnaJpsiSuperEvent::Run(), and LmvmHist::WriteToFile().
|
friend |
Operator << for convenient output to std::ostream.
Definition at line 532 of file CbmHistManager.h.
|
private |
Definition at line 563 of file CbmHistManager.h.
Referenced by Clear(), CreateCanvas(), SaveCanvasToImage(), and WriteCanvasToFile().
|
private |
Definition at line 562 of file CbmHistManager.h.
Referenced by Add(), Clear(), Exists(), G1(), G2(), GetObject(), H1(), H2(), H3(), HnSparse(), ObjectVector(), ObjectVector(), P1(), P2(), ToString(), and WriteToFile().