|
ant
A2 ant: class-based analysis framework
|
#include <HistogramFactory.h>
Classes | |
| struct | DirStackPush |
| struct | Exception |
Public Member Functions | |
| HistogramFactory (const std::string &directory_name, TDirectory *root=nullptr, const std::string &title_prefix_="") | |
| HistogramFactory (const std::string &directory_name, const HistogramFactory &parent, const std::string &title_prefix_="") | |
| void | SetRootDir (TDirectory *root_dir=nullptr) |
| void | SetTitlePrefix (const std::string &title_prefix_) |
| void | SetDirDescription (const std::string &desc) |
| std::string | MakeTitle (const std::string &title) const |
| TH1D * | makeTH1D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const BinSettings &xbins, const std::string &name="", bool sumw2=false) const |
| TH1D * | makeTH1D (const std::string &title, const AxisSettings &x_axis_settings, const std::string &name="", bool sumw2=false) const |
| TH1D * | makeTH1D (const std::string &title, const AxisSettings &x_axis_settings, const std::string &ylabel, const std::string &name, bool sumw2=false) const |
| TH1D * | makeTH1D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const VarBinSettings &xbins, const std::string &name="", bool sumw2=false) const |
| create TH1D with variable bin width More... | |
| TH1D * | makeTH1D (const std::string &title, const VarAxisSettings &x_axis_settings, const std::string &name="", bool sumw2=false) const |
| create TH1D with variable bin width More... | |
| TH1D * | makeTH1D (const std::string &title, const VarAxisSettings &x_axis_settings, const std::string &ylabel, const std::string &name="", bool sumw2=false) const |
| create TH1D with variable bin width More... | |
| TH1D * | makeTH1D (const std::string &title, const std::vector< double > &edges, const std::string &xlabel, const std::string &ylabel, const std::string &name="", bool sumw2=false) const |
| create TH1D with variable bin width based on a given vector with the bin edges More... | |
| TH2D * | makeTH2D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const BinSettings &xbins, const BinSettings &ybins, const std::string &name="", bool sumw2=false) const |
| TH2D * | makeTH2D (const std::string &title, const AxisSettings &x_axis_settings, const AxisSettings &y_axis_settings, const std::string &name="", bool sumw2=false) const |
| TH2D * | makeTH2D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const VarBinSettings &xbins, const VarBinSettings &ybins, const std::string &name="", bool sumw2=false) const |
| create TH2D with variable bin width More... | |
| TH2D * | makeTH2D (const std::string &title, const VarAxisSettings &x_axis_settings, const VarAxisSettings &y_axis_settings, const std::string &name="", bool sumw2=false) const |
| create TH2D with variable bin width More... | |
| TH2D * | makeTH2D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const VarBinSettings &xbins, const BinSettings &ybins, const std::string &name="", bool sumw2=false) const |
| create TH2D with variable bin width for x axis only More... | |
| TH2D * | makeTH2D (const std::string &title, const VarAxisSettings &x_axis_settings, const AxisSettings &y_axis_settings, const std::string &name="", bool sumw2=false) const |
| create TH2D with variable bin width for x axis only More... | |
| TH2D * | makeTH2D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const BinSettings &xbins, const VarBinSettings &ybins, const std::string &name="", bool sumw2=false) const |
| create TH2D with variable bin width for y axis only More... | |
| TH2D * | makeTH2D (const std::string &title, const AxisSettings &x_axis_settings, const VarAxisSettings &y_axis_settings, const std::string &name="", bool sumw2=false) const |
| create TH2D with variable bin width for y axis only More... | |
| TH3D * | makeTH3D (const std::string &title, const std::string &xlabel, const std::string &ylabel, const std::string &zlabel, const BinSettings &xbins, const BinSettings &ybins, const BinSettings &zbins, const std::string &name="", bool sumw2=false) const |
| TH3D * | makeTH3D (const std::string &title, const AxisSettings &x_axis_settings, const AxisSettings &y_axis_settings, const AxisSettings &z_axis_settings, const std::string &name="", bool sumw2=false) const |
| TGraph * | makeGraph (const std::string &title, const std::string &name="") const |
| TGraphErrors * | makeGraphErrors (const std::string &title, const std::string &name="") const |
| TTree * | makeTTree (const std::string &name) const |
| void | addHistogram (TH1 *h) const |
| Add a manually created histogram to the current HistogramFactory. More... | |
| template<class T , typename... Args> | |
| T * | make (Args &&... args) const |
| template<typename T > | |
| T * | clone (const T *obj, const std::string &newName) const |
| HistogramFactory::HistogramFactory | ( | const std::string & | directory_name, |
| TDirectory * | root = nullptr, |
||
| const std::string & | title_prefix_ = "" |
||
| ) |
| HistogramFactory::HistogramFactory | ( | const std::string & | directory_name, |
| const HistogramFactory & | parent, | ||
| const std::string & | title_prefix_ = "" |
||
| ) |
| void HistogramFactory::addHistogram | ( | TH1 * | h | ) | const |
Add a manually created histogram to the current HistogramFactory.
| h | pointer to the histogram which should be added |
|
inline |
|
inline |
| TGraph * HistogramFactory::makeGraph | ( | const std::string & | title, |
| const std::string & | name = "" |
||
| ) | const |
| TGraphErrors * HistogramFactory::makeGraphErrors | ( | const std::string & | title, |
| const std::string & | name = "" |
||
| ) | const |
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const BinSettings & | xbins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const AxisSettings & | x_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const AxisSettings & | x_axis_settings, | ||
| const std::string & | ylabel, | ||
| const std::string & | name, | ||
| bool | sumw2 = false |
||
| ) | const |
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const VarBinSettings & | xbins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH1D with variable bin width
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const VarAxisSettings & | x_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH1D with variable bin width
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const VarAxisSettings & | x_axis_settings, | ||
| const std::string & | ylabel, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH1D with variable bin width
| TH1D * HistogramFactory::makeTH1D | ( | const std::string & | title, |
| const std::vector< double > & | edges, | ||
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH1D with variable bin width based on a given vector with the bin edges
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const BinSettings & | xbins, | ||
| const BinSettings & | ybins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const AxisSettings & | x_axis_settings, | ||
| const AxisSettings & | y_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const VarBinSettings & | xbins, | ||
| const VarBinSettings & | ybins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH2D with variable bin width
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const VarAxisSettings & | x_axis_settings, | ||
| const VarAxisSettings & | y_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH2D with variable bin width
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const VarBinSettings & | xbins, | ||
| const BinSettings & | ybins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH2D with variable bin width for x axis only
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const VarAxisSettings & | x_axis_settings, | ||
| const AxisSettings & | y_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH2D with variable bin width for x axis only
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const BinSettings & | xbins, | ||
| const VarBinSettings & | ybins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH2D with variable bin width for y axis only
| TH2D * HistogramFactory::makeTH2D | ( | const std::string & | title, |
| const AxisSettings & | x_axis_settings, | ||
| const VarAxisSettings & | y_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
create TH2D with variable bin width for y axis only
| TH3D * HistogramFactory::makeTH3D | ( | const std::string & | title, |
| const std::string & | xlabel, | ||
| const std::string & | ylabel, | ||
| const std::string & | zlabel, | ||
| const BinSettings & | xbins, | ||
| const BinSettings & | ybins, | ||
| const BinSettings & | zbins, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
| TH3D * HistogramFactory::makeTH3D | ( | const std::string & | title, |
| const AxisSettings & | x_axis_settings, | ||
| const AxisSettings & | y_axis_settings, | ||
| const AxisSettings & | z_axis_settings, | ||
| const std::string & | name = "", |
||
| bool | sumw2 = false |
||
| ) | const |
| string HistogramFactory::MakeTitle | ( | const std::string & | title | ) | const |
| TTree * HistogramFactory::makeTTree | ( | const std::string & | name | ) | const |
| void HistogramFactory::SetDirDescription | ( | const std::string & | desc | ) |
| void ant::analysis::HistogramFactory::SetRootDir | ( | TDirectory * | root_dir = nullptr | ) |
| void HistogramFactory::SetTitlePrefix | ( | const std::string & | title_prefix_ | ) |