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

Container class for histograms for the high- \( p_{t} \) charged particle analysis. More...

#include <THistManager.h>

Inheritance diagram for THistManager:

Classes

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

Public Member Functions

 THistManager ()
 
 THistManager (const char *name)
 
 ~THistManager ()
 
void ReleaseOwner ()
 
THashList * CreateHistoGroup (const char *groupname, const char *parent="/")
 
TH1CreateTH1 (const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
 
TH1CreateTH1 (const char *name, const char *title, int nbins, const double *xbins, Option_t *opt="")
 
TH1CreateTH1 (const char *name, const char *title, const TArrayD &xbins, Option_t *opt="")
 
TH1CreateTH1 (const char *name, const char *title, const TBinning &binning, Option_t *opt="")
 
TH2CreateTH2 (const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="")
 
TH2CreateTH2 (const char *name, const char *title, int nbinsx, const double *xbins, int nbinsy, const double *ybins, Option_t *opt="")
 
TH2CreateTH2 (const char *name, const char *title, const TArrayD &xbins, const TArrayD &ybins, Option_t *opt="")
 
TH2CreateTH2 (const char *name, const char *title, const TBinning &xbins, const TBinning &ybins, Option_t *opt="")
 
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="")
 
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="")
 
TH3CreateTH3 (const char *name, const char *title, const TArrayD &xbins, const TArrayD &ybins, const TArrayD &zbins, Option_t *opt="")
 
TH3CreateTH3 (const char *name, const char *title, const TBinning &xbins, const TBinning &ybins, const TBinning &zbins, Option_t *opt="")
 
THnSparse * CreateTHnSparse (const char *name, const char *title, int ndim, const int *nbins, const double *min, const double *max, Option_t *opt="")
 
THnSparse * CreateTHnSparse (const char *name, const char *title, int ndim, const TAxis **axes, Option_t *opt="")
 
void CreateTProfile (const char *name, const char *title, int nbinsX, double xmin, double xmax, Option_t *opt="")
 
void CreateTProfile (const char *name, const char *title, int nbinsX, const double *xbins, Option_t *opt="")
 
void CreateTProfile (const char *name, const char *title, const TArrayD &xbins, Option_t *opt="")
 
void CreateTProfile (const char *name, const char *title, const TBinning &xbins, Option_t *opt="")
 
void SetObject (TObject *const o, const char *group="/")
 
void FillTH1 (const char *hname, double x, double weight=1., Option_t *opt="")
 
void FillTH1 (const char *name, const char *label, double weight=1., Option_t *opt="")
 
void FillTH2 (const char *hname, double x, double y, double weight=1., Option_t *opt="")
 
void FillTH2 (const char *hname, double *point, double weight=1., Option_t *opt="")
 
void FillTH3 (const char *hname, double x, double y, double z, double weight=1., Option_t *opt="")
 
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
 
iterator end () const
 
iterator rbegin () const
 
iterator rend () const
 
THashList * GetListOfHistograms () const
 
TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 

Private Member Functions

 THistManager (const THistManager &)
 
THistManageroperator= (const THistManager &)
 
THashList * FindGroup (const char *dirname) const
 
void TokenizeFilename (const char *name, const char *delim, std::vector< std::string > &listoftokens) const
 
TString basename (const char *path) const
 
TString histname (const char *path) const
 

Private Attributes

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

Detailed Description

Container class for histograms for the high- \( p_{t} \) charged particle analysis.

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

Container class for histogram objects. Currently can handle TH1 TH2 TH3 THnSparse TProfile 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.

Definition at line 43 of file THistManager.h.

Constructor & Destructor Documentation

THistManager::THistManager ( )

Default constructor, only initialising pointers with 0

Definition at line 39 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 46 of file THistManager.cxx.

THistManager::~THistManager ( )

Destructor, deletes the list of histograms if it is the owner

Definition at line 56 of file THistManager.cxx.

THistManager::THistManager ( const THistManager )
private

Member Function Documentation

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

Helper function extracting the basename from a given histogram path.

Parameters
[in]pathhistogram path
Returns
basename extracted

Definition at line 638 of file THistManager.cxx.

Referenced by CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), 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 564 of file THistManager.h.

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

