| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# GaudiAlg::Print1D Class Reference

`#include <GaudiAlg/Print.h>`

List of all members.

## Detailed Description

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

See also:
  AIDA::IHistogram1D

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

Date:
  2005-08-04

Definition at line 68 of file Print.h.

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

## Member Function Documentation

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

Definition at line 67 of file Print.cpp.

References endreq(), and Gaudi::Utils::toString().

    00070 { stream << toString  ( aida , ID )  << endreq ; }

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

Definition at line 73 of file Print.cpp.

References format(), and GaudiAlg::ID::idAsString().

    00075 {
    00076   boost::format fmt
    00077     ( " ID=%|-25|%|30t| \"%|.45s|\" %|79t| Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|" ) ;
    00078   fmt % ID.idAsString() % aida->title();
    00079   fmt % (aida->allEntries()-aida->extraEntries()) % aida->allEntries() ;
    00080   fmt % aida->mean()                              % aida->rms() ;
    00081   //
    00082   return fmt.str() ;
    00083 }

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

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