| The Gaudi Framework v32r1 (f65d50dc)

HistoLabels.h
Go to the documentation of this file.
1 #ifndef GAUDIUTILS_HISTOLABELS_H
2 #define GAUDIUTILS_HISTOLABELS_H 1
3
4 #include <string>
5 #include <utility>
6 #include <vector>
7
8 #include "GaudiKernel/Kernel.h"
9
10 namespace AIDA {
11 class IHistogram1D;
12 class IHistogram2D;
13 class IProfile1D;
14 class IProfile2D;
15 } // namespace AIDA
16
17 namespace Gaudi {
18 namespace Utils {
19 namespace Histos {
20 // --------------------------------------------------------------------------
21
23 typedef std::vector<std::string> Labels;
25 typedef std::pair<unsigned, std::string> BinLabel;
27 typedef std::vector<BinLabel> BinLabels;
28
29 // --------------------------------------------------------------------------
30
45 GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const Labels& labels );
46
58 GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const BinLabels& labels );
59
60 // --------------------------------------------------------------------------
61
76 GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const Labels& labels );
77
89 GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const BinLabels& labels );
90
91 // --------------------------------------------------------------------------
92
108 GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const Labels& xlabels, const Labels& ylabels );
109
122 GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
123
124 // --------------------------------------------------------------------------
125
141 GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const Labels& xlabels, const Labels& ylabels );
142
155 GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
156
157 // --------------------------------------------------------------------------
158
169 GAUDI_API bool setAxisLabels( AIDA::IHistogram1D* hist, const std::string& xAxis, const std::string& yAxis );
170
181 GAUDI_API bool setAxisLabels( AIDA::IProfile1D* hist, const std::string& xAxis, const std::string& yAxis );
182
183 // --------------------------------------------------------------------------
184
195 GAUDI_API bool setAxisLabels( AIDA::IHistogram2D* hist, const std::string& xAxis, const std::string& yAxis );
196
207 GAUDI_API bool setAxisLabels( AIDA::IProfile2D* hist, const std::string& xAxis, const std::string& yAxis );
208
209 // --------------------------------------------------------------------------
210 } // namespace Histos
211 } // namespace Utils
212 } // namespace Gaudi
213
214 #endif // GAUDIUTILS_HISTOLABELS_H
Histos
helper namespace to collect useful definitions, types, constants and functions, related to manipulati...
Gaudi::Utils::Histos::BinLabels
std::vector< BinLabel > BinLabels
Typedef for a list of bin numbers and their associated label.
Definition: HistoLabels.h:27
Kernel.h
Gaudi::Utils::Histos::setAxisLabels
GAUDI_API bool setAxisLabels(AIDA::IHistogram1D *hist, const std::string &xAxis, const std::string &yAxis)
Set the axis labels for the given 1D histogram.
Definition: HistoLabels.cpp:129
AIDA
GaudiKernel.
Definition: Fill.h:10
std::string
STL class.
Gaudi::Utils::Histos::Labels
std::vector< std::string > Labels
Typedef for a list of labels.
Definition: HistoLabels.h:23
std::pair
Gaudi::Utils::Histos::BinLabel
std::pair< unsigned, std::string > BinLabel
Typedef for a bin number and its associated label.
Definition: HistoLabels.h:25
std::vector< std::string >
Gaudi::Utils::Histos::setBinLabels
GAUDI_API bool setBinLabels(AIDA::IHistogram1D *hist, const Labels &labels)
Set the Bin labels for a given 1D histogram.
Definition: HistoLabels.cpp:87
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1