Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
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 <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  class IHistogram1D;
23  class IHistogram2D;
24 } // namespace AIDA
25 // ============================================================================
26 // ROOT
27 // ============================================================================
28 class TH1D; // ROOT
29 class TH2D; // ROOT
30 class TH1F; // ROOT
31 class TH2F; // ROOT
32 // ============================================================================
33 namespace Gaudi {
34  // ===========================================================================
35  namespace Utils {
36  // =========================================================================
45  GAUDI_API std::ostream& toStream( const TH1D& histo, std::ostream& stream, const bool asXML = false );
46  // =========================================================================
55  GAUDI_API std::ostream& toStream( const TH2D& histo, std::ostream& stream, const bool asXML = false );
56  // =========================================================================
65  GAUDI_API std::ostream& toStream( const TH1F& histo, std::ostream& stream, const bool asXML = false );
66  // =========================================================================
75  GAUDI_API std::ostream& toStream( const TH2F& histo, std::ostream& stream, const bool asXML = false );
76  // ========================================================================
85  GAUDI_API std::ostream& toStream( const AIDA::IHistogram1D& histo, std::ostream& stream, const bool asXML = false );
86  // ========================================================================
95  GAUDI_API std::ostream& toStream( const AIDA::IHistogram2D& histo, std::ostream& stream, const bool asXML = false );
96  // ========================================================================
104  GAUDI_API std::string toString( const TH1D& histo, const bool asXML = false );
105  // ========================================================================
113  GAUDI_API std::string toString( const TH2D& histo, const bool asXML = false );
114  // ========================================================================
122  GAUDI_API std::string toString( const TH1F& histo, const bool asXML = false );
123  // ========================================================================
131  GAUDI_API std::string toString( const TH2F& histo, const bool asXML = false );
132  // ========================================================================
140  GAUDI_API std::string toString( const AIDA::IHistogram1D& histo, const bool asXML = false );
141  // ========================================================================
149  GAUDI_API std::string toString( const AIDA::IHistogram2D& histo, const bool asXML = false );
150  // ========================================================================
158  GAUDI_API std::string toString( const AIDA::IHistogram1D* histo );
159  // ========================================================================
167  GAUDI_API std::string toString( AIDA::IHistogram1D* histo );
168  // ========================================================================
176  GAUDI_API std::string toString( const TH1D* histo );
177  // ========================================================================
185  GAUDI_API std::string toString( TH1D* histo );
186  // ========================================================================
194  GAUDI_API std::string toString( const TH2D* histo );
195  // ========================================================================
203  GAUDI_API std::string toString( TH2D* histo );
204  // ========================================================================
205  } // namespace Utils
206  // ==========================================================================
207 } // end of namespace Gaudi
208 // ============================================================================
209 // The END
210 // ============================================================================
211 #endif // GAUDIUTILS_HISTO2STRING_H
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:82
#define GAUDI_API
Definition: Kernel.h:71
STL class.
Helper functions to set/get the application return code.
Definition: __init__.py:1