The Gaudi Framework  v36r1 (3e2fb5a8)
HistoDump.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIUTILS_HISTODUMP_H
12 #define GAUDIUTILS_HISTODUMP_H 1
13 // ============================================================================
14 // Include files
15 // ============================================================================
16 // STD & STL
17 // ============================================================================
18 #include <string>
19 // ============================================================================
20 // GaudiKernel
21 // ============================================================================
22 #include "GaudiKernel/Kernel.h"
23 // ============================================================================
25 // ============================================================================
26 namespace AIDA {
27  class IHistogram1D; // AIDA
28  class IProfile1D; // AIDA
29 } // namespace AIDA
30 // ============================================================================
31 class TH1; // ROOT
32 class TProfile; // ROOT
33 // ============================================================================
34 namespace Gaudi {
35  // ==========================================================================
36  namespace Utils {
37  // ========================================================================
38  namespace Histos {
39  // ======================================================================
50  GAUDI_API
51  std::ostream& histoDump_( const AIDA::IHistogram1D* histo, std::ostream& stream, const std::size_t width = 80,
52  const std::size_t height = 50, const bool errors = false );
53  // ======================================================================
63  GAUDI_API
64  std::string histoDump( const AIDA::IHistogram1D* histo, const std::size_t width = 80,
65  const std::size_t height = 50, const bool errors = false );
66  // ======================================================================
77  GAUDI_API
78  std::ostream& histoDump_( const AIDA::IProfile1D* histo, std::ostream& stream, const std::size_t width = 80,
79  const std::size_t height = 50, const bool spread = true );
80  // ====================================================================
90  GAUDI_API
91  std::string histoDump( const AIDA::IProfile1D* histo, const std::size_t width = 80, const std::size_t height = 50,
92  const bool spread = true );
93  // ======================================================================
104  GAUDI_API
105  std::ostream& histoDump_( const TProfile* histo, std::ostream& stream, const std::size_t width = 80,
106  const std::size_t height = 50 );
107  // ====================================================================
117  GAUDI_API
118  std::string histoDump( const TProfile* histo, const std::size_t width = 80, const std::size_t height = 50 );
119  // ====================================================================
130  GAUDI_API
131  std::ostream& histoDump_( const TH1* histo, std::ostream& stream, const std::size_t width = 80,
132  const std::size_t height = 50, const bool errors = false );
133  // ====================================================================
143  GAUDI_API
144  std::string histoDump( const TH1* histo, const std::size_t width = 80, const std::size_t height = 50,
145  const bool errors = false );
146  // ======================================================================
147  } // namespace Histos
148  // ========================================================================
149  } // namespace Utils
150  // ==========================================================================
151 } // end of namespace Gaudi
152 // ============================================================================
153 // The END
154 // ============================================================================
155 #endif // GAUDIUTILS_HISTODUMP_H
AIDA
GaudiKernel.
Definition: Fill.h:20
Write.stream
stream
Definition: Write.py:31
std::string
STL class.
HistoEx.histo
histo
Definition: HistoEx.py:103
Gaudi::Utils::Histos::histoDump
GAUDI_API std::string histoDump(const AIDA::IHistogram1D *histo, const std::size_t width=80, const std::size_t height=50, const bool errors=false)
dump the text representation of the histogram
Definition: HistoDump.cpp:621
Gaudi::Utils::Histos::histoDump_
GAUDI_API std::ostream & histoDump_(const AIDA::IHistogram1D *histo, std::ostream &stream, const std::size_t width=80, const std::size_t height=50, const bool errors=false)
dump the text representation of the histogram
Definition: HistoDump.cpp:568
std::ostream
STL class.
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
Kernel.h
std::size_t
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
Histos