The Gaudi Framework  master (37c0b60a)
HistoDump.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #pragma once
12 
13 #include <GaudiKernel/Kernel.h>
14 
15 #include <string>
16 
17 namespace AIDA {
18  class IHistogram1D; // AIDA
19  class IProfile1D; // AIDA
20 } // namespace AIDA
21 
22 class TH1; // ROOT
23 class TProfile; // ROOT
24 
25 namespace Gaudi {
26  namespace Utils {
27  namespace Histos {
28 
38  GAUDI_API
39  std::string histoDump( const AIDA::IHistogram1D* histo, const std::size_t width = 80,
40  const std::size_t height = 50, const bool errors = false );
41 
51  GAUDI_API
52  std::string histoDump( const AIDA::IProfile1D* histo, const std::size_t width = 80, const std::size_t height = 50,
53  const bool spread = true );
54 
64  GAUDI_API
65  std::string histoDump( const TProfile* histo, const std::size_t width = 80, const std::size_t height = 50 );
66 
76  GAUDI_API
77  std::string histoDump( const TH1* histo, const std::size_t width = 80, const std::size_t height = 50,
78  const bool errors = false );
79  } // namespace Histos
80 
81  } // namespace Utils
82 
83 } // end of namespace Gaudi
AIDA
GaudiKernel.
Definition: Annotation.h:22
std::string
STL class.
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:565
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Kernel.h
std::size_t
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81