|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
00001 #ifndef GAUDIUTILS_HISTO2STRING_H 00002 #define GAUDIUTILS_HISTO2STRING_H 1 00003 // ============================================================================ 00004 // Include files 00005 // ============================================================================ 00006 // STD & STL 00007 // ============================================================================ 00008 #include <string> 00009 #include <iosfwd> 00010 // ============================================================================ 00011 // GaudiKernel 00012 // ============================================================================ 00013 #include "GaudiKernel/StatusCode.h" 00014 // ============================================================================ 00015 // forward declarations 00016 // ============================================================================ 00017 // Forward declarations 00018 // ============================================================================ 00019 // AIDA 00020 // ============================================================================ 00021 namespace AIDA 00022 { 00023 class IHistogram1D ; 00024 class IHistogram2D ; 00025 } 00026 // ============================================================================ 00027 // ROOT 00028 // ============================================================================ 00029 class TH1D ; // ROOT 00030 class TH2D ; // ROOT 00031 class TH1F ; // ROOT 00032 class TH2F ; // ROOT 00033 // ============================================================================ 00034 namespace Gaudi 00035 { 00036 // =========================================================================== 00037 namespace Utils 00038 { 00039 // ========================================================================= 00048 GAUDI_API std::ostream& toStream 00049 ( const TH1D& histo , 00050 std::ostream& stream , 00051 const bool asXML = false ) ; 00052 // ========================================================================= 00061 GAUDI_API std::ostream& toStream 00062 ( const TH2D& histo , 00063 std::ostream& stream , 00064 const bool asXML = false ) ; 00065 // ========================================================================= 00074 GAUDI_API std::ostream& toStream 00075 ( const TH1F& histo , 00076 std::ostream& stream , 00077 const bool asXML = false ) ; 00078 // ========================================================================= 00087 GAUDI_API std::ostream& toStream 00088 ( const TH2F& histo , 00089 std::ostream& stream , 00090 const bool asXML = false ) ; 00091 // ======================================================================== 00100 GAUDI_API std::ostream& toStream 00101 ( const AIDA::IHistogram1D& histo , 00102 std::ostream& stream , 00103 const bool asXML = false ) ; 00104 // ======================================================================== 00113 GAUDI_API std::ostream& toStream 00114 ( const AIDA::IHistogram2D& histo , 00115 std::ostream& stream , 00116 const bool asXML = false ) ; 00117 // ======================================================================== 00125 GAUDI_API std::string toString 00126 ( const TH1D& histo , 00127 const bool asXML = false ) ; 00128 // ======================================================================== 00136 GAUDI_API std::string toString 00137 ( const TH2D& histo , 00138 const bool asXML = false ) ; 00139 // ======================================================================== 00147 GAUDI_API std::string toString 00148 ( const TH1F& histo , 00149 const bool asXML = false ) ; 00150 // ======================================================================== 00158 GAUDI_API std::string toString 00159 ( const TH2F& histo , 00160 const bool asXML = false ) ; 00161 // ======================================================================== 00169 GAUDI_API std::string toString 00170 ( const AIDA::IHistogram1D& histo , 00171 const bool asXML = false ) ; 00172 // ======================================================================== 00180 GAUDI_API std::string toString 00181 ( const AIDA::IHistogram2D& histo , 00182 const bool asXML = false ) ; 00183 // ======================================================================== 00191 GAUDI_API std::string toString 00192 ( const AIDA::IHistogram1D* histo ) ; 00193 // ======================================================================== 00201 GAUDI_API std::string toString ( AIDA::IHistogram1D* histo ) ; 00202 // ======================================================================== 00210 GAUDI_API std::string toString ( const TH1D* histo ) ; 00211 // ======================================================================== 00219 GAUDI_API std::string toString ( TH1D* histo ) ; 00220 // ======================================================================== 00228 GAUDI_API std::string toString ( const TH2D* histo ) ; 00229 // ======================================================================== 00237 GAUDI_API std::string toString ( TH2D* histo ) ; 00238 // ======================================================================== 00239 } // end of namespace Gaudi::Utils 00240 // ========================================================================== 00241 } // end of namespace Gaudi 00242 // ============================================================================ 00243 // The END 00244 // ============================================================================ 00245 #endif // GAUDIUTILS_HISTO2STRING_H 00246 // ============================================================================