Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (01b473db)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HistoLabels.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 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 #pragma once
12 
13 #include <string>
14 #include <utility>
15 #include <vector>
16 
17 #include <GaudiKernel/Kernel.h>
18 
19 namespace AIDA {
20  class IHistogram1D;
21  class IHistogram2D;
22  class IProfile1D;
23  class IProfile2D;
24 } // namespace AIDA
25 
26 namespace Gaudi {
27  namespace Utils {
28  namespace Histos {
29  // --------------------------------------------------------------------------
30 
32  typedef std::vector<std::string> Labels;
34  typedef std::pair<unsigned, std::string> BinLabel;
36  typedef std::vector<BinLabel> BinLabels;
37 
38  // --------------------------------------------------------------------------
39 
54  GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const Labels& labels );
55 
67  GAUDI_API bool setBinLabels( AIDA::IHistogram1D* hist, const BinLabels& labels );
68 
69  // --------------------------------------------------------------------------
70 
85  GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const Labels& labels );
86 
98  GAUDI_API bool setBinLabels( AIDA::IProfile1D* hist, const BinLabels& labels );
99 
100  // --------------------------------------------------------------------------
101 
117  GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const Labels& xlabels, const Labels& ylabels );
118 
131  GAUDI_API bool setBinLabels( AIDA::IHistogram2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
132 
133  // --------------------------------------------------------------------------
134 
150  GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const Labels& xlabels, const Labels& ylabels );
151 
164  GAUDI_API bool setBinLabels( AIDA::IProfile2D* hist, const BinLabels& xlabels, const BinLabels& ylabels );
165 
166  // --------------------------------------------------------------------------
167 
178  GAUDI_API bool setAxisLabels( AIDA::IHistogram1D* hist, const std::string& xAxis, const std::string& yAxis );
179 
190  GAUDI_API bool setAxisLabels( AIDA::IProfile1D* hist, const std::string& xAxis, const std::string& yAxis );
191 
192  // --------------------------------------------------------------------------
193 
204  GAUDI_API bool setAxisLabels( AIDA::IHistogram2D* hist, const std::string& xAxis, const std::string& yAxis );
205 
216  GAUDI_API bool setAxisLabels( AIDA::IProfile2D* hist, const std::string& xAxis, const std::string& yAxis );
217 
218  // --------------------------------------------------------------------------
219  } // namespace Histos
220  } // namespace Utils
221 } // namespace Gaudi
AIDA
Definition: Annotation.h:21
Gaudi::Utils::Histos::Labels
std::vector< std::string > Labels
Typedef for a list of labels.
Definition: HistoLabels.h:32
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:91
Gaudi::Utils::Histos::BinLabels
std::vector< BinLabel > BinLabels
Typedef for a list of bin numbers and their associated label.
Definition: HistoLabels.h:36
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:34
Kernel.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49
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:133