BmnRoot
Loading...
Searching...
No Matches
BmnQaHistoManager Class Reference

#include <BmnQaHistoManager.h>

Inheritance diagram for BmnQaHistoManager:
[legend]
Collaboration diagram for BmnQaHistoManager:
[legend]

Public Member Functions

 BmnQaHistoManager ()
 
virtual ~BmnQaHistoManager ()
 
TString GetListOfHistos ()
 
 BmnQaHistoManager ()
 
virtual ~BmnQaHistoManager ()
 
TString GetListOfHistos ()
 
- Public Member Functions inherited from BmnHistManager
 BmnHistManager ()
 Constructor.
 
virtual ~BmnHistManager ()
 Destructor.
 
void Add (const TString &name, TNamed *object)
 Add new named object to manager.
 
template<class T >
void Create1 (const TString &name, const TString &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 Create2 (const TString &name, const TString &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);.
 
TH1 * H1 (const TString &name) const
 Return pointer to TH1 histogram.
 
TH2 * H2 (const TString &name) const
 Return pointer to TH2 histogram.
 
Bool_t Exists (const TString &name) const
 Check existence of histogram in manager.
 
void WriteToFile ()
 Write all histograms to current opened file.
 
void ResetHists ()
 Reset all histograms.
 
void ReadFromFile (TFile *file)
 Read histograms from file.
 
void Clear ()
 Clear memory. Remove all histograms.
 
void ShrinkEmptyBinsH1 (const TString &histName)
 Shrink empty bins in H1.
 
void ShrinkEmptyBinsH2 (const TString &histName)
 Shrink empty bins in H2.
 
void Scale (const TString &histName, Double_t scale)
 Scale histogram.
 
void NormalizeToIntegral (const TString &histName)
 Normalize histogram to integral.
 
void Rebin (const TString &histName, Int_t ngroup)
 Rebin histogram.
 
TString ToString () const
 Return string representation of class.
 
 BmnHistManager ()
 Constructor.
 
virtual ~BmnHistManager ()
 Destructor.
 
void Add (const TString &name, TNamed *object)
 Add new named object to manager.
 
template<class T >
void Create1 (const TString &name, const TString &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 Create2 (const TString &name, const TString &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);.
 
TH1 * H1 (const TString &name) const
 Return pointer to TH1 histogram.
 
TH2 * H2 (const TString &name) const
 Return pointer to TH2 histogram.
 
Bool_t Exists (const TString &name) const
 Check existence of histogram in manager.
 
void WriteToFile ()
 Write all histograms to current opened file.
 
void ResetHists ()
 Reset all histograms.
 
void ReadFromFile (TFile *file)
 Read histograms from file.
 
void Clear ()
 Clear memory. Remove all histograms.
 
void ShrinkEmptyBinsH1 (const TString &histName)
 Shrink empty bins in H1.
 
void ShrinkEmptyBinsH2 (const TString &histName)
 Shrink empty bins in H2.
 
void Scale (const TString &histName, Double_t scale)
 Scale histogram.
 
void NormalizeToIntegral (const TString &histName)
 Normalize histogram to integral.
 
void Rebin (const TString &histName, Int_t ngroup)
 Rebin histogram.
 
TString ToString () const
 Return string representation of class.
 

Detailed Description

Definition at line 9 of file BmnQaHistoManager.h.

Constructor & Destructor Documentation

◆ BmnQaHistoManager() [1/2]

BmnQaHistoManager::BmnQaHistoManager ( )

Default constructor

Definition at line 3 of file BmnQaHistoManager.cxx.

◆ ~BmnQaHistoManager() [1/2]

BmnQaHistoManager::~BmnQaHistoManager ( )
virtual

Destructor

Definition at line 7 of file BmnQaHistoManager.cxx.

◆ BmnQaHistoManager() [2/2]

BmnQaHistoManager::BmnQaHistoManager ( )

Default constructor

◆ ~BmnQaHistoManager() [2/2]

virtual BmnQaHistoManager::~BmnQaHistoManager ( )
virtual

Destructor

Member Function Documentation

◆ GetListOfHistos() [1/2]

TString BmnQaHistoManager::GetListOfHistos ( )
inline

Definition at line 19 of file BmnQaHistoManager.h.

References BmnHistManager::ToString().

◆ GetListOfHistos() [2/2]

TString BmnQaHistoManager::GetListOfHistos ( )
inline

Definition at line 19 of file BmnQaHistoManager.h.

References BmnHistManager::ToString().


The documentation for this class was generated from the following files: