AliPhysics  6f1d526 (6f1d526)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
THistManager Class Reference

Container class for histograms. More...

#include <THistManager.h>

Inheritance diagram for THistManager:

Classes

class  iterator
 stl-iterator for the histogram manager More...
 

Public Member Functions

 THistManager ()
 Default constructor. More...
 
 THistManager (const char *name)
 Main constructor. More...
 
 ~THistManager ()
 Destructor. More...
 
void ReleaseOwner ()
 
THashList * CreateHistoGroup (const char *groupname)
 Create a new group of histograms within a parent group. More...
 
TH1CreateTH1 (const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
 Create a new TH1 within the container. More...
 
TH1CreateTH1 (const char *name, const char *title, int nbins, const double *xbins, Option_t *opt="")
 Create a new TH1 within the container. More...
 
TH1CreateTH1 (const char *name, const char *title, const TArrayD &xbins, Option_t *opt="")
 Create a new TH1 within the container. More...
 
TH1CreateTH1 (const char *name, const char *title, const TBinning &binning, Option_t *opt="")
 Create a new TH1 within the container. More...
 
TH2CreateTH2 (const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="")
 Create a new TH2 within the container. More...
 
TH2CreateTH2 (const char *name, const char *title, int nbinsx, const double *xbins, int nbinsy, const double *ybins, Option_t *opt="")
 Create a new TH2 within the container. More...
 
TH2CreateTH2 (const char *name, const char *title, const TArrayD &xbins, const TArrayD &ybins, Option_t *opt="")
 Create a new TH2 within the container. More...
 
TH2CreateTH2 (const char *name, const char *title, const TBinning &xbins, const TBinning &ybins, Option_t *opt="")
 Create a new TH2 within the container. More...
 
TH3CreateTH3 (const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, int nbinsz, double zmin, double zmax, Option_t *opt="")
 Create a new TH2 within the container. More...
 
TH3CreateTH3 (const char *name, const char *title, int nbinsx, const double *xbins, int nbinsy, const double *ybins, int nbinsz, const double *zbins, Option_t *opt="")
 Create a new TH3 within the container. More...
 
TH3CreateTH3 (const char *name, const char *title, const TArrayD &xbins, const TArrayD &ybins, const TArrayD &zbins, Option_t *opt="")
 Create a new TH3 within the container. More...
 
TH3CreateTH3 (const char *name, const char *title, const TBinning &xbins, const TBinning &ybins, const TBinning &zbins, Option_t *opt="")
 Create a new TH3 within the container. More...
 
THnSparse * CreateTHnSparse (const char *name, const char *title, int ndim, const int *nbins, const double *min, const double *max, Option_t *opt="")
 Create a new THnSparse within the container. More...
 
THnSparse * CreateTHnSparse (const char *name, const char *title, int ndim, const TAxis **axes, Option_t *opt="")
 Create a new THnSparse within the container. More...
 
THnSparse * CreateTHnSparse (const char *name, const char *title, int ndim, const TBinning **axes, Option_t *opt="")
 Create a new THnSparse within the container. More...
 
void CreateTProfile (const char *name, const char *title, int nbinsX, double xmin, double xmax, Option_t *opt="")
 Create a new TProfile within the container. More...
 
void CreateTProfile (const char *name, const char *title, int nbinsX, const double *xbins, Option_t *opt="")
 Create a new TProfile within the container. More...
 
void CreateTProfile (const char *name, const char *title, const TArrayD &xbins, Option_t *opt="")
 Create a new TProfile within the container. More...
 
void CreateTProfile (const char *name, const char *title, const TBinning &xbins, Option_t *opt="")
 Create a new TProfile within the container. More...
 
void SetObject (TObject *const o, const char *group="/")
 Set a new group into the container into the parent group. More...
 
void FillTH1 (const char *hname, double x, double weight=1., Option_t *opt="")
 Fill a 1D histogram within the container. More...
 
void FillTH1 (const char *name, const char *label, double weight=1., Option_t *opt="")
 Fill a 1D histogram within the container. More...
 
void FillTH2 (const char *hname, double x, double y, double weight=1., Option_t *opt="")
 Fill a 2D histogram within the container. More...
 
void FillTH2 (const char *name, const char *labelX, const char *labelY, double weight=1., Option_t *opt="")
 Fill a 2D histogram within the container. More...
 
void FillTH2 (const char *hname, double *point, double weight=1., Option_t *opt="")
 Fill a 2D histogram within the container. More...
 
void FillTH3 (const char *hname, double x, double y, double z, double weight=1., Option_t *opt="")
 Fill a 3D histogram within the container. More...
 
void FillTH3 (const char *hname, const double *point, double weight=1., Option_t *opt="")
 
void FillTHnSparse (const char *name, const double *x, double weight=1., Option_t *opt="")
 
void FillProfile (const char *name, double x, double y, double weight=1.)
 
iterator begin () const
 Create forward iterator starting at the beginning of the container. More...
 
iterator end () const
 Create forward iterator starting at the end of the container. More...
 
iterator rbegin () const
 Create backward iterator starting behind the end of the container. More...
 
iterator rend () const
 Create backward iterator starting before the beginning of the container. More...
 
THashList * GetListOfHistograms () const
 Get the list of histograms. More...
 
TObjectFindObject (const char *name) const
 Find an object inside the container. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Find and object inside the container. More...
 

Private Member Functions

 THistManager (const THistManager &)
 
THistManageroperator= (const THistManager &)
 
THashList * FindGroup (const char *dirname) const
 Find histogram group. More...
 
TString basename (const TString &path) const
 Extracting the basename from a given histogram path. More...
 
TString histname (const TString &path) const
 Extracting the histogram name from a given histogram path. More...
 

Private Attributes

THashList * fHistos
 List of histograms. More...
 
bool fIsOwner
 Set the ownership. More...
 

Detailed Description

Container class for histograms.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory

A container class for histogram handling

Usual analyses contain a set of histograms to be handled in analysis tasks. They are usually created in a UserCreateOutputObjects method, handled as data members, and filled in certain methods of the UserExec event loop.

The THistManager provides functionality handling histograms for user analyses in a simple, transparent and dynamic way. Histograms are created and automatically added to the histogram manager in Create methods. Histograms are handled via their names. Several Fill methods are available in order to fill a histogram with a certain name.

Currently the histogram manager can handle the following types:

  • TH1
  • TH2
  • TH3
  • THnSparse
  • TProfile For histograms with multiple data types always the double precision version is used.

#Structurizing histogram output

Histograms can be stored in groups. For this the parent group is included inside the histogram name, i.e. /base/inheriting/histogram. In case just the histogram name is given, it is assumed that the histogram is stored at the top level.

Creating Histograms

Creating histograms is done using the Create method for the various histogram types. Create methods need a name and a binning definition. It is recommended to use different TBinning} classes to initialize the binning. Once created the histogram is added to the histmanager and can be filled with the corresponding Fill method.

