All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HistoLabels.h
Go to the documentation of this file.
1 // $Id: $
2 #ifndef GAUDIUTILS_HISTOLABELS_H
3 #define GAUDIUTILS_HISTOLABELS_H 1
4 
5 #include <vector>
6 #include <string>
7 #include <utility>
8 
9 #include "GaudiKernel/Kernel.h"
10 
11 namespace AIDA
12 {
13  class IHistogram1D;
14  class IHistogram2D;
15  class IProfile1D;
16  class IProfile2D;
17 }
18 
19 namespace Gaudi
20 {
21  namespace Utils
22  {
23  namespace Histos
24  {
25  // --------------------------------------------------------------------------
26 
28  typedef std::vector<std::string> Labels;
30  typedef std::pair<unsigned,std::string> BinLabel;
32  typedef std::vector<BinLabel> BinLabels;
33 
34  // --------------------------------------------------------------------------
35 
50  GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist,
51  const Labels& labels ) ;
52 
64  GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist,
65  const BinLabels& labels ) ;
66 
67  // --------------------------------------------------------------------------
68 
83  GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist,
84  const Labels& labels ) ;
85 
97  GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist,
98  const BinLabels & labels ) ;
99 
100  // --------------------------------------------------------------------------
101 
117  GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist,
118  const Labels& xlabels,
119  const Labels& ylabels ) ;
120 
133  GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist,
134  const BinLabels& xlabels,
135  const BinLabels& ylabels ) ;
136 
137  // --------------------------------------------------------------------------
138 
154  GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist,
155  const Labels& xlabels,
156  const Labels& ylabels ) ;
157 
170  GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist,
171  const BinLabels& xlabels,
172  const BinLabels& ylabels ) ;
173 
174  // --------------------------------------------------------------------------
175 
186  GAUDI_API bool setAxisLabels( AIDA::IHistogram1D* hist,
187  const std::string & xAxis,
188  const std::string & yAxis ) ;
189 
200  GAUDI_API bool setAxisLabels( AIDA::IProfile1D* hist,
201  const std::string & xAxis,
202  const std::string & yAxis ) ;
203 
204  // --------------------------------------------------------------------------
205 
216  GAUDI_API bool setAxisLabels( AIDA::IHistogram2D* hist,
217  const std::string & xAxis,
218  const std::string & yAxis ) ;
219 
230  GAUDI_API bool setAxisLabels( AIDA::IProfile2D* hist,
231  const std::string & xAxis,
232  const std::string & yAxis ) ;
233 
234  // --------------------------------------------------------------------------
235 
236  }
237  }
238 }
239 
240 #endif // GAUDIUTILS_HISTOLABELS_H
std::vector< BinLabel > BinLabels
Typedef for a list of bin numbers and their associated label.
Definition: HistoLabels.h:32
GAUDI_API bool setAxisLabels(AIDA::IHistogram1D *hist, const std::string &xAxis, const std::string &yAxis)
Set the axis labels for the given 1D histogram.
std::vector< std::string > Labels
Typedef for a list of labels.
Definition: HistoLabels.h:28
GAUDI_API bool setBinLabels(AIDA::IHistogram1D *hist, const Labels &labels)
Set the Bin labels for a given 1D histogram.
std::pair< unsigned, std::string > BinLabel
Typedef for a bin number and its associated label.
Definition: HistoLabels.h:30
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:15
#define GAUDI_API
Definition: Kernel.h:108