| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# GaudiAlg::Print2D Class Reference

collection of useful utilities to print IHistogram1D (currently used for implementation of class GaudiHistoAlg and class GaudiHistoTool) More...

`#include <GaudiAlg/Print.h>`

List of all members.

## Static Public Member Functions
static void | print (MsgStream &stream, const AIDA::IHistogram2D *aida, const GaudiAlg::HistoID &ID)
static std::string | toString (const AIDA::IHistogram2D *aida, const GaudiAlg::HistoID &ID)

## Detailed Description

collection of useful utilities to print IHistogram1D (currently used for implementation of class GaudiHistoAlg and class GaudiHistoTool)

See also:
  AIDA::IHistogram2D

Author:
  Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr

Date:
  2005-08-04

Definition at line 88 of file Print.h.

## Member Function Documentation

void GaudiAlg::Print2D::print | ( | MsgStream & | stream,
|  | const AIDA::IHistogram2D * | aida,
|  | const GaudiAlg::HistoID & | ID |
| ) |  |  | `[static]`

Definition at line 90 of file Print.cpp.

    00093 { stream << toString  ( aida , ID )  << endmsg ; }

std::string GaudiAlg::Print2D::toString | ( | const AIDA::IHistogram2D * | aida,
|  | const GaudiAlg::HistoID & | ID |
| ) |  |  | `[static]`

Definition at line 96 of file Print.cpp.

    00098 {
    00099   boost::format fmt
    00100     ( " ID=%|-25|%|30t| \"%|.45s|\" %|79t| Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|,<Y>/sY=%|.5|/%|-.5|" ) ;
    00101   fmt % ID.idAsString() % aida->title();
    00102   fmt % (aida->allEntries()-aida->extraEntries()) % aida->allEntries() ;
    00103   fmt % aida->meanX()                             % aida->rmsX() ;
    00104   fmt % aida->meanY()                             % aida->rmsY() ;
    00105   //
    00106   return fmt.str() ;
    00107 }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiAlg/GaudiAlg/Print.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiAlg/src/lib/Print.cpp