In the following example we create a 1-dimensional histogram:

THistManager mgr(testhists);
mgr.CreateTH1("hPt", "pt-distribution", TLinearBinning(100, 0., 100.));

Filling histograms

Once histograms are created, they can be filled with the corresponding fill method of a histogram type. For some histograms different Fill methods are provided to cover various use cases.

In the following example we fill the histogram created in the Create section with random values of an exponential distribution.

for(auto en : ROOT::TSeqI(0, 10000) {
double pt = gRandom->Exp(-1);
mgr.FillTH1("hPt", pt);
}

Optional automatic correction of the bin width

Correction for the bin width can be automatically handled by the histogram manager when filling the histogram. For this purpose the Fill methods provide an argument for options. Automatic correction for the bin width is done when specifying the argument W, followed by the direction. Adding multiple directions the weight is calculated for all directions at the same time.

Definition at line 99 of file THistManager.h.

Constructor & Destructor Documentation

THistManager::THistManager ( )

Default constructor.

Only initialising pointers with 0

Definition at line 42 of file THistManager.cxx.

THistManager::THistManager ( const char *  name)

Main constructor.

Creating also a list for the histograms

Parameters
nameName of the object (list named accordingly)

Definition at line 49 of file THistManager.cxx.

THistManager::~THistManager ( )

Destructor.

Deletes the list of histograms if it is the owner

Definition at line 59 of file THistManager.cxx.

THistManager::THistManager ( const THistManager )
private

Member Function Documentation

TString THistManager::basename ( const TString path) const
private

Extracting the basename from a given histogram path.

Parameters
[in]pathhistogram path
Returns
basename extracted

Definition at line 650 of file THistManager.cxx.

Referenced by CreateHistoGroup(), CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), FindGroup(), and FindObject().

THistManager::iterator THistManager::begin ( ) const
inline

Create forward iterator starting at the beginning of the container.

Returns
Forward iterator at the beginning of the container

Definition at line 730 of file THistManager.h.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects().

THashList * THistManager::CreateHistoGroup ( const char *  groupname)

Create a new group of histograms within a parent group.

Groups are represented as list. The default parent is always the top list. List name structure accouding to unix paths (i.e. top list /, hirarchies separated by /).

Parameters
groupnameName of the new group
parent(default "/") Name of the parent group
Exceptions
HistoContainerContentException

Definition at line 63 of file THistManager.cxx.