THashList * THistManager::CreateHistoGroup ( const char *  groupname,
const char *  parent = "/" 
)

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 60 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSample::AllocateCellHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateCellHistograms(), AliAnalysisTaskEmcalJetHF::AllocateCellHistograms(), AliAnalysisTaskEmcalSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetHF::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSample::AllocateJetHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateJetHistograms(), AliAnalysisTaskEmcalJetHF::AllocateJetHistograms(), AliAnalysisTaskEmcalSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetHF::AllocateTrackHistograms(), AliEMCALTriggerOfflineQAPP::Init(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects(), and AliAnalysisTaskDmesonJets::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 72 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSample::AllocateCellHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateCellHistograms(), AliAnalysisTaskEmcalJetHF::AllocateCellHistograms(), AliAnalysisTaskEmcalSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetSample::AllocateClusterHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateClusterHistograms(), AliAnalysisTaskEmcalJetHF::AllocateClusterHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateDijetHistograms(), AliAnalysisTaskEmcalJetSample::AllocateJetHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateJetHistograms(), AliAnalysisTaskEmcalJetHF::AllocateJetHistograms(), AliAnalysisTaskEmcalSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetHF::AllocateTrackHistograms(), AliEmcalCellMonitorTask::CreateHistograms(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::CreateHistos(), CreateTH1(), AliEMCALTriggerOfflineQAPP::EventTimeStamp(), AliEMCALTriggerOfflineQAPP::Init(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserCreateOutputObjects(), AliAnalysisTaskParticleInJet::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects(), AliAnalysisTaskEmcalIteratorTest::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserCreateOutputObjects(), AliEmcalTriggerMakerTask::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerEmulation::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::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 92 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 112 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 132 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 142 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalSample::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSample::AllocateCellHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateCellHistograms(), AliAnalysisTaskEmcalJetHF::AllocateCellHistograms(), AliAnalysisTaskEmcalJetSpectraQA::AllocateTHX(), AliAnalysisTaskEmcalSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetSample::AllocateTrackHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateTrackHistograms(), AliAnalysisTaskEmcalJetHF::AllocateTrackHistograms(), AliEmcalCellMonitorTask::CreateHistograms(), CreateTH2(), AliEMCALTriggerOfflineQAPP::Init(), AliAnalysisTaskEmcalTriggerPosition::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserCreateOutputObjects(), AliAnalysisTaskParticleInJet::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects(), AliEmcalTriggerMakerTask::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::UserCreateOutputObjects(), AliEmcalTriggerMaker::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 162 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 182 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 202 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 218 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalJetSpectraQA::AllocateTHX(), CreateTH3(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects(), 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 238 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 258 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 278 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 = "" 
)
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 319 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 349 of file THistManager.cxx.

Referenced by CreateTProfile(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::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 360 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 371 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 382 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 572 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)

Definition at line 590 of file THistManager.cxx.

Referenced by 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)

Definition at line 409 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalSample::DoCellLoop(), AliAnalysisTaskEmcalJetSample::DoCellLoop(), AliAnalysisTaskEmcalDijetImbalance::DoCellLoop(), AliAnalysisTaskEmcalJetHF::DoCellLoop(), AliAnalysisTaskEmcalSample::DoClusterLoop(), AliAnalysisTaskEmcalJetSample::DoClusterLoop(), AliAnalysisTaskEmcalDijetImbalance::DoClusterLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetHF::DoClusterLoop(), AliAnalysisTaskEmcalJetSample::DoJetLoop(), AliAnalysisTaskEmcalDijetImbalance::DoJetLoop(), AliAnalysisTaskEmcalJetHF::DoJetLoop(), AliAnalysisTaskEmcalSample::DoTrackLoop(), AliAnalysisTaskEmcalJetSample::DoTrackLoop(), AliAnalysisTaskEmcalDijetImbalance::DoTrackLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskEmcalJetHF::DoTrackLoop(), AliEMCALTriggerOfflineQAPP::EventCompleted(), AliEMCALTriggerOfflineQAPP::EventTimeStamp(), AliAnalysisTaskDmesonJets::AnalysisEngine::ExtractD0Attributes(), AliAnalysisTaskDmesonJets::AnalysisEngine::ExtractDstarAttributes(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FillClusterHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillClusterHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::FillEvent(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillEventCounterHists(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillEventHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FillEventHistograms(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillHnSparse(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillPatchHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillPatchHistos(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillQA(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::FillTrackHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillTrackHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillTrackHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::FillTracks(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillTree(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::IsEventSelected(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::Process(), AliEMCALTriggerOfflineQAPP::ProcessFastor(), AliEMCALTriggerOfflineQAPP::ProcessPatch(), AliEmcalTriggerMaker::ProcessPatch(), AliAnalysisTaskParticleInJet::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run(), AliAnalysisTaskEmcalDijetImbalance::Run(), AliAnalysisTaskEmcalIteratorTest::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerEmulation::Run(), AliEmcalTriggerMakerTask::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::Run(), AliAnalysisTaskDmesonJets::Run(), AliEmcalCellMonitorTask::RunChanged(), AliAnalysisTaskDmesonJets::AnalysisEngine::RunDetectorLevelAnalysis(), AliAnalysisTaskEmcalTriggerPosition::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserExec(), AliEmcalCellMonitorTask::UserExec(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserNotify().

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

Definition at line 432 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)

Definition at line 456 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalSample::DoCellLoop(), AliAnalysisTaskEmcalJetSample::DoCellLoop(), AliAnalysisTaskEmcalDijetImbalance::DoCellLoop(), AliAnalysisTaskEmcalJetQA::DoCellLoop(), AliAnalysisTaskEmcalJetHF::DoCellLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalSample::DoTrackLoop(), AliAnalysisTaskEmcalJetSample::DoTrackLoop(), AliAnalysisTaskEmcalDijetImbalance::DoTrackLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskEmcalJetHF::DoTrackLoop(), AliEMCALTriggerOfflineQAPP::EventCompleted(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FillClusterHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillClusterHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillEventHist(), AliAnalysisTaskEmcalJetSpectraQA::FillHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillPatchHistograms(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::FillPatchHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillPIDHistos(), AliEmcalTriggerMakerTask::FillQAHistos(), AliAnalysisTaskEmcalJetSpectraQA::FillTHX(), AliEMCALTriggerOfflineQAPP::ProcessFastor(), AliEMCALTriggerOfflineQAPP::ProcessPatch(), AliEmcalTriggerMaker::ProcessPatch(), AliAnalysisTaskParticleInJet::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserExec(), and AliEmcalCellMonitorTask::UserExec().

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)

Definition at line 481 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)

Definition at line 506 of file THistManager.cxx.

Referenced by AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskEmcalJetSpectraQA::FillHistograms(), AliAnalysisTaskEmcalJetSpectraQA::FillTHX(), and EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillTrackHistos().

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)

Definition at line 535 of file THistManager.cxx.

void THistManager::FillTHnSparse ( const char *  name,
const double *  x,
double  weight = 1.,
Option_t opt = "" 
)
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 615 of file THistManager.cxx.

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

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 608 of file THistManager.cxx.

THashList* THistManager::GetListOfHistograms ( ) const
inline

Get the list of histograms

Returns
The list of histograms

Definition at line 504 of file THistManager.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::GetHistList(), AliEMCALTriggerOfflineQAPP::GetListOfHistograms(), THistManager::iterator::operator*(), AliAnalysisTaskEmcalTriggerPosition::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEtaPhiEfficiency::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetCDF::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::UserCreateOutputObjects(), AliAnalysisTaskParticleInJet::UserCreateOutputObjects(), AliAnalysisTaskEmcalSample::UserCreateOutputObjects(), AliAnalysisTaskEmcalDijetImbalance::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSample::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), AliAnalysisTaskEmcalIteratorTest::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetSpectraQA::UserCreateOutputObjects(), AliEmcalTriggerMakerTask::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesMCTriggerMimic::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetHF::UserCreateOutputObjects(), AliEmcalTriggerMaker::UserCreateOutputObjects(), AliEmcalCellMonitorTask::UserCreateOutputObjects(), AliAnalysisTaskDmesonJets::UserCreateOutputObjects(), AliAnalysisTaskEmcalTriggerPosition::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskEventFilter::UserExec(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec(), and AliEmcalCellMonitorTask::UserExec().

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

Helper function extracting the histogram name from a given histogram path.

Parameters
[in]pathhistogram path
Returns
basename extracted

Definition at line 645 of file THistManager.cxx.

Referenced by CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), 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 568 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 576 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 392 of file THistManager.cxx.

void THistManager::TokenizeFilename ( const char *  name,
const char *  delim,
std::vector< std::string > &  listoftokens 
) const
private

Tokenizes a string. Results are stored inside the vector listoftokens

Parameters
[in]namestring to be tokenised
[in]delimdelimiter string
[in]listoftokenslist of tokens (C++ strings)

Definition at line 627 of file THistManager.cxx.

Referenced by FindGroup().

Member Data Documentation

THashList* THistManager::fHistos
private

List of histograms.

Definition at line 556 of file THistManager.h.

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

bool THistManager::fIsOwner
private

Set the ownership.

Definition at line 557 of file THistManager.h.

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


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