The Gaudi Framework  master (37c0b60a)
HistoLabels.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIUTILS_HISTOLABELS_H
12 #define GAUDIUTILS_HISTOLABELS_H 1
13 
14 #include <string>
15 #include <utility>
16 #include <vector>
17 
18 #include <GaudiKernel/Kernel.h>
19 
20 namespace AIDA {
21  class IHistogram1D;
22  class IHistogram2D;
23  class IProfile1D;
24  class IProfile2D;
25 } // namespace AIDA
26 
27 namespace Gaudi {
28  namespace Utils {
29  namespace Histos {
30  // --------------------------------------------------------------------------
31 
38 
39  // --------------------------------------------------------------------------
40 
55  GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const Labels& labels );
56 
68  GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const BinLabels& labels );
69 
70  // --------------------------------------------------------------------------
71 
86  GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const Labels& labels );
87 
99  GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const BinLabels& labels );
100 
101  // --------------------------------------------------------------------------
102 
118  GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const Labels& xlabels, const Labels& ylabels );
119 
132  GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
133 
134  // --------------------------------------------------------------------------
135 
151  GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const Labels& xlabels, const Labels& ylabels );
152 
165  GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
166 
167  // --------------------------------------------------------------------------
168 
179  GAUDI_API bool setAxisLabels( AIDA::IHistogram1D* hist, const std::string& xAxis, const std::string& yAxis );
180 
191  GAUDI_API bool setAxisLabels( AIDA::IProfile1D* hist, const std::string& xAxis, const std::string& yAxis );
192 
193  // --------------------------------------------------------------------------
194 
205  GAUDI_API bool setAxisLabels( AIDA::IHistogram2D* hist, const std::string& xAxis, const std::string& yAxis );
206 
217  GAUDI_API bool setAxisLabels( AIDA::IProfile2D* hist, const std::string& xAxis, const std::string& yAxis );
218 
219  // --------------------------------------------------------------------------
220  } // namespace Histos
221  } // namespace Utils
222 } // namespace Gaudi
223 
224 #endif // GAUDIUTILS_HISTOLABELS_H
AIDA
GaudiKernel.
Definition: Annotation.h:22
std::string
STL class.
std::pair
std::vector< std::string >
Gaudi::Utils::Histos::Labels
std::vector< std::string > Labels
Typedef for a list of labels.
Definition: HistoLabels.h:33
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:97
Gaudi::Utils::Histos::BinLabels
std::vector< BinLabel > BinLabels
Typedef for a list of bin numbers and their associated label.
Definition: HistoLabels.h:37
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Gaudi::Utils::Histos::BinLabel
std::pair< unsigned, std::string > BinLabel
Typedef for a bin number and its associated label.
Definition: HistoLabels.h:35
Kernel.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
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:139