| The Gaudi Framework v28r2p1 (f1a77ff4)

- 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 <vector>
5 #include <string>
6 #include <utility>
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,
50 const Labels& labels ) ;
51
63 GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist,
64 const BinLabels& labels ) ;
65
66 // --------------------------------------------------------------------------
67
82 GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist,
83 const Labels& labels ) ;
84
96 GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist,
97 const BinLabels & labels ) ;
98
99 // --------------------------------------------------------------------------
100
116 GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist,
117 const Labels& xlabels,
118 const Labels& ylabels ) ;
119
132 GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist,
133 const BinLabels& xlabels,
134 const BinLabels& ylabels ) ;
135
136 // --------------------------------------------------------------------------
137
153 GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist,
154 const Labels& xlabels,
155 const Labels& ylabels ) ;
156
169 GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist,
170 const BinLabels& xlabels,
171 const BinLabels& ylabels ) ;
172
173 // --------------------------------------------------------------------------
174
185 GAUDI_API bool setAxisLabels( AIDA::IHistogram1D* hist,
186 const std::string & xAxis,
187 const std::string & yAxis ) ;
188
199 GAUDI_API bool setAxisLabels( AIDA::IProfile1D* hist,
200 const std::string & xAxis,
201 const std::string & yAxis ) ;
202
203 // --------------------------------------------------------------------------
204
215 GAUDI_API bool setAxisLabels( AIDA::IHistogram2D* hist,
216 const std::string & xAxis,
217 const std::string & yAxis ) ;
218
229 GAUDI_API bool setAxisLabels( AIDA::IProfile2D* hist,
230 const std::string & xAxis,
231 const std::string & yAxis ) ;
232
233 // --------------------------------------------------------------------------
234
235 }
236 }
237 }
238
239 #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:207
AIDA
GaudiKernel.
Definition: Fill.h:8
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:174
Gaudi::Utils::Histos::Labels
std::vector< std::string > Labels
Typedef for a list of labels.
Definition: HistoLabels.h:27
std::pair
std::vector< std::string >
Gaudi::Utils::Histos::BinLabel
std::pair< unsigned, std::string > BinLabel
Typedef for a bin number and its associated label.
Definition: HistoLabels.h:29
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1