All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Fill.h
Go to the documentation of this file.
1 // $Id: Fill.h,v 1.1 2007/10/02 14:53:48 marcocle Exp $
2 // ============================================================================
3 #ifndef GAUDIALG_FILL_H
4 #define GAUDIALG_FILL_H 1
5 // ============================================================================
6 // Include files
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
41  ( AIDA::IHistogram1D* histo ,
42  const double value ,
43  const double weight = 1.0 ) ;
44  // ======================================================================
54  GAUDI_API void fill
55  ( AIDA::IHistogram2D* histo ,
56  const double valueX ,
57  const double valueY ,
58  const double weight = 1.0 ) ;
59  // ======================================================================
70  GAUDI_API void fill
71  ( AIDA::IHistogram3D* histo ,
72  const double valueX ,
73  const double valueY ,
74  const double valueZ ,
75  const double weight = 1.0 ) ;
76  // ======================================================================
86  GAUDI_API void fill
87  ( AIDA::IProfile1D* histo ,
88  const double valueX ,
89  const double valueY ,
90  const double weight = 1.0 ) ;
91  // ======================================================================
102  GAUDI_API void fill
103  ( AIDA::IProfile2D* histo ,
104  const double valueX ,
105  const double valueY ,
106  const double valueZ ,
107  const double weight = 1.0 ) ;
108  // ======================================================================
110  GAUDI_API std::string htitle
111  ( const AIDA::IBaseHistogram* histo ,
112  const std::string& title = "" ) ;
113  // ======================================================================
115  GAUDI_API std::string htitle
116  ( const AIDA::IHistogram* histo ,
117  const std::string& title = "" ) ;
118  // ======================================================================
120  GAUDI_API std::string htitle
121  ( const AIDA::IHistogram1D* histo ,
122  const std::string& title = "" ) ;
123  // ======================================================================
125  GAUDI_API std::string htitle
126  ( const AIDA::IHistogram2D* histo ,
127  const std::string& title = "" ) ;
128  // ======================================================================
130  GAUDI_API std::string htitle
131  ( const AIDA::IHistogram3D* histo ,
132  const std::string& title = "" ) ;
133  // ======================================================================
135  GAUDI_API std::string htitle
136  ( const AIDA::IProfile* histo ,
137  const std::string& title = "" ) ;
138  // ======================================================================
140  GAUDI_API std::string htitle
141  ( const AIDA::IProfile1D* histo ,
142  const std::string& title = "" ) ;
143  // ======================================================================
145  GAUDI_API std::string htitle
146  ( const AIDA::IProfile2D* histo ,
147  const std::string& title = "" ) ;
148  // ======================================================================
149  GAUDI_API AIDA::IBaseHistogram* toBase ( AIDA::IHistogram1D* histo ) ;
150  // ======================================================================
151  GAUDI_API AIDA::IBaseHistogram* toBase ( AIDA::IHistogram2D* histo ) ;
152  // ======================================================================
153  GAUDI_API AIDA::IBaseHistogram* toBase ( AIDA::IHistogram3D* histo ) ;
154  // ======================================================================
155  GAUDI_API AIDA::IBaseHistogram* toBase ( AIDA::IProfile1D* histo ) ;
156  // ======================================================================
157  GAUDI_API AIDA::IBaseHistogram* toBase ( AIDA::IProfile2D* histo ) ;
158  // ======================================================================
159  } // end of namespace Gaudi::Utils::Histos
160  } // end of namespace Gaudi::Utils
161 } // end of namespace Gaudi
162 // ============================================================================
163 // The END
164 // ============================================================================
165 #endif // GAUDIALG_FILL_H
166 // ============================================================================
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
Definition: Fill.cpp:139
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:37
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:14
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
Definition: Fill.cpp:194
#define GAUDI_API
Definition: Kernel.h:108