The Gaudi Framework  v30r3 (a5ef0a68)
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 <iosfwd>
9 #include <string>
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  // =========================================================================
48  GAUDI_API std::ostream& toStream( const TH1D& histo, std::ostream& stream, const bool asXML = false );
49  // =========================================================================
58  GAUDI_API std::ostream& toStream( const TH2D& histo, std::ostream& stream, const bool asXML = false );
59  // =========================================================================
68  GAUDI_API std::ostream& toStream( const TH1F& histo, std::ostream& stream, const bool asXML = false );
69  // =========================================================================
78  GAUDI_API std::ostream& toStream( const TH2F& histo, std::ostream& stream, const bool asXML = false );
79  // ========================================================================
88  GAUDI_API std::ostream& toStream( const AIDA::IHistogram1D& histo, std::ostream& stream, const bool asXML = false );
89  // ========================================================================
98  GAUDI_API std::ostream& toStream( const AIDA::IHistogram2D& histo, std::ostream& stream, const bool asXML = false );
99  // ========================================================================
107  GAUDI_API std::string toString( const TH1D& histo, const bool asXML = false );
108  // ========================================================================
116  GAUDI_API std::string toString( const TH2D& histo, const bool asXML = false );
117  // ========================================================================
125  GAUDI_API std::string toString( const TH1F& histo, const bool asXML = false );
126  // ========================================================================
134  GAUDI_API std::string toString( const TH2F& histo, const bool asXML = false );
135  // ========================================================================
143  GAUDI_API std::string toString( const AIDA::IHistogram1D& histo, const bool asXML = false );
144  // ========================================================================
152  GAUDI_API std::string toString( const AIDA::IHistogram2D& histo, const bool asXML = false );
153  // ========================================================================
161  GAUDI_API std::string toString( const AIDA::IHistogram1D* histo );
162  // ========================================================================
170  GAUDI_API std::string toString( AIDA::IHistogram1D* histo );
171  // ========================================================================
179  GAUDI_API std::string toString( const TH1D* histo );
180  // ========================================================================
188  GAUDI_API std::string toString( TH1D* histo );
189  // ========================================================================
197  GAUDI_API std::string toString( const TH2D* histo );
198  // ========================================================================
206  GAUDI_API std::string toString( TH2D* histo );
207  // ========================================================================
208  } // end of namespace Gaudi::Utils
209  // ==========================================================================
210 } // end of namespace Gaudi
211 // ============================================================================
212 // The END
213 // ============================================================================
214 #endif // GAUDIUTILS_HISTO2STRING_H
215 // ============================================================================
GaudiKernel.
Definition: Fill.h:10
STL class.
GAUDI_API std::string toString(TH2D *histo)
convert the histogram into the string
std::ostream & toStream(const DataObjID &d, std::ostream &os)
Definition: DataObjID.cpp:92
#define GAUDI_API
Definition: Kernel.h:104
STL class.
Helper functions to set/get the application return code.
Definition: __init__.py:1