Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v36r16 (ea80daf8)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Fill.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 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 GAUDIALG_FILL_H
12 #define GAUDIALG_FILL_H 1
13 // ============================================================================
14 // Include files
15 // ============================================================================
16 #include <string>
17 // ============================================================================
18 // forward declarations from AIDA
19 // ============================================================================
20 namespace AIDA {
21  class IBaseHistogram;
22  class IHistogram;
23  class IHistogram1D;
24  class IHistogram2D;
25  class IHistogram3D;
26  class IProfile;
27  class IProfile1D;
28  class IProfile2D;
29 } // namespace AIDA
30 #include "GaudiKernel/Kernel.h"
31 // ============================================================================
32 namespace Gaudi {
33  // ==========================================================================
34  namespace Utils {
35  // ========================================================================
36  namespace Histos {
37  // ======================================================================
46  GAUDI_API void fill( AIDA::IHistogram1D* histo, const double value, const double weight = 1.0 );
47  // ======================================================================
57  GAUDI_API void fill( AIDA::IHistogram2D* histo, const double valueX, const double valueY,
58  const double weight = 1.0 );
59  // ======================================================================
70  GAUDI_API void fill( AIDA::IHistogram3D* histo, const double valueX, const double valueY, const double valueZ,
71  const double weight = 1.0 );
72  // ======================================================================
82  GAUDI_API void fill( AIDA::IProfile1D* histo, const double valueX, const double valueY,
83  const double weight = 1.0 );
84  // ======================================================================
95  GAUDI_API void fill( AIDA::IProfile2D* histo, const double valueX, const double valueY, const double valueZ,
96  const double weight = 1.0 );
97  // ======================================================================
99  GAUDI_API std::string htitle( const AIDA::IBaseHistogram* histo, const std::string& title = "" );
100  // ======================================================================
102  GAUDI_API std::string htitle( const AIDA::IHistogram* histo, const std::string& title = "" );
103  // ======================================================================
105  GAUDI_API std::string htitle( const AIDA::IHistogram1D* histo, const std::string& title = "" );
106  // ======================================================================
108  GAUDI_API std::string htitle( const AIDA::IHistogram2D* histo, const std::string& title = "" );
109  // ======================================================================
111  GAUDI_API std::string htitle( const AIDA::IHistogram3D* histo, const std::string& title = "" );
112  // ======================================================================
114  GAUDI_API std::string htitle( const AIDA::IProfile* histo, const std::string& title = "" );
115  // ======================================================================
117  GAUDI_API std::string htitle( const AIDA::IProfile1D* histo, const std::string& title = "" );
118  // ======================================================================
120  GAUDI_API std::string htitle( const AIDA::IProfile2D* histo, const std::string& title = "" );
121  // ======================================================================
122  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram1D* histo );
123  // ======================================================================
124  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram2D* histo );
125  // ======================================================================
126  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram3D* histo );
127  // ======================================================================
128  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile1D* histo );
129  // ======================================================================
130  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile2D* histo );
131  // ======================================================================
132  } // namespace Histos
133  } // namespace Utils
134 } // end of namespace Gaudi
135 // ============================================================================
136 // The END
137 // ============================================================================
138 #endif // GAUDIALG_FILL_H
AIDA
GaudiKernel.
Definition: Fill.h:20
std::string
STL class.
HistoEx.histo
histo
Definition: HistoEx.py:103
Gaudi::Utils::Histos::toBase
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
Definition: Fill.cpp:165
Gaudi::Utils::Histos::htitle
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
Definition: Fill.cpp:119
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
Kernel.h
Gaudi::Utils::Histos::fill
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
Definition: Fill.cpp:45
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
Histos