ATLAS Offline Software
SingleHistogramDefinition.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //
6 // SingleHistogramDefinition.h
7 // HDef
8 //
9 // Created by sroe on 07/07/2015.
10 //
11 
12 #ifndef HDef_SingleHistogramDefinition_h
13 #define HDef_SingleHistogramDefinition_h
15 #include <string>
18 public:
19  typedef const std::string & Titles_t;
20  typedef const unsigned int NBins_t;
21  typedef const float Var_t;
23 
26  NBins_t nbinsX, Var_t xLo, Var_t xHi,
27  Titles_t xName,Titles_t yName,Titles_t theFolder="");
28 
31  NBins_t nbinsX, NBins_t nbinsY,
32  Var_t xLo, Var_t xHi,
33  Var_t yLo, Var_t yHi,
34  Titles_t xName, Titles_t yName, Titles_t theFolder="");
35 
38  NBins_t nbinsX, NBins_t nbinsY, NBins_t nbinsZ,
39  Var_t xLo, Var_t xHi,
40  Var_t yLo, Var_t yHi,
41  Var_t zLo, Var_t zHi,
42  Titles_t xName, Titles_t yName, Titles_t zName, Titles_t theFolder="");
43 
44  std::string name;
45  std::string histoType;
46  std::string title;
47  unsigned int nBinsX;
48  unsigned int nBinsY;
49  unsigned int nBinsZ;
53  std::string xTitle;
54  std::string yTitle;
55  std::string zTitle;
56  std::string allTitles;
57  std::string folder;
59  bool empty() const;
61  std::string str() const;
63  bool validType() const;
65  bool isValid() const;
67  std::string stringIndex() const;
69  static std::string stringIndex(const std::string & thisname, const std::string & thisfolder);
71  std::string titleDigest() const;
72 
73  bool m_empty;
74 };
75 
76 
77 #endif
SingleHistogramDefinition::stringIndex
std::string stringIndex() const
add the folder path to produce the full histogram name e.g. myFolder/myHisto
Definition: SingleHistogramDefinition.cxx:126
SingleHistogramDefinition::nBinsX
unsigned int nBinsX
Definition: SingleHistogramDefinition.h:47
IHistogramDefinitionSvc::axesLimits_t
std::pair< float, float > axesLimits_t
typedef for axes limits, (lower bound, upper bound)
Definition: IHistogramDefinitionSvc.h:29
SingleHistogramDefinition::str
std::string str() const
String representation of the histogram definition.
Definition: SingleHistogramDefinition.cxx:86
makeDTCalibBlob_pickPhase.theFolder
theFolder
Definition: makeDTCalibBlob_pickPhase.py:383
SingleHistogramDefinition::nBinsZ
unsigned int nBinsZ
Definition: SingleHistogramDefinition.h:49
SingleHistogramDefinition::yTitle
std::string yTitle
Definition: SingleHistogramDefinition.h:54
SingleHistogramDefinition::NBins_t
const unsigned int NBins_t
Definition: SingleHistogramDefinition.h:20
SingleHistogramDefinition::histoType
std::string histoType
Definition: SingleHistogramDefinition.h:45
SingleHistogramDefinition::folder
std::string folder
Definition: SingleHistogramDefinition.h:57
SingleHistogramDefinition::xAxis
IHistogramDefinitionSvc::axesLimits_t xAxis
Definition: SingleHistogramDefinition.h:50
SingleHistogramDefinition::validType
bool validType() const
Does the histogram definition have a valid type (TH1, TH2 etc)?
Definition: SingleHistogramDefinition.cxx:97
SingleHistogramDefinition::SingleHistogramDefinition
SingleHistogramDefinition()
Definition: SingleHistogramDefinition.cxx:14
SingleHistogramDefinition::title
std::string title
Definition: SingleHistogramDefinition.h:46
SingleHistogramDefinition::xTitle
std::string xTitle
Definition: SingleHistogramDefinition.h:53
SingleHistogramDefinition::Var_t
const float Var_t
Definition: SingleHistogramDefinition.h:21
SingleHistogramDefinition
Almost-a-struct for holding the single histogram definition.
Definition: SingleHistogramDefinition.h:17
rootconvert.yLo
yLo
Definition: rootconvert.py:33
rootconvert.xLo
xLo
Definition: rootconvert.py:32
SingleHistogramDefinition::m_empty
bool m_empty
Definition: SingleHistogramDefinition.h:73
SingleHistogramDefinition::titleDigest
std::string titleDigest() const
produce single-line representation of the titles (titles separated by the ';' delimiter)
Definition: SingleHistogramDefinition.cxx:131
IHistogramDefinitionSvc.h
rootconvert.yHi
yHi
Definition: rootconvert.py:33
SingleHistogramDefinition::zTitle
std::string zTitle
Definition: SingleHistogramDefinition.h:55
SingleHistogramDefinition::Titles_t
const std::string & Titles_t
Definition: SingleHistogramDefinition.h:19
rootconvert.xHi
xHi
Definition: rootconvert.py:32
SingleHistogramDefinition::name
std::string name
Definition: SingleHistogramDefinition.h:44
SingleHistogramDefinition::yAxis
IHistogramDefinitionSvc::axesLimits_t yAxis
Definition: SingleHistogramDefinition.h:51
SingleHistogramDefinition::isValid
bool isValid() const
Is the histogram definition valid.
Definition: SingleHistogramDefinition.cxx:104
SingleHistogramDefinition::allTitles
std::string allTitles
Definition: SingleHistogramDefinition.h:56
SingleHistogramDefinition::zAxis
IHistogramDefinitionSvc::axesLimits_t zAxis
Definition: SingleHistogramDefinition.h:52
SingleHistogramDefinition::empty
bool empty() const
Is the histogram definition empty?
Definition: SingleHistogramDefinition.cxx:81
SingleHistogramDefinition::nBinsY
unsigned int nBinsY
Definition: SingleHistogramDefinition.h:48