| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
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>`

## 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..nosp@m.Bely.nosp@m.aev@l.nosp@m.app..nosp@m.in2p3.nosp@m..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.

{ 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.

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

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

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