Print.h
Go to the documentation of this file.
1 // $Id: Print.h,v 1.5 2008/04/03 22:13:13 marcocle Exp $
2 // ============================================================================
3 #ifndef GAUDIALG_PRINT_H
4 #define GAUDIALG_PRINT_H 1
5 // ============================================================================
6 // Include files
7 // ============================================================================
8 // STD & STL
9 // ============================================================================
10 // ============================================================================
11 // GaudiKernel
12 // ============================================================================
13 #include "GaudiKernel/MsgStream.h"
14 // ============================================================================
15 #include <string>
16 // ============================================================================
17 // GaudiAlg
18 // ============================================================================
19 #include "GaudiAlg/HistoID.h"
20 #include "GaudiAlg/TupleID.h"
21 // ============================================================================
22 // forward declarations
23 // ============================================================================
24 namespace AIDA
25 {
26  class IHistogram ;
27  class IHistogram1D ;
28  class IHistogram2D ;
29  class IHistogram3D ;
30  class IProfile1D ;
31  class IProfile2D ;
32 }
33 class StatEntity ;
34 class INTuple ;
35 // ============================================================================
44 namespace GaudiAlg
45 {
54  class GAUDI_API Print
55  {
56  public:
57  static const std::string& location
58  ( const AIDA::IHistogram* aida ) ;
59  } ;
68  class GAUDI_API Print1D
69  {
70  public:
71  static void print
72  ( MsgStream & stream ,
73  const AIDA::IHistogram1D* aida ,
74  const GaudiAlg::HistoID& ID ) ;
75  //
76  static std::string toString
77  ( const AIDA::IHistogram1D* aida ,
78  const GaudiAlg::HistoID& ID ) ;
79  } ;
88  class GAUDI_API Print2D
89  {
90  public:
91  //
92  static void print
93  ( MsgStream & stream ,
94  const AIDA::IHistogram2D* aida ,
95  const GaudiAlg::HistoID& ID ) ;
96  //
97  static std::string toString
98  ( const AIDA::IHistogram2D* aida ,
99  const GaudiAlg::HistoID& ID ) ;
100  } ;
109  class GAUDI_API Print3D
110  {
111  public:
112  //
113  static void print
114  ( MsgStream & stream,
115  const AIDA::IHistogram3D* aida ,
116  const GaudiAlg::HistoID& ID ) ;
117  //
118  static std::string toString
119  ( const AIDA::IHistogram3D* aida ,
120  const GaudiAlg::HistoID& ID ) ;
121  } ;
130  class GAUDI_API Print1DProf
131  {
132  public:
133  //
134  static void print
135  ( MsgStream & stream,
136  const AIDA::IProfile1D* aida ,
137  const GaudiAlg::HistoID& ID ) ;
138  //
139  static std::string toString
140  ( const AIDA::IProfile1D* aida ,
141  const GaudiAlg::HistoID& ID ) ;
142  } ;
151  class GAUDI_API Print2DProf
152  {
153  public:
154  //
155  static void print
156  ( MsgStream & stream,
157  const AIDA::IProfile2D* aida ,
158  const GaudiAlg::HistoID& ID ) ;
159  //
160  static std::string toString
161  ( const AIDA::IProfile2D* aida ,
162  const GaudiAlg::HistoID& ID ) ;
163  } ;
164  // ==========================================================================
173  class GAUDI_API PrintTuple
174  {
175  public :
176  //
177  static std::string print
178  ( const INTuple* tuple ,
179  const GaudiAlg::TupleID& ID ) ;
180  //
181  static std::string print
182  ( const INTuple* tuple ) ;
183  } ;
184  // ==========================================================================
193  class GAUDI_API PrintStat
194  {
195  public:
196  static std::string print
197  ( const StatEntity& stat ,
198  const std::string& tag ) ;
199  } ;
200  // ==========================================================================
201 } // end of namespace GaudiAlg
202 
203 // ============================================================================
204 // The END
205 // ============================================================================
206 #endif // GAUDIALG_PRINT_H
207 // ============================================================================
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
#define GAUDI_API
Definition: Kernel.h:108
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Definition: ToStream.h:403
GaudiKernel.
Definition: Fill.h:10
NTuple interface class definition.
Definition: INTuple.h:80
The basic counter used for Monitoring purposes.
Definition: StatEntity.h:68
GaudiAlg.h GaudiAlg/GaudiAlg.h Namespace with definition of useful constants, types and function...
ID class for Histogram and Ntuples.
Definition: GaudiHistoID.h:46