The Gaudi Framework  v32r2 (46d42edc)
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
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
Definition: ToStream.h:284
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Definition: ToStream.h:334
GaudiKernel.
Definition: Fill.h:10
STL class.
#define GAUDI_API
Definition: Kernel.h:71
STL class.
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1