|
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.
References fCanvases, and fMap.
Referenced by operator<<.
|
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 AddTNamedObject(), Create1(), Create1(), Create2(), Create2(), Create3(), and CreateSparse().
| 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.
|
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 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", 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().
|
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().
| 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.
|
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.
|
inline |
Return pointer to TGraph.
| [in] | name | Name of TGraph. |
Definition at line 313 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitFieldQaReport::DrawFieldAlongZ().
| 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(), and CbmLitFieldApproximationQaReport::DrawSlices().
| 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 LmvmDrawAll::DrawSystematicErrorFsSignal().
|
inline |
Return pointer to TH1 histogram.
| [in] | name | Name of TH1 histogram. |
Definition at line 207 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitClusteringQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmStsDigitizeQaReport::Create(), DefaultAccAndRecLabelFormatter(), DefaultHitEfficiencyLabelFormatter(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitTrackingQaStudyReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitTrackingQaStudyReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmSimulationReport::H1(), H1Clone(), NormalizeToIntegral(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), Rebin(), Scale(), CbmLitClusteringQaReport::ScaleAndShrinkHistograms(), CbmStsDigitizeQaReport::ScaleHistograms(), ShrinkEmptyBinsH1(), and CbmAnaJpsiReport::SignalOverBgAllSteps().
|
inline |
Return clone of TH1 histogram.
| [in] | name | Name of TH1 histogram. |
Definition at line 221 of file CbmHistManager.h.
References H1().
| 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(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmLitFitQaReport::DrawTrackParams(), CbmLitTrackingQaReport::FillGlobalTrackVariants(), NormalizeToIntegralByPattern(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaReport::PrintTrackHits(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), RebinByPattern(), 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 CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmLitTofQaReport::FitHistograms(), CbmSimulationReport::H2(), H2Clone(), and ShrinkEmptyBinsH2().
|
inline |
Return clone of TH2 histogram.
| [in] | name | Name of TH2 histogram. |
Definition at line 257 of file CbmHistManager.h.
References H2().
| 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 CbmSimulationReport::H3(), and H3Clone().
|
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 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.
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.
| 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 |
|
inline |
Return pointer to TProfile2D.
| [in] | name | Name of TProfile2D. |
Definition at line 397 of file CbmHistManager.h.
References fMap.
Referenced by CbmLitRadLengthQaReport::DrawDetector(), 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 |
| 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 LmvmDrawAll::DrawStudies(), LmvmDrawAll::DrawSystematicErrorFsSignal(), 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().
| 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().
| 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 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(), LmvmDrawAll::DrawSystematicErrorFsSignal(), 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(), 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 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 operator<<.
| 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.
|
friend |
Operator << for convenient output to std::ostream.
Definition at line 532 of file CbmHistManager.h.
References CbmHistManager(), and ToString().
|
private |
Definition at line 563 of file CbmHistManager.h.
Referenced by CbmHistManager(), Clear(), CreateCanvas(), SaveCanvasToImage(), and WriteCanvasToFile().
|
private |
Definition at line 562 of file CbmHistManager.h.
Referenced by Add(), CbmHistManager(), Clear(), Exists(), G1(), G2(), GetObject(), H1(), H2(), H3(), HnSparse(), ObjectVector(), ObjectVector(), P1(), P2(), ToString(), and WriteToFile().