| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
12 class IHistogram1D;
13 class IHistogram2D;
14 class IProfile1D;
15 class IProfile2D;
16 }
17
18 namespace Gaudi
19 {
20 namespace Utils
21 {
22 namespace Histos
23 {
24 // --------------------------------------------------------------------------
25
27 typedef std::vector<std::string> Labels;
29 typedef std::pair<unsigned, std::string> BinLabel;
31 typedef std::vector<BinLabel> BinLabels;
32
33 // --------------------------------------------------------------------------
34
49 GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const Labels& labels );
50
62 GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const BinLabels& labels );
63
64 // --------------------------------------------------------------------------
65
80 GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const Labels& labels );
81
93 GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const BinLabels& labels );
94
95 // --------------------------------------------------------------------------
96
112 GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const Labels& xlabels, const Labels& ylabels );
113
126 GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
127
128 // --------------------------------------------------------------------------
129
145 GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const Labels& xlabels, const Labels& ylabels );
146
159 GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
160
161 // --------------------------------------------------------------------------
162
173 GAUDI_API bool setAxisLabels( AIDA::IHistogram1D* hist, const std::string& xAxis, const std::string& yAxis );
174
185 GAUDI_API bool setAxisLabels( AIDA::IProfile1D* hist, const std::string& xAxis, const std::string& yAxis );
186
187 // --------------------------------------------------------------------------
188
199 GAUDI_API bool setAxisLabels( AIDA::IHistogram2D* hist, const std::string& xAxis, const std::string& yAxis );
200
211 GAUDI_API bool setAxisLabels( AIDA::IProfile2D* hist, const std::string& xAxis, const std::string& yAxis );
212
213 // --------------------------------------------------------------------------
214 }
215 }
216 }
217
218 #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:31
Kernel.h
Gaudi::Utils::Histos::setAxisLabels
GAUDI_API bool setAxisLabels(AIDA::IProfile2D *hist, const std::string &xAxis, const std::string &yAxis)
Set the axis labels for the given 2D profile histogram.
Definition: HistoLabels.cpp:166
AIDA
GaudiKernel.
Definition: Fill.h:10
std::string
STL class.
Gaudi::Utils::Histos::setBinLabels
GAUDI_API bool setBinLabels(AIDA::IProfile2D *hist, const BinLabels &xlabels, const BinLabels &ylabels)
Set the Bin labels for a given 2D profile histogram.
Definition: HistoLabels.cpp:143
Gaudi::Utils::Histos::Labels
std::vector< std::string > Labels
Typedef for a list of labels.
Definition: HistoLabels.h:27
std::pair
Gaudi::Utils::Histos::BinLabel
std::pair< unsigned, std::string > BinLabel
Typedef for a bin number and its associated label.
Definition: HistoLabels.h:29
std::vector< std::string >
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1