![]() |
KaliVeda
Toolkit for HIC analysis
|
Methods to facilitate creation and use of histograms and TTrees in user analysis.
| AnalysisClass | the class which employs this class as one of its base classes (this is an example of the Curiously Recurring Template Pattern) |
Definition at line 19 of file KVDataAnalysisTreeHistoHandler.h.
#include <KVDataAnalysisTreeHistoHandler.h>
Public Member Functions | |
| template<typename HistoType , typename... Args> | |
| HistoType * | AddHisto (Args &&... args) |
| TTree * | AddTree (const TString &name, const TString &title="") |
| void | FillHisto (const Char_t *histo_name, const Char_t *label, Double_t weight=1) |
| Fill histogram with given name according to label bin and weight. More... | |
| void | FillHisto (const Char_t *histo_name, Double_t x, Double_t y=1, Double_t z=1, Double_t w=1) |
| Fill previously-declared histogram with given name and required arguments. More... | |
| void | FillTree (std::optional< TString > tree_name={}) |
| TH1 * | GetHisto (const Char_t *name) const |
| const KVHashList * | GetHistoList () const |
| TTree * | GetTree (const Char_t *name) const |
| const KVHashList * | GetTreeList () const |
| GetTreeList. More... | |
Static Public Member Functions | |
| static const Char_t * | Class_Name () |
|
inline |
Add a user histogram to the analysis. The name of the histogram can later be used in calls to FillHisto().
| HistoType | valid ROOT histogram class name |
| args | arguments required by constructor of HistoType class |
Definition at line 113 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
Create TTree and add to list of trees to be filled during analysis. name can be used to fill individual TTree with FillTree().
Definition at line 127 of file KVDataAnalysisTreeHistoHandler.h.
|
inlinestatic |
Definition at line 220 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
Fill histogram with given name according to label bin and weight.
| histo_name | name of histogram previously defined with AddHisto() |
| label | label of bin in histogram to fill |
| weight | weight for filling |
Definition at line 189 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
Fill previously-declared histogram with given name and required arguments.
| [in] | histo_name | name of histogram to fill |
| [in] | x | value for x axis |
| [in] | y | value for y axis (or weight if histogram is 1D) |
| [in] | z | value for z axis (or weight if histogram is 2D or TProfile) |
| [in] | w | weight for 3D histogram (TH3, TProfile2D) |
Definition at line 161 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
Call TTree::Fill() for TTree with given name, or for all trees associated with analysis if no name given.
| tree_name | [optional] name of individual TTree to fill |
Definition at line 205 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
| name | name of histogram |
Definition at line 137 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
Definition at line 84 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
| name | name of TTree |
Definition at line 146 of file KVDataAnalysisTreeHistoHandler.h.
|
inline |
GetTreeList.
Definition at line 92 of file KVDataAnalysisTreeHistoHandler.h.