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>
16#include <string_view>
19public:
20 typedef const std::string_view & Titles_t;
21 typedef const unsigned int NBins_t;
22 typedef const float Var_t;
24
27 NBins_t nbinsX, Var_t xLo, Var_t xHi,
28 Titles_t xName,Titles_t yName,Titles_t theFolder="");
29
32 NBins_t nbinsX, NBins_t nbinsY,
33 Var_t xLo, Var_t xHi,
34 Var_t yLo, Var_t yHi,
35 Titles_t xName, Titles_t yName, Titles_t theFolder="");
36
39 NBins_t nbinsX, NBins_t nbinsY, NBins_t nbinsZ,
40 Var_t xLo, Var_t xHi,
41 Var_t yLo, Var_t yHi,
42 Var_t zLo, Var_t zHi,
43 Titles_t xName, Titles_t yName, Titles_t zName, Titles_t theFolder="");
44
45 std::string name;
46 std::string histoType;
47 std::string title;
48 unsigned int nBinsX;
49 unsigned int nBinsY;
50 unsigned int nBinsZ;
54 std::string xTitle;
55 std::string yTitle;
56 std::string zTitle;
57 std::string allTitles;
58 std::string folder;
60 bool empty() const;
62 std::string str() const;
64 bool validType() const;
66 bool isValid() const;
68 std::string stringIndex() const;
70 static std::string stringIndex(std::string_view thisname, std::string_view thisfolder);
72 std::string titleDigest() const;
73
74 bool m_empty;
75};
76
77
78#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)
const std::string_view & Titles_t
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)?