Referenced by AliAnalysisTaskJetSubstructure::AllocateCellHistograms(), AliAnalysisTaskEmcalSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateCellHistograms(), AliAnalysisTaskEmcalJetHF::AllocateCellHistograms(), AliAnalysisTaskJetSubstructure::AllocateClusterHistograms(), AliAnalysisTaskEmcalSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetHF::AllocateClusterHistograms(), AliAnalysisTaskJetSubstructure::AllocateJetHistograms(), AliAnalysisTaskEmcalJetSample::AllocateJetHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateJetHistograms(), AliAnalysisTaskEmcalJetHF::AllocateJetHistograms(), AliAnalysisTaskJetSubstructure::AllocateJetSubstructureHistograms(), AliAnalysisTaskJetSubstructure::AllocateTrackHistograms(), AliAnalysisTaskEmcalSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetHF::AllocateTrackHistograms(), CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), AliEMCALTriggerOfflineQAPP::Init(), SetObject(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), and AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects().

TH1 * THistManager::CreateTH1 ( const char *  name,
const char *  title,
int  nbins,
double  xmin,
double  xmax,
Option_t opt = "" 
)

Create a new TH1 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
nameName of the histogram
titleTitle of the histogram
nbinsnumber of bins
xminmin. value of the range
xmaxmax. value of the range
optAdditonal options (s for sumw2)

Definition at line 80 of file THistManager.cxx.

Referenced by AliAnalysisTaskJetSubstructure::AllocateCellHistograms(), AliAnalysisTaskEmcalSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateCellHistograms(), AliAnalysisTaskPWGJEQA::AllocateCellHistograms(), AliAnalysisTaskEmcalJetHF::AllocateCellHistograms(), AliAnalysisTaskJetSubstructure::AllocateClusterHistograms(), AliAnalysisTaskEmcalSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateClusterHistograms(), AliAnalysisTaskPWGJEQA::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetHF::AllocateClusterHistograms(), AliAnalysisTaskPWGJEQA::AllocateEventQAHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateGeometricalMatchingHistograms(), AliAnalysisTaskJetSubstructure::AllocateJetHistograms(), AliAnalysisTaskEmcalJetSample::AllocateJetHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateJetHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateJetHistograms(), AliAnalysisTaskEmcalJetHF::AllocateJetHistograms(), AliAnalysisTaskJetSubstructure::AllocateJetSubstructureHistograms(), AliAnalysisTaskJetSubstructure::AllocateTrackHistograms(), AliAnalysisTaskEmcalSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetHF::AllocateTrackHistograms(), AliEmcalCellMonitorTask::CreateHistograms(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::CreateHistos(), CreateTH1(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClusterMatched::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerMultiplicity::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::CreateUserHistos(), AliEMCALTriggerOfflineQAPP::EventTimeStamp(), AliEMCALTriggerOfflineQAPP::Init(), AliEmcalEmbeddingQA::Initialize(), TestTHistManager::THistManagerTestSuite::TestBuildGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserCreateOutputObjects(), AliAnalysisTaskEmcalNeutralJets::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEGAMonitor::UserCreateOutputObjects(), AliAnalysisTaskParticleInJet::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects(), AliAnalysisTaskEmcalIteratorTest::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalMaxPatch::UserCreateOutputObjects(), AliAnalysisTaskEmcalEmbeddingHelper::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerEmulation::UserCreateOutputObjects(), AliEmcalTriggerMakerTask::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::UserCreateOutputObjects(), AliEmcalFastOrMonitorTask::UserCreateOutputObjects(), AliEmcalTriggerMaker::UserCreateOutputObjects(), and AliAnalysisTaskDmesonJets::UserCreateOutputObjects().

TH1 * THistManager::CreateTH1 ( const char *  name,
const char *  title,
int  nbins,
const double *  xbins,
Option_t opt = "" 
)

Create a new TH1 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]nbinsnumber of bins
[in]xbinsarray of bin limits
[in]optAdditonal options (s for sumw2)

Definition at line 97 of file THistManager.cxx.

TH1 * THistManager::CreateTH1 ( const char *  name,
const char *  title,
const TArrayD xbins,
Option_t opt = "" 
)

Create a new TH1 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]xbinsarray of bin limits (contains also number of bins)
[in]optAdditonal options (s for sumw2)

Definition at line 114 of file THistManager.cxx.

TH1 * THistManager::CreateTH1 ( const char *  name,
const char *  title,
const TBinning binning,
Option_t opt = "" 
)

Create a new TH1 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]xbinsUser Binning
[in]optAdditonal options (s for sumw2)

Definition at line 131 of file THistManager.cxx.

TH2 * THistManager::CreateTH2 ( const char *  name,
const char *  title,
int  nbinsx,
double  xmin,
double  xmax,
int  nbinsy,
double  ymin,
double  ymax,
Option_t opt = "" 
)

