![]() |
AliPhysics
d84cbc0 (d84cbc0)
|
Container class for histograms for the high- \( p_{t} \) charged particle analysis. More...
#include <THistManager.h>
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="/") |
TH1 * | CreateTH1 (const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="") |
TH1 * | CreateTH1 (const char *name, const char *title, int nbins, const double *xbins, Option_t *opt="") |
TH1 * | CreateTH1 (const char *name, const char *title, const TArrayD &xbins, Option_t *opt="") |
TH1 * | CreateTH1 (const char *name, const char *title, const TBinning &binning, Option_t *opt="") |
TH2 * | CreateTH2 (const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="") |
TH2 * | CreateTH2 (const char *name, const char *title, int nbinsx, const double *xbins, int nbinsy, const double *ybins, Option_t *opt="") |
TH2 * | CreateTH2 (const char *name, const char *title, const TArrayD &xbins, const TArrayD &ybins, Option_t *opt="") |
TH2 * | CreateTH2 (const char *name, const char *title, const TBinning &xbins, const TBinning &ybins, Option_t *opt="") |
TH3 * | 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="") |
TH3 * | 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="") |
TH3 * | CreateTH3 (const char *name, const char *title, const TArrayD &xbins, const TArrayD &ybins, const TArrayD &zbins, Option_t *opt="") |
TH3 * | CreateTH3 (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 |
TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
Private Member Functions | |
THistManager (const THistManager &) | |
THistManager & | operator= (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... | |
Container class for histograms for the high- \( p_{t} \) charged particle analysis.
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.
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
name | Name 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.
|
private |
|
private |
Helper function extracting the basename from a given histogram path.
[in] | path | histogram path |
Definition at line 638 of file THistManager.cxx.
Referenced by CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), and FindObject().
|
inline |
Create forward iterator starting 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 /).
groupname | Name of the new group |
parent | (default "/") Name of the parent group |
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.
name | Name of the histogram |
title | Title of the histogram |
nbins | number of bins |
xmin | min. value of the range |
xmax | max. value of the range |
opt | Additonal 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | nbins | number of bins |
[in] | xbins | array of bin limits |
[in] | opt | Additonal 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | xbins | array of bin limits (contains also number of bins) |
[in] | opt | Additonal 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | xbins | User Binning |
[in] | opt | Additonal 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | nbinsx | number of bins in x-direction |
[in] | xmin | min. value of the range in x-direction |
[in] | xmax | max. value of the range in x-direction |
[in] | nbinsy | number of bins in y-direction |
[in] | ymin | min. value of the range in y-direction |
[in] | ymax | max. 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | nbinsx | number of bins in x-direction |
[in] | xmin | min. value of the range in x-direction |
[in] | xmax | max. value of the range in x-direction |
[in] | nbinsy | number of bins in y-direction |
[in] | ymin | min. value of the range in y-direction |
[in] | ymax | max. 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | xbins | array of bin limits in x-direction (contains also the number of bins) |
[in] | ybins | array 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | User | binning in x-direction |
[in] | User | binning 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | nbinsx | number of bins in x-direction |
[in] | xmin | min. value of the range in x-direction |
[in] | xmax | max. value of the range in x-direction |
[in] | nbinsy | number of bins in y-direction |
[in] | ymin | min. value of the range in y-direction |
[in] | ymax | max. 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | nbinsx | number of bins in x-direction |
[in] | xbins | array of bin limits in x-direction |
[in] | nbinsy | number of bins in y-direction |
[in] | ybins | array of bin limits in y-direction |
[in] | nbinsz | number of bins in z-direction |
[in] | zbins | array 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | xbins | array of bin limits in x-direction (contains also the number of bins) |
[in] | ybins | array of bin limits in y-direction (contains also the number of bins) |
[in] | zbins | array 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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | User | binning in x-direction |
[in] | User | binning in y-direction |
[in] | User | binning 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 = "" |
||
) |
Create a new THnSparse within the container. The histogram name also contains the parent group(s) according to the common group notation.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | ndim | Number of dimensions |
[in] | nbins | Number of bins per dimension |
[in] | min | min. value of the range for each dimension |
[in] | max | max. value of the range for each dimension |
Definition at line 299 of file THistManager.cxx.
Referenced by AliAnalysisTaskEmcalJetSpectraQA::AllocateTHnSparse(), AliAnalysisTaskDmesonJets::AnalysisEngine::BuildHnSparse(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), and AliAnalysisTaskEmcalRun2QA::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.
[in] | name | Name of the histogram |
[in] | title | Title of the histogram |
[in] | ndim | Number of dimensions |
[in] | axes | Array 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.
[in] | name | Name of the profile histogram |
[in] | title | Title of the profile histogram |
[in] | nbinsX | Number of bins in x-direction |
[in] | xmin | min. value in x-direction |
[in] | xmax | max. value in x-direction |
[in] | opt | Further 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.
[in] | name | Name of the profile histogram |
[in] | title | Title of the profile histogram |
[in] | nbinsX | Number of bins in x-direction |
[in] | xbins | binning in x-direction |
[in] | opt | Further 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.
[in] | name | Name of the profile histogram |
[in] | title | Title of the profile histogram |
[in] | xbins | binning in x-direction |
[in] | opt | Further 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.
[in] | name | Name of the profile histogram |
[in] | title | Title of the profile histogram |
[in] | xbins | User binning |
[in] | opt | Further options |
Definition at line 382 of file THistManager.cxx.
|
inline |
Create forward iterator starting at 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.
[in] | name | Name of the profile histogram |
[in] | x | x-coordinate |
[in] | y | y-coordinate |
[in] | weight | optional 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.
[in] | name | Name of the histogram |
[in] | x | x-coordinate |
[in] | weight | optional 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.
[in] | name | Name of the histogram |
[in] | x | x-coordinate |
[in] | y | y-coordinate |
[in] | weight | optional 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.
[in] | name | Name of the histogram |
[in] | point | coordinates of the data |
[in] | weight | optional 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.
[in] | name | Name of the histogram |
[in] | x | x-coordinate |
[in] | y | y-coordinate |
[in] | z | z-coordinate |
[in] | weight | optional 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.
[in] | name | Name of the histogram |
[in] | point | 3D-coordinate (x,y,z) of the point to be filled |
[in] | weight | optional 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 = "" |
||
) |
Fill a nD histogram within the container. The histogram name also contains the parent group(s) according to the common group notation.
[in] | name | Name of the histogram |
[in] | x | coordinates of the data |
[in] | weight | optional weight of the entry (default 1) |
Definition at line 564 of file THistManager.cxx.
Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillAmplitudeHistogram(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillClusterHist(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::FillJetHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillJetHistogram(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillMCParticleHist(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillPIDHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillTrackHist(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillTrackHistogramCentrality(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillTriggerInfoHistogram(), and EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::Run().
|
private |
Find histogram group. Name is using common notation
[in] | dirname | Path of the group (treat empty path as top node |
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 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
[in] | name | Name of the object to find inside the container |
Definition at line 601 of file THistManager.cxx.
Referenced by AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliEMCALTriggerOfflineQAPP::EventTimeStamp(), AliAnalysisTaskEmcalJetQA::FillEventQAHisto(), AliAnalysisTaskEmcalRun2QA::FillEventQAHisto(), AliAnalysisTaskDmesonJets::AnalysisEngine::FillHnSparse(), AliAnalysisTaskEmcalJetSpectraQA::FillTHnSparse(), AliAnalysisTaskDmesonJets::AnalysisEngine::FindJet(), AliAnalysisTaskEmcalJetCDF::GetHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::Process(), and AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis().
Find and object inside the container. The object name is expected to contain the full path of the histogram object, including parent groups
[in] | obj | the object to find |
Definition at line 608 of file THistManager.cxx.
|
inline |
Get 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().
|
private |
Helper function extracting the histogram name from a given histogram path.
[in] | path | histogram path |
Definition at line 645 of file THistManager.cxx.
Referenced by CreateTH1(), CreateTH2(), CreateTH3(), CreateTHnSparse(), CreateTProfile(), FillProfile(), FillTH1(), FillTH2(), FillTH3(), FillTHnSparse(), and FindObject().
|
private |
|
inline |
Create backward iterator starting behind the end of the container. Used to terminate the iteration.
Definition at line 568 of file THistManager.h.
|
inline |
Definition at line 180 of file THistManager.h.
Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::UserCreateOutputObjects(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects(), and AliAnalysisTaskEmcalIteratorTest::UserCreateOutputObjects().
|
inline |
Create backward iterator starting before the beginning of the container. Used to terminate the iteration.
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
[in] | o | the object to be included |
Definition at line 392 of file THistManager.cxx.
|
private |
Tokenizes a string. Results are stored inside the vector listoftokens
[in] | name | string to be tokenised |
[in] | delim | delimiter string |
[in] | listoftokens | list of tokens (C++ strings) |
Definition at line 627 of file THistManager.cxx.
Referenced by FindGroup().
|
private |
List of histograms.
Definition at line 556 of file THistManager.h.
Referenced by end(), FindGroup(), GetListOfHistograms(), rbegin(), SetObject(), THistManager(), and ~THistManager().
|
private |
Set the ownership.
Definition at line 557 of file THistManager.h.
Referenced by ReleaseOwner(), and ~THistManager().