Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:45

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
0003 *                                                                                   *
0004 * This software is distributed under the terms of the Apache version 2 licence,     *
0005 * copied verbatim in the file "LICENSE".                                            *
0006 *                                                                                   *
0007 * In applying this licence, CERN does not waive the privileges and immunities       *
0008 * granted to it by virtue of its status as an Intergovernmental Organization        *
0009 * or submit itself to any jurisdiction.                                             *
0010 \***********************************************************************************/
0011 #pragma once
0012 
0013 #include "GaudiKernel/Kernel.h"
0014 
0015 #include <string>
0016 
0017 namespace AIDA {
0018   class IHistogram1D; // AIDA
0019   class IProfile1D;   // AIDA
0020 } // namespace AIDA
0021 
0022 class TH1;      // ROOT
0023 class TProfile; // ROOT
0024 
0025 namespace Gaudi {
0026   namespace Utils {
0027     namespace Histos {
0028 
0029       /** dump the text representation of the histogram
0030        *  @param histo  (INPUT) the histogram
0031        *  @param width  (INPUT) the maximal  column width
0032        *  @param height (INPUT) the proposed column height
0033        *  @param erorrs (INPUT) print/plot errors
0034        *  @return string representation of the histogram
0035        *  @author Vanya BELYAEV  Ivan.BElyaev@nikhef.nl
0036        *  @date 2009-09-19
0037        */
0038       GAUDI_API
0039       std::string histoDump( const AIDA::IHistogram1D* histo, const std::size_t width = 80,
0040                              const std::size_t height = 50, const bool errors = false );
0041 
0042       /** dump the text representation of the 1D-profile
0043        *  @param histo  (INPUT) the histogram
0044        *  @param width  (INPUT) the maximal  column width
0045        *  @param height (INPUT) the proposed column height
0046        *  @param spread (INPUT) print/plto spread vs rms
0047        *  @return string representation of the histogram
0048        *  @author Vanya BELYAEV  Ivan.BElyaev@nikhef.nl
0049        *  @date 2009-09-19
0050        */
0051       GAUDI_API
0052       std::string histoDump( const AIDA::IProfile1D* histo, const std::size_t width = 80, const std::size_t height = 50,
0053                              const bool spread = true );
0054 
0055       /** dump the text representation of the histogram
0056        *  @param histo  (INPUT) the histogram
0057        *  @param width  (INPUT) the maximal column width
0058        *  @param height (INPUT) the propsoed coulmn height
0059        *  @param erorrs (INPUT) print/plot errors
0060        *  @return string representation of the histogram
0061        *  @author Vanya BELYAEV  Ivan.Belyaev@nikhef.nl
0062        *  @date 2009-09-19
0063        */
0064       GAUDI_API
0065       std::string histoDump( const TProfile* histo, const std::size_t width = 80, const std::size_t height = 50 );
0066 
0067       /** dump the text representation of the histogram
0068        *  @param histo  (INPUT) the histogram
0069        *  @param width  (INPUT) the maximal column width
0070        *  @param height (INPUT) the propsoed coulmn height
0071        *  @param erorrs (INPUT) print/plot errors
0072        *  @return string representation of the histogram
0073        *  @author Vanya BELYAEV  Ivan.Belyaev@nikhef.nl
0074        *  @date 2009-09-19
0075        */
0076       GAUDI_API
0077       std::string histoDump( const TH1* histo, const std::size_t width = 80, const std::size_t height = 50,
0078                              const bool errors = false );
0079     } // namespace Histos
0080 
0081   } // namespace Utils
0082 
0083 } //                                                     end of namespace Gaudi