ATLAS Offline Software
Loading...
Searching...
No Matches
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>
18public:
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
std::pair< float, float > axesLimits_t
typedef for axes limits, (lower bound, upper bound)
std::string titleDigest() const
produce single-line representation of the titles (titles separated by the ';' delimiter)
std::string str() const
String representation of the histogram definition.
bool isValid() const
Is the histogram definition valid.
IHistogramDefinitionSvc::axesLimits_t zAxis
bool empty() const
Is the histogram definition empty?
IHistogramDefinitionSvc::axesLimits_t xAxis
std::string stringIndex() const
add the folder path to produce the full histogram name e.g. myFolder/myHisto
IHistogramDefinitionSvc::axesLimits_t yAxis
bool validType() const
Does the histogram definition have a valid type (TH1, TH2 etc)?