Create a new TH2 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]nbinsxnumber of bins in x-direction
[in]xminmin. value of the range in x-direction
[in]xmaxmax. value of the range in x-direction
[in]nbinsynumber of bins in y-direction
[in]yminmin. value of the range in y-direction
[in]ymaxmax. value of the range in y-direction

Definition at line 141 of file THistManager.cxx.

Referenced by AliAnalysisTaskJetSubstructure::AllocateCellHistograms(), AliAnalysisTaskEmcalSample::AllocateCellHistograms(), AliAnalysisTaskPWGJEQA::AllocateCellHistograms(), AliAnalysisTaskEmcalJetHF::AllocateCellHistograms(), AliAnalysisTaskPWGJEQA::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateJetHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateJetHistograms(), AliAnalysisTaskPWGJEQA::AllocateJetHistograms(), AliAnalysisTaskEmcalJetSpectraQA::AllocateTHX(), AliAnalysisTaskJetSubstructure::AllocateTrackHistograms(), AliAnalysisTaskEmcalSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetHF::AllocateTrackHistograms(), AliEmcalCellMonitorTask::CreateHistograms(), CreateTH2(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClusterMatched::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::CreateUserHistos(), AliEMCALTriggerOfflineQAPP::Init(), TestTHistManager::THistManagerTestSuite::TestBuildGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliAnalysisTaskEmcalTriggerPosition::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEGAMonitor::UserCreateOutputObjects(), AliAnalysisTaskParticleInJet::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalMaxPatch::UserCreateOutputObjects(), AliEmcalTriggerMakerTask::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::UserCreateOutputObjects(), AliEmcalFastOrMonitorTask::UserCreateOutputObjects(), AliEmcalTriggerMaker::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::UserCreateOutputObjects(), and AliAnalysisTaskDmesonJets::UserCreateOutputObjects().

TH2 * THistManager::CreateTH2 ( const char *  name,
const char *  title,
int  nbinsx,
const double *  xbins,
int  nbinsy,
const double *  ybins,
Option_t opt = "" 
)

Create a new TH2 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]nbinsxnumber of bins in x-direction
[in]xminmin. value of the range in x-direction
[in]xmaxmax. value of the range in x-direction
[in]nbinsynumber of bins in y-direction
[in]yminmin. value of the range in y-direction
[in]ymaxmax. value of the range in y-direction

Definition at line 158 of file THistManager.cxx.

TH2 * THistManager::CreateTH2 ( const char *  name,
const char *  title,
const TArrayD xbins,
const TArrayD ybins,
Option_t opt = "" 
)

Create a new TH2 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]xbinsarray of bin limits in x-direction (contains also the number of bins)
[in]ybinsarray of bin limits in y-direction (contains also the number of bins)

Definition at line 175 of file THistManager.cxx.

TH2 * THistManager::CreateTH2 ( const char *  name,
const char *  title,
const TBinning xbins,
const TBinning ybins,
Option_t opt = "" 
)

Create a new TH2 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]Userbinning in x-direction
[in]Userbinning in y-direction

Definition at line 192 of file THistManager.cxx.

TH3 * THistManager::CreateTH3 ( const char *  name,
const char *  title,
int  nbinsx,
double  xmin,
double  xmax,
int  nbinsy,
double  ymin,
double  ymax,
int  nbinsz,
double  zmin,
double  zmax,
Option_t opt = "" 
)

Create a new TH2 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]nbinsxnumber of bins in x-direction
[in]xminmin. value of the range in x-direction
[in]xmaxmax. value of the range in x-direction
[in]nbinsynumber of bins in y-direction
[in]yminmin. value of the range in y-direction
[in]ymaxmax. value of the range in y-direction

Definition at line 208 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalJetSpectraQA::AllocateTHX(), CreateTH3(), TestTHistManager::THistManagerTestSuite::TestBuildGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), and AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects().

TH3 * THistManager::CreateTH3 ( const char *  name,
const char *  title,
int  nbinsx,
const double *  xbins,
int  nbinsy,
const double *  ybins,
int  nbinsz,
const double *  zbins,
Option_t opt = "" 
)

Create a new TH3 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]nbinsxnumber of bins in x-direction
[in]xbinsarray of bin limits in x-direction
[in]nbinsynumber of bins in y-direction
[in]ybinsarray of bin limits in y-direction
[in]nbinsznumber of bins in z-direction
[in]zbinsarray of bin limits in z-direction

Definition at line 225 of file THistManager.cxx.

TH3 * THistManager::CreateTH3 ( const char *  name,
const char *  title,
const TArrayD xbins,
const TArrayD ybins,
const TArrayD zbins,
Option_t opt = "" 
)

Create a new TH3 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]xbinsarray of bin limits in x-direction (contains also the number of bins)
[in]ybinsarray of bin limits in y-direction (contains also the number of bins)
[in]zbinsarray of bin limits in z-direction (contains also the number of bins)

