The Gaudi Framework  v29r0 (ff2e7097)
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 {
12  class IBaseHistogram;
13  class IHistogram;
14  class IHistogram1D;
15  class IHistogram2D;
16  class IHistogram3D;
17  class IProfile;
18  class IProfile1D;
19  class IProfile2D;
20 }
21 #include "GaudiKernel/Kernel.h"
22 // ============================================================================
23 namespace Gaudi
24 {
25  // ==========================================================================
26  namespace Utils
27  {
28  // ========================================================================
29  namespace Histos
30  {
31  // ======================================================================
40  GAUDI_API void fill( AIDA::IHistogram1D* histo, const double value, const double weight = 1.0 );
41  // ======================================================================
51  GAUDI_API void fill( AIDA::IHistogram2D* histo, const double valueX, const double valueY,
52  const double weight = 1.0 );
53  // ======================================================================
64  GAUDI_API void fill( AIDA::IHistogram3D* histo, const double valueX, const double valueY, const double valueZ,
65  const double weight = 1.0 );
66  // ======================================================================
76  GAUDI_API void fill( AIDA::IProfile1D* histo, const double valueX, const double valueY,
77  const double weight = 1.0 );
78  // ======================================================================
89  GAUDI_API void fill( AIDA::IProfile2D* histo, const double valueX, const double valueY, const double valueZ,
90  const double weight = 1.0 );
91  // ======================================================================
93  GAUDI_API std::string htitle( const AIDA::IBaseHistogram* histo, const std::string& title = "" );
94  // ======================================================================
96  GAUDI_API std::string htitle( const AIDA::IHistogram* histo, const std::string& title = "" );
97  // ======================================================================
99  GAUDI_API std::string htitle( const AIDA::IHistogram1D* histo, const std::string& title = "" );
100  // ======================================================================
102  GAUDI_API std::string htitle( const AIDA::IHistogram2D* histo, const std::string& title = "" );
103  // ======================================================================
105  GAUDI_API std::string htitle( const AIDA::IHistogram3D* histo, const std::string& title = "" );
106  // ======================================================================
108  GAUDI_API std::string htitle( const AIDA::IProfile* histo, const std::string& title = "" );
109  // ======================================================================
111  GAUDI_API std::string htitle( const AIDA::IProfile1D* histo, const std::string& title = "" );
112  // ======================================================================
114  GAUDI_API std::string htitle( const AIDA::IProfile2D* histo, const std::string& title = "" );
115  // ======================================================================
116  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram1D* histo );
117  // ======================================================================
118  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram2D* histo );
119  // ======================================================================
120  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram3D* histo );
121  // ======================================================================
122  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile1D* histo );
123  // ======================================================================
124  GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile2D* histo );
125  // ======================================================================
126  } // end of namespace Gaudi::Utils::Histos
127  } // end of namespace Gaudi::Utils
128 } // end of namespace Gaudi
129 // ============================================================================
130 // The END
131 // ============================================================================
132 #endif // GAUDIALG_FILL_H
133 // ============================================================================
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:108
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IProfile2D *histo)
Definition: Fill.cpp:188
#define GAUDI_API
Definition: Kernel.h:110
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:175