All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Histo2String.h
Go to the documentation of this file.
1 #ifndef GAUDIUTILS_HISTO2STRING_H
2 #define GAUDIUTILS_HISTO2STRING_H 1
3 // ============================================================================
4 // Include files
5 // ============================================================================
6 // STD & STL
7 // ============================================================================
8 #include <string>
9 #include <iosfwd>
10 // ============================================================================
11 // GaudiKernel
12 // ============================================================================
13 #include "GaudiKernel/StatusCode.h"
14 // ============================================================================
15 // forward declarations
16 // ============================================================================
17 // Forward declarations
18 // ============================================================================
19 // AIDA
20 // ============================================================================
21 namespace AIDA
22 {
23  class IHistogram1D ;
24  class IHistogram2D ;
25 }
26 // ============================================================================
27 // ROOT
28 // ============================================================================
29 class TH1D ; // ROOT
30 class TH2D ; // ROOT
31 class TH1F ; // ROOT
32 class TH2F ; // ROOT
33 // ============================================================================
34 namespace Gaudi
35 {
36  // ===========================================================================
37  namespace Utils
38  {
39  // =========================================================================
49  ( const TH1D& histo ,
50  std::ostream& stream ,
51  const bool asXML = false ) ;
52  // =========================================================================
62  ( const TH2D& histo ,
63  std::ostream& stream ,
64  const bool asXML = false ) ;
65  // =========================================================================
75  ( const TH1F& histo ,
76  std::ostream& stream ,
77  const bool asXML = false ) ;
78  // =========================================================================
88  ( const TH2F& histo ,
89  std::ostream& stream ,
90  const bool asXML = false ) ;
91  // ========================================================================
101  ( const AIDA::IHistogram1D& histo ,
102  std::ostream& stream ,
103  const bool asXML = false ) ;
104  // ========================================================================
114  ( const AIDA::IHistogram2D& histo ,
115  std::ostream& stream ,
116  const bool asXML = false ) ;
117  // ========================================================================
126  ( const TH1D& histo ,
127  const bool asXML = false ) ;
128  // ========================================================================
137  ( const TH2D& histo ,
138  const bool asXML = false ) ;
139  // ========================================================================
148  ( const TH1F& histo ,
149  const bool asXML = false ) ;
150  // ========================================================================
159  ( const TH2F& histo ,
160  const bool asXML = false ) ;
161  // ========================================================================
170  ( const AIDA::IHistogram1D& histo ,
171  const bool asXML = false ) ;
172  // ========================================================================
181  ( const AIDA::IHistogram2D& histo ,
182  const bool asXML = false ) ;
183  // ========================================================================
192  ( const AIDA::IHistogram1D* histo ) ;
193  // ========================================================================
201  GAUDI_API std::string toString ( AIDA::IHistogram1D* histo ) ;
202  // ========================================================================
210  GAUDI_API std::string toString ( const TH1D* histo ) ;
211  // ========================================================================
219  GAUDI_API std::string toString ( TH1D* histo ) ;
220  // ========================================================================
228  GAUDI_API std::string toString ( const TH2D* histo ) ;
229  // ========================================================================
237  GAUDI_API std::string toString ( TH2D* histo ) ;
238  // ========================================================================
239  } // end of namespace Gaudi::Utils
240  // ==========================================================================
241 } // end of namespace Gaudi
242 // ============================================================================
243 // The END
244 // ============================================================================
245 #endif // GAUDIUTILS_HISTO2STRING_H
246 // ============================================================================
GaudiKernel.
Definition: Fill.h:8
STL class.
GAUDI_API std::string toString(TH2D *histo)
convert the histogram into the string
GAUDI_API std::ostream & toStream(const AIDA::IHistogram2D &histo, std::ostream &stream, const bool asXML=false)
stream the AIDA histogram into output stream
#define GAUDI_API
Definition: Kernel.h:107
STL class.
Helper functions to set/get the application return code.
Definition: __init__.py:1