Definition at line 242 of file THistManager.cxx.

TH3 * THistManager::CreateTH3 ( const char *  name,
const char *  title,
const TBinning xbins,
const TBinning ybins,
const TBinning zbins,
Option_t opt = "" 
)

Create a new TH3 within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]Userbinning in x-direction
[in]Userbinning in y-direction
[in]Userbinning in z-direction

Definition at line 259 of file THistManager.cxx.

THnSparse * THistManager::CreateTHnSparse ( const char *  name,
const char *  title,
int  ndim,
const int *  nbins,
const double *  min,
const double *  max,
Option_t opt = "" 
)

Create a new THnSparse within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]ndimNumber of dimensions
[in]nbinsNumber of bins per dimension
[in]minmin. value of the range for each dimension
[in]maxmax. value of the range for each dimension

Definition at line 280 of file THistManager.cxx.

Referenced by AliAnalysisTaskPWGJEQA::AllocateClusterHistograms(), AliAnalysisTaskPWGJEQA::AllocateDetectorLevelTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::AllocateDijetCandHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateDijetImbalanceHistograms(), AliAnalysisTaskPWGJEQA::AllocateEventQAHistograms(), AliAnalysisTaskPWGJEQA::AllocateGeneratorLevelTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::AllocateGeometricalMatchingHistograms(), AliAnalysisTaskPWGJEQA::AllocateJetHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateJetHistograms(), AliAnalysisTaskPWGJEQA::AllocateMatchedParticlesTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::AllocateMomentumBalanceHistograms(), AliAnalysisTaskEmcalJetSpectraQA::AllocateTHnSparse(), AliAnalysisTaskDmesonJets::AnalysisEngine::BuildHnSparse(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::CreateUserHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::CreateUserHistos(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliAnalysisTaskEmcalOccupancy::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), and AliEmcalFastOrMonitorTask::UserCreateOutputObjects().

THnSparse * THistManager::CreateTHnSparse ( const char *  name,
const char *  title,
int  ndim,
const TAxis **  axes,
Option_t opt = "" 
)

Create a new THnSparse within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]ndimNumber of dimensions
[in]axesArray of pointers to TAxis for containing the axis definition for each dimension

Definition at line 297 of file THistManager.cxx.

THnSparse * THistManager::CreateTHnSparse ( const char *  name,
const char *  title,
int  ndim,
const TBinning **  axes,
Option_t opt = "" 
)

Create a new THnSparse within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]titleTitle of the histogram
[in]ndimNumber of dimensions
[in]axesArray of pointers to TAxis for containing the axis definition for each dimension

Definition at line 324 of file THistManager.cxx.

void THistManager::CreateTProfile ( const char *  name,
const char *  title,
int  nbinsX,
double  xmin,
double  xmax,
Option_t opt = "" 
)

Create a new TProfile within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the profile histogram
[in]titleTitle of the profile histogram
[in]nbinsXNumber of bins in x-direction
[in]xminmin. value in x-direction
[in]xmaxmax. value in x-direction
[in]optFurther options

Definition at line 357 of file THistManager.cxx.

Referenced by AliAnalysisTaskPWGJEQA::AllocateCellHistograms(), CreateTProfile(), AliEmcalEmbeddingQA::Initialize(), TestTHistManager::THistManagerTestSuite::TestBuildGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), and AliAnalysisTaskEmcalEmbeddingHelper::UserCreateOutputObjects().

void THistManager::CreateTProfile ( const char *  name,
const char *  title,
int  nbinsX,
const double *  xbins,
Option_t opt = "" 
)

Create a new TProfile within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the profile histogram
[in]titleTitle of the profile histogram
[in]nbinsXNumber of bins in x-direction
[in]xbinsbinning in x-direction
[in]optFurther options

Definition at line 367 of file THistManager.cxx.

void THistManager::CreateTProfile ( const char *  name,
const char *  title,
const TArrayD xbins,
Option_t opt = "" 
)

Create a new TProfile within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the profile histogram
[in]titleTitle of the profile histogram
[in]xbinsbinning in x-direction
[in]optFurther options

Definition at line 377 of file THistManager.cxx.

void THistManager::CreateTProfile ( const char *  name,
const char *  title,
const TBinning xbins,
Option_t opt = "" 
)

Create a new TProfile within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the profile histogram
[in]titleTitle of the profile histogram
[in]xbinsUser binning
[in]optFurther options

Definition at line 387 of file THistManager.cxx.

THistManager::iterator THistManager::end ( ) const
inline

Create forward iterator starting at the end of the container.

Returns
Forward iterator after the end of the container

Definition at line 738 of file THistManager.h.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects().

void THistManager::FillProfile ( const char *  name,
double  x,
double  y,
double  weight = 1. 
)

