Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Fill.h
Go to the documentation of this file.
1 #ifndef GAUDIALG_FILL_H
2 #define GAUDIALG_FILL_H 1
3 // ============================================================================
4 // Include files
5 // ============================================================================
6 #include <string>
7 // ============================================================================
8 // forward declarations from AIDA
9 // ============================================================================
10 namespace AIDA {
11  class IBaseHistogram;
12  class IHistogram;
13  class IHistogram1D;
14  class IHistogram2D;
15  class IHistogram3D;
16  class IProfile;
17  class IProfile1D;
18  class IProfile2D;
19 } // namespace AIDA
20 #include "GaudiKernel/Kernel.h"
21 // ============================================================================
22 namespace Gaudi {
23  // ==========================================================================
24  namespace Utils {
25  // ========================================================================
26  namespace Histos {
27  // ======================================================================
36  GAUDI_API void fill( AIDA::IHistogram1D* histo, const double value, const double weight = 1.0 );
37  // ======================================================================
47  GAUDI_API void fill( AIDA::IHistogram2D* histo, const double valueX, const double valueY,
48  const double weight = 1.0 );
49  // ======================================================================
60  GAUDI_API void fill( AIDA::IHistogram3D* histo, const double valueX, const double valueY, const double valueZ,
61  const double weight = 1.0 );
62  // ======================================================================
72  GAUDI_API void fill( AIDA::IProfile1D* histo, const double valueX, const double valueY,
73  const double weight = 1.0 );
74  // ======================================================================
85  GAUDI_API void fill( AIDA::IProfile2D* histo, const double valueX, const double valueY, const double valueZ,
86  const double weight = 1.0 );
87  // ======================================================================
89  GAUDI_API std::string htitle( const AIDA::IBaseHistogram* histo, const std::string& title = "" );
90  // ======================================================================
92  GAUDI_API std::string htitle( const AIDA::IHistogram* histo, const std::string& title = "" );
93  // ======================================================================
95  GAUDI_API std::string htitle( const AIDA::IHistogram1D* histo, const std::string& title = "" );
96  // ======================================================================
98  GAUDI_API std::string htitle( const AIDA::IHistogram2D* histo, const std::string& title = "" );
99  // ======================================================================
101  GAUDI_API std::string htitle( const AIDA::IHistogram3D* histo, const std::string& title = "" );
102  // ======================================================================
104  GAUDI_API std::string htitle( const AIDA::IProfile* histo, const std::string& title = "" );
105  // ======================================================================
107  GAUDI_API std::string htitle( const AIDA::IProfile1D* histo, const std::string& title = "" );
108  // ======================================================================
110  GAUDI_API std::string htitle( const AIDA::IProfile2D* histo, const std::string& title = "" );
111  // ======================================================================
112  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram1D* histo );
113  // ======================================================================
114  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram2D* histo );
115  // ======================================================================
116  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram3D* histo );
117  // ======================================================================
118  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile1D* histo );
119  // ======================================================================
120  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile2D* histo );
121  // ======================================================================
122  } // namespace Histos
123  } // namespace Utils
124 } // end of namespace Gaudi
125 // ============================================================================
126 // The END
127 // ============================================================================
128 #endif // GAUDIALG_FILL_H
helper namespace to collect useful definitions, types, constants and functions, related to manipulati...
GaudiKernel.
Definition: Fill.h:10
STL class.
GAUDI_API void fill(AIDA::IProfile2D *histo, const double valueX, const double valueY, const double valueZ, const double weight=1.0)
simple function to fill AIDA::IProfile2D objects
Definition: Fill.cpp:96
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IProfile2D *histo)
Definition: Fill.cpp:163
#define GAUDI_API
Definition: Kernel.h:71
Helper functions to set/get the application return code.
Definition: __init__.py:1
GAUDI_API std::string htitle(const AIDA::IProfile2D *histo, const std::string &title="")
get the title
Definition: Fill.cpp:151