ATLAS Offline Software
|
Almost-a-struct for holding the single histogram definition. More...
#include <SingleHistogramDefinition.h>
Public Types | |
typedef const std::string & | Titles_t |
typedef const unsigned int | NBins_t |
typedef const float | Var_t |
Public Member Functions | |
SingleHistogramDefinition () | |
SingleHistogramDefinition (Titles_t name, Titles_t histoType, Titles_t title, NBins_t nbinsX, Var_t xLo, Var_t xHi, Titles_t xName, Titles_t yName, Titles_t theFolder="") | |
C'tor for 1D histograms (no Y bins or limits) More... | |
SingleHistogramDefinition (Titles_t name, Titles_t histoType, Titles_t title, NBins_t nbinsX, NBins_t nbinsY, Var_t xLo, Var_t xHi, Var_t yLo, Var_t yHi, Titles_t xName, Titles_t yName, Titles_t theFolder="") | |
C'tor for 2D histograms (Y bins and limits) More... | |
SingleHistogramDefinition (Titles_t name, Titles_t histoType, Titles_t title, NBins_t nbinsX, NBins_t nbinsY, NBins_t nbinsZ, Var_t xLo, Var_t xHi, Var_t yLo, Var_t yHi, Var_t zLo, Var_t zHi, Titles_t xName, Titles_t yName, Titles_t zName, Titles_t theFolder="") | |
C'tor for 3D histograms (Y,Z bins and limits) More... | |
bool | empty () const |
Is the histogram definition empty? More... | |
std::string | str () const |
String representation of the histogram definition. More... | |
bool | validType () const |
Does the histogram definition have a valid type (TH1, TH2 etc)? More... | |
bool | isValid () const |
Is the histogram definition valid. More... | |
std::string | stringIndex () const |
add the folder path to produce the full histogram name e.g. myFolder/myHisto More... | |
std::string | titleDigest () const |
produce single-line representation of the titles (titles separated by the ';' delimiter) More... | |
Static Public Member Functions | |
static std::string | stringIndex (const std::string &thisname, const std::string &thisfolder) |
concatenate a sanitised folderName with the histogram name More... | |
Public Attributes | |
std::string | name |
std::string | histoType |
std::string | title |
unsigned int | nBinsX |
unsigned int | nBinsY |
unsigned int | nBinsZ |
IHistogramDefinitionSvc::axesLimits_t | xAxis |
IHistogramDefinitionSvc::axesLimits_t | yAxis |
IHistogramDefinitionSvc::axesLimits_t | zAxis |
std::string | xTitle |
std::string | yTitle |
std::string | zTitle |
std::string | allTitles |
std::string | folder |
bool | m_empty |
Almost-a-struct for holding the single histogram definition.
Definition at line 17 of file SingleHistogramDefinition.h.
typedef const unsigned int SingleHistogramDefinition::NBins_t |
Definition at line 20 of file SingleHistogramDefinition.h.
typedef const std::string& SingleHistogramDefinition::Titles_t |
Definition at line 19 of file SingleHistogramDefinition.h.
typedef const float SingleHistogramDefinition::Var_t |
Definition at line 21 of file SingleHistogramDefinition.h.
SingleHistogramDefinition::SingleHistogramDefinition | ( | ) |
Definition at line 14 of file SingleHistogramDefinition.cxx.
SingleHistogramDefinition::SingleHistogramDefinition | ( | Titles_t | name, |
Titles_t | histoType, | ||
Titles_t | title, | ||
NBins_t | nbinsX, | ||
Var_t | xLo, | ||
Var_t | xHi, | ||
Titles_t | xName, | ||
Titles_t | yName, | ||
Titles_t | theFolder = "" |
||
) |
C'tor for 1D histograms (no Y bins or limits)
Definition at line 32 of file SingleHistogramDefinition.cxx.
SingleHistogramDefinition::SingleHistogramDefinition | ( | Titles_t | name, |
Titles_t | histoType, | ||
Titles_t | title, | ||
NBins_t | nbinsX, | ||
NBins_t | nbinsY, | ||
Var_t | xLo, | ||
Var_t | xHi, | ||
Var_t | yLo, | ||
Var_t | yHi, | ||
Titles_t | xName, | ||
Titles_t | yName, | ||
Titles_t | theFolder = "" |
||
) |
C'tor for 2D histograms (Y bins and limits)
Definition at line 48 of file SingleHistogramDefinition.cxx.
SingleHistogramDefinition::SingleHistogramDefinition | ( | Titles_t | name, |
Titles_t | histoType, | ||
Titles_t | title, | ||
NBins_t | nbinsX, | ||
NBins_t | nbinsY, | ||
NBins_t | nbinsZ, | ||
Var_t | xLo, | ||
Var_t | xHi, | ||
Var_t | yLo, | ||
Var_t | yHi, | ||
Var_t | zLo, | ||
Var_t | zHi, | ||
Titles_t | xName, | ||
Titles_t | yName, | ||
Titles_t | zName, | ||
Titles_t | theFolder = "" |
||
) |
C'tor for 3D histograms (Y,Z bins and limits)
Definition at line 64 of file SingleHistogramDefinition.cxx.
bool SingleHistogramDefinition::empty | ( | ) | const |
Is the histogram definition empty?
Definition at line 81 of file SingleHistogramDefinition.cxx.
bool SingleHistogramDefinition::isValid | ( | ) | const |
std::string SingleHistogramDefinition::str | ( | ) | const |
String representation of the histogram definition.
Definition at line 86 of file SingleHistogramDefinition.cxx.
std::string SingleHistogramDefinition::stringIndex | ( | ) | const |
add the folder path to produce the full histogram name e.g. myFolder/myHisto
Definition at line 126 of file SingleHistogramDefinition.cxx.
|
static |
concatenate a sanitised folderName with the histogram name
Definition at line 138 of file SingleHistogramDefinition.cxx.
std::string SingleHistogramDefinition::titleDigest | ( | ) | const |
bool SingleHistogramDefinition::validType | ( | ) | const |
Does the histogram definition have a valid type (TH1, TH2 etc)?
Definition at line 97 of file SingleHistogramDefinition.cxx.
std::string SingleHistogramDefinition::allTitles |
Definition at line 56 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::folder |
Definition at line 57 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::histoType |
Definition at line 45 of file SingleHistogramDefinition.h.
bool SingleHistogramDefinition::m_empty |
Definition at line 73 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::name |
Definition at line 44 of file SingleHistogramDefinition.h.
unsigned int SingleHistogramDefinition::nBinsX |
Definition at line 47 of file SingleHistogramDefinition.h.
unsigned int SingleHistogramDefinition::nBinsY |
Definition at line 48 of file SingleHistogramDefinition.h.
unsigned int SingleHistogramDefinition::nBinsZ |
Definition at line 49 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::title |
Definition at line 46 of file SingleHistogramDefinition.h.
IHistogramDefinitionSvc::axesLimits_t SingleHistogramDefinition::xAxis |
Definition at line 50 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::xTitle |
Definition at line 53 of file SingleHistogramDefinition.h.
IHistogramDefinitionSvc::axesLimits_t SingleHistogramDefinition::yAxis |
Definition at line 51 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::yTitle |
Definition at line 54 of file SingleHistogramDefinition.h.
IHistogramDefinitionSvc::axesLimits_t SingleHistogramDefinition::zAxis |
Definition at line 52 of file SingleHistogramDefinition.h.
std::string SingleHistogramDefinition::zTitle |
Definition at line 55 of file SingleHistogramDefinition.h.