Fill a profile histogram within the container. The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the profile histogram
[in]xx-coordinate
[in]yy-coordinate
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 617 of file THistManager.cxx.

Referenced by AliAnalysisTaskPWGJEQA::FillCellHistograms(), AliEmcalEmbeddingQA::RecordEmbeddedEventProperties(), AliAnalysisTaskEmcalEmbeddingHelper::RecordEmbeddedEventProperties(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserNotify().

void THistManager::FillTH1 ( const char *  hname,
double  x,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 1D histogram within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]xx-coordinate
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 411 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalEmbeddingHelper::CheckIsEmbeddedEventSelected(), AliAnalysisTaskJetSubstructure::DoCellLoop(), AliAnalysisTaskEmcalSample::DoCellLoop(), AliAnalysisTaskEmcalJetSample::DoCellLoop(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::DoCellLoop(), AliAnalysisTaskEmcalJetHF::DoCellLoop(), AliAnalysisTaskJetSubstructure::DoClusterLoop(), AliAnalysisTaskEmcalSample::DoClusterLoop(), AliAnalysisTaskEmcalJetSample::DoClusterLoop(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::DoClusterLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetHF::DoClusterLoop(), AliAnalysisTaskJetSubstructure::DoJetLoop(), AliAnalysisTaskEmcalJetSample::DoJetLoop(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::DoJetLoop(), AliAnalysisTaskEmcalJetHF::DoJetLoop(), AliAnalysisTaskJetSubstructure::DoJetSubstructureLoop(), AliAnalysisTaskJetSubstructure::DoTrackLoop(), AliAnalysisTaskEmcalSample::DoTrackLoop(), AliAnalysisTaskEmcalJetSample::DoTrackLoop(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::DoTrackLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskEmcalJetHF::DoTrackLoop(), AliEMCALTriggerOfflineQAPP::EventCompleted(), AliEMCALTriggerOfflineQAPP::EventTimeStamp(), AliAnalysisTaskPWGJEQA::FillCellHistograms(), AliAnalysisTaskPWGJEQA::FillClusterHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FillClusterHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillClusterHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::FillEvent(), AliAnalysisTaskPWGJEQA::FillEventQAHistograms(), AliAnalysisTaskEmcalDijetImbalance::FillGeometricalMatchingHistograms(), AliAnalysisTaskEmcalNeutralJets::FillHistograms(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillHnSparse(), AliAnalysisTaskEmcalDijetImbalance::FillJetHistograms(), AliAnalysisTaskDmesonJets::FillPartonLevelHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillPatchHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillPatchHistos(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillQA(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillTrackHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::FillTracks(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillTree(), AliAnalysisTaskEmcalEmbeddingHelper::GetNextEntry(), AliAnalysisTaskEmcalEmbeddingHelper::InitTree(), AliAnalysisTaskEmcalEmbeddingHelper::IsEventSelected(), AliEmcalFastOrMonitorTask::LoadEventCellData(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::Process(), AliEMCALTriggerOfflineQAPP::ProcessFastor(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::ProcessMaxPatch(), AliEMCALTriggerOfflineQAPP::ProcessPatch(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::ProcessPatch(), AliEmcalTriggerMaker::ProcessPatch(), AliEmcalEmbeddingQA::RecordEmbeddedEventProperties(), AliAnalysisTaskEmcalEmbeddingHelper::RecordEmbeddedEventProperties(), AliAnalysisTaskParticleInJet::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEGAMonitor::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run(), AliAnalysisTaskEmcalIteratorTest::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalMaxPatch::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerEmulation::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerMultiplicity::Run(), AliEmcalTriggerMakerTask::Run(), AliAnalysisTaskDmesonJets::Run(), AliAnalysisTaskEmcalDijetImbalance::RunChanged(), AliEmcalFastOrMonitorTask::RunChanged(), AliEmcalCellMonitorTask::RunChanged(), AliAnalysisTaskDmesonJets::AnalysisEngine::RunDetectorLevelAnalysis(), AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliAnalysisTaskEmcalTriggerPosition::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserExec(), AliEmcalFastOrMonitorTask::UserExec(), AliEmcalCellMonitorTask::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClusterMatched::UserFillHistosAfterEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerMultiplicity::UserFillHistosAfterEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::UserFillHistosAfterEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserFillHistosAfterEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserFillHistosAfterEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserFillHistosAfterEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserFillHistosBeforeEventSelection(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserNotify(), and AliAnalysisTaskPWGJEQA::UserNotify().

void THistManager::FillTH1 ( const char *  name,
const char *  label,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 1D histogram within the container.

Instead of an x-value a bin label is used instead. The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]labelLabel of the bin to fill
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 434 of file THistManager.cxx.

void THistManager::FillTH2 ( const char *  hname,
double  x,
double  y,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 2D histogram within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]xx-coordinate
[in]yy-coordinate
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 458 of file THistManager.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::AnalyseFastors(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::AnalyseTriggerPatch(), AliAnalysisTaskEmcalDijetImbalance::ComputeBackground(), AliAnalysisTaskJetSubstructure::DoCellLoop(), AliAnalysisTaskEmcalSample::DoCellLoop(), AliAnalysisTaskEmcalJetQA::DoCellLoop(), AliAnalysisTaskEmcalJetHF::DoCellLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::DoJetLoop(), AliAnalysisTaskJetSubstructure::DoTrackLoop(), AliAnalysisTaskEmcalSample::DoTrackLoop(), AliAnalysisTaskEmcalJetSample::DoTrackLoop(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::DoTrackLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskEmcalJetHF::DoTrackLoop(), AliEMCALTriggerOfflineQAPP::EventCompleted(), AliAnalysisTaskPWGJEQA::FillCellHistograms(), AliAnalysisTaskPWGJEQA::FillClusterHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FillClusterHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillClusterHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillEventHist(), AliAnalysisTaskEmcalJetSpectraQA::FillHistograms(), AliAnalysisTaskPWGJEQA::FillJetHistograms(), AliAnalysisTaskEmcalDijetImbalance::FillJetHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillPatchHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillPatchHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillPIDHistos(), AliEmcalTriggerMakerTask::FillQAHistos(), AliAnalysisTaskEmcalJetSpectraQA::FillTHX(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::IsEventSelected(), AliEMCALTriggerOfflineQAPP::ProcessFastor(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::ProcessMaxPatch(), AliEMCALTriggerOfflineQAPP::ProcessPatch(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::ProcessPatch(), AliEmcalTriggerMaker::ProcessPatch(), AliAnalysisTaskParticleInJet::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEGAMonitor::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalMaxPatch::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClusterMatched::Run(), AliEmcalTriggerMakerTask::Run(), AliEmcalTriggerMakerTask::RunChanged(), AliAnalysisTaskDmesonJets::AnalysisEngine::RunDetectorLevelAnalysis(), AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserExec(), AliEmcalFastOrMonitorTask::UserExec(), and AliEmcalCellMonitorTask::UserExec().

void THistManager::FillTH2 ( const char *  name,
const char *  labelX,
const char *  labelY,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 2D histogram within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]labelXx-coordinate
[in]labelYy-coordinate
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 508 of file THistManager.cxx.

void THistManager::FillTH2 ( const char *  hname,
double *  point,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 2D histogram within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]pointcoordinates of the data
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 483 of file THistManager.cxx.

void THistManager::FillTH3 ( const char *  hname,
double  x,
double  y,
double  z,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 3D histogram within the container.

The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]xx-coordinate
[in]yy-coordinate
[in]zz-coordinate
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 533 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskEmcalJetSpectraQA::FillHistograms(), AliAnalysisTaskEmcalJetSpectraQA::FillTHX(), and TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms().

void THistManager::FillTH3 ( const char *  hname,
const double *  point,
double  weight = 1.,
Option_t opt = "" 
)

Fill a 3D histogram within the container. The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]point3D-coordinate (x,y,z) of the point to be filled
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 562 of file THistManager.cxx.

void THistManager::FillTHnSparse ( const char *  name,
const double *  x,
double  weight = 1.,
Option_t opt = "" 
)

Fill a nD histogram within the container. The histogram name also contains the parent group(s) according to the common group notation.

Parameters
[in]nameName of the histogram
[in]xcoordinates of the data
[in]weightoptional weight of the entry (default 1)
[in]optionOptional filling arguments

Definition at line 591 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalDijetImbalance::ComputeBackground(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillAmplitudeHistogram(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillClusterHist(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::FillJetHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillJetHistogram(), AliAnalysisTaskEmcalDijetImbalance::FillJetHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillMCParticleHist(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillPIDHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillTrackHist(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillTrackHistogramCentrality(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillTrackHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillTriggerInfoHistogram(), AliAnalysisTaskEmcalOccupancy::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::Run(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliEmcalFastOrMonitorTask::UserExec(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserFillHistosAfterEventSelection().

THashList * THistManager::FindGroup ( const char *  dirname) const
private

Find histogram group.

Name is using common notation

Parameters
[in]dirnamePath of the group (treat empty path as top node
Returns
TList of objects (NULL if group does not exist)

Definition at line 642 of file THistManager.cxx.

Referenced by CreateHistoGroup(), CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), FindObject(), and SetObject().

TObject * THistManager::FindObject ( const char *  name) const

Find an object inside the container.

The object can also be within a histogram group. For this the name has to follow the common notation.

Parameters
[in]nameName of the object to find inside the container
Returns
pointer to the object (NULL if not found)

Definition at line 628 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalJetSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSample::AllocateJetHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliEMCALTriggerOfflineQAPP::EventTimeStamp(), AliAnalysisTaskPWGJEQA::FillClusterHistograms(), AliAnalysisTaskPWGJEQA::FillDetectorLevelTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::FillDijetCandHistograms(), AliAnalysisTaskEmcalDijetImbalance::FillDijetImbalanceHistograms(), AliAnalysisTaskEmcalRun2QA::FillEventQAHisto(), AliAnalysisTaskEmcalJetQA::FillEventQAHisto(), AliAnalysisTaskPWGJEQA::FillEventQAHistograms(), AliAnalysisTaskPWGJEQA::FillGeneratorLevelTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::FillGeometricalMatchingHistograms(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillHnSparse(), AliAnalysisTaskPWGJEQA::FillJetHistograms(), AliAnalysisTaskPWGJEQA::FillMatchedParticlesTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::FillMomentumBalanceHistograms(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillQA(), AliAnalysisTaskEmcalJetSpectraQA::FillTHnSparse(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillTree(), AliAnalysisTaskDmesonJets::AnalysisEngine::FindJet(), AliAnalysisTaskEmcalJetCDF::GetHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::Process(), AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::UserCreateOutputObjects().

TObject * THistManager::FindObject ( const TObject obj) const
virtual

Find and object inside the container.

The object name is expected to contain the full path of the histogram object, including parent groups.

Parameters
[in]objthe object to find
Returns
pointer to the object (NULL if not found)

Definition at line 635 of file THistManager.cxx.

THashList* THistManager::GetListOfHistograms ( ) const
inline

Get the list of histograms.

Returns
The list of histograms

Definition at line 671 of file THistManager.h.

Referenced by AliEmcalEmbeddingQA::AddQAPlotsToList(), EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::GetHistList(), AliEMCALTriggerOfflineQAPP::GetListOfHistograms(), THistManager::iterator::operator*(), TestTHistManager::THistManagerTestSuite::TestBuildGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillGroupedHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliAnalysisTaskEmcalTriggerPosition::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserCreateOutputObjects(), AliAnalysisTaskJetSubstructure::UserCreateOutputObjects(), AliAnalysisTaskEmcalNeutralJets::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEGAMonitor::UserCreateOutputObjects(), AliAnalysisTaskParticleInJet::UserCreateOutputObjects(), AliAnalysisTaskEmcalSample::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSample::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), AliAnalysisTaskEmcalIteratorTest::UserCreateOutputObjects(), AliAnalysisTaskEmcalDijetImbalance::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalMaxPatch::UserCreateOutputObjects(), AliAnalysisTaskPWGJEQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalEmbeddingHelper::UserCreateOutputObjects(), AliEmcalTriggerMakerTask::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetHF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::UserCreateOutputObjects(), AliEmcalFastOrMonitorTask::UserCreateOutputObjects(), AliEmcalTriggerMaker::UserCreateOutputObjects(), AliEmcalCellMonitorTask::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::UserCreateOutputObjects(), AliAnalysisTaskDmesonJets::UserCreateOutputObjects(), AliAnalysisTaskEmcalTriggerPosition::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::UserExec(), AliEmcalFastOrMonitorTask::UserExec(), and AliEmcalCellMonitorTask::UserExec().

TString THistManager::histname ( const TString path) const
private

Extracting the histogram name from a given histogram path.

Parameters
[in]pathhistogram path
Returns
basename extracted

Definition at line 656 of file THistManager.cxx.

Referenced by CreateHistoGroup(), CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), FindGroup(), and FindObject().

THistManager& THistManager::operator= ( const THistManager )
private
THistManager::iterator THistManager::rbegin ( ) const
inline

Create backward iterator starting behind the end of the container.

Used to terminate the iteration.

Returns
Backward iterator behind the end of the histogram manager

Definition at line 734 of file THistManager.h.

THistManager::iterator THistManager::rend ( ) const
inline

Create backward iterator starting before the beginning of the container.

Used to terminate the iteration.

Returns
Backward iterator starting before the beginning of the histogram manager

Definition at line 742 of file THistManager.h.

void THistManager::SetObject ( TObject *const  o,
const char *  group = "/" 
)

Set a new group into the container into the parent group.

Parameters
[in]othe object to be included

Definition at line 397 of file THistManager.cxx.

Member Data Documentation

THashList* THistManager::fHistos
private

List of histograms.

Definition at line 722 of file THistManager.h.

Referenced by end(), FindGroup(), GetListOfHistograms(), rbegin(), SetObject(), THistManager(), and ~THistManager().

bool THistManager::fIsOwner
private

Set the ownership.

Definition at line 723 of file THistManager.h.

Referenced by ReleaseOwner(), and ~THistManager().


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