HistoXML.h
Go to the documentation of this file.
1 #ifndef GAUDIUTILS_HISTOXML_H
2 #define GAUDIUTILS_HISTOXML_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 // AIDA
18 // ============================================================================
19 namespace AIDA
20 {
21  class IHistogram1D ;
22  class IHistogram2D ;
23  class IHistogram3D ;
24  class IProfile1D ;
25  class IProfile2D ;
26 }
27 // ============================================================================
28 // ROOT
29 // ============================================================================
30 class TH1D ; // ROOT
31 class TH2D ; // ROOT
32 class TH3D ; // ROOT
33 class TH1F ; // ROOT
34 class TH2F ; // ROOT
35 class TH3F ; // ROOT
36 class TProfile ; // ROOT
37 class TProfile2D ; // ROOT
38 // ============================================================================
39 namespace Gaudi
40 {
41  // ===========================================================================
42  namespace Utils
43  {
44  // =========================================================================
45  namespace Histos
46  {
47  // =======================================================================
55  ( const TH1D& histo ,
56  std::ostream& stream ) ;
57  // ======================================================================
65  ( const TH2D& histo ,
66  std::ostream& stream ) ;
67  // ======================================================================
75  ( const TH3D& histo ,
76  std::ostream& stream ) ;
77  // ======================================================================
85  ( const TProfile& histo ,
86  std::ostream& stream ) ;
87  // ======================================================================
95  ( const TProfile2D& histo ,
96  std::ostream& stream ) ;
97  // ======================================================================
103  ( const AIDA::IHistogram1D& histo ,
104  std::ostream& stream ) ;
105  // ======================================================================
111  ( const AIDA::IHistogram2D& histo ,
112  std::ostream& stream ) ;
113  // ======================================================================
119  ( const AIDA::IHistogram3D& histo ,
120  std::ostream& stream ) ;
121  // ======================================================================
127  ( const AIDA::IProfile1D& histo ,
128  std::ostream& stream ) ;
129  // =======================================================================
137  ( const TH1F& histo ,
138  std::ostream& stream ) ;
139  // ======================================================================
147  ( const TH2F& histo ,
148  std::ostream& stream ) ;
149  // ======================================================================
157  ( const TH3F& histo ,
158  std::ostream& stream ) ;
159  // ======================================================================
165  ( const AIDA::IProfile2D& histo ,
166  std::ostream& stream ) ;
167  // ======================================================================
178  ( TH1D& result , const std::string& input ) ;
179  // ======================================================================
190  ( TH2D& result , const std::string& input ) ;
191  // ======================================================================
202  ( TH3D& result , const std::string& input ) ;
203  // ======================================================================
214  ( TProfile& result , const std::string& input ) ;
215  // ======================================================================
226  ( TProfile2D& result , const std::string& input ) ;
227  // ======================================================================
238  ( TH1F& result , const std::string& input ) ;
239  // ======================================================================
250  ( TH2F& result , const std::string& input ) ;
251  // ======================================================================
262  ( TH3F& result , const std::string& input ) ;
263  // ======================================================================
274  ( TH1D*& result , const std::string& input ) ;
275  // ======================================================================
286  ( TH2D*& result , const std::string& input ) ;
287  // ======================================================================
298  ( TH3D*& result , const std::string& input ) ;
299  // ======================================================================
310  ( TProfile*& result , const std::string& input ) ;
311  // ======================================================================
322  ( TProfile2D*& result , const std::string& input ) ;
323  // ======================================================================
334  ( AIDA::IHistogram1D& result , const std::string& input ) ;
335  // ======================================================================
346  ( AIDA::IHistogram2D& result , const std::string& input ) ;
347  // ======================================================================
358  ( AIDA::IHistogram3D& result , const std::string& input ) ;
359  // ======================================================================
370  ( AIDA::IProfile1D& result , const std::string& input ) ;
371  // ======================================================================
382  ( AIDA::IProfile2D& result , const std::string& input ) ;
383  // ======================================================================
384  } // end of namespace Gaudi::Utils::Histos
385  // ========================================================================
386  } // end of namespace Gaudi::Utils
387  // ==========================================================================
388 } // end of namespace Gaudi
389 // ============================================================================
390 // The END
391 // ============================================================================
392 #endif // GAUDIUTILS_HISTOXML_H
393 // ============================================================================
helper namespace to collect useful definitions, types, constants and functions, related to manipulati...
GAUDI_API StatusCode fromXml(AIDA::IProfile2D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:540
GaudiKernel.
Definition: Fill.h:8
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
GAUDI_API std::ostream & toXml(const AIDA::IProfile2D &histo, std::ostream &stream)
stream the AIDA histogram into the output stream as XML
Definition: HistoXML.cpp:215
#define GAUDI_API
Definition: Kernel.h:107
STL class.
Helper functions to set/get the application return code.
Definition: __init__.py:1