13 #include "AIDA/IHistogram1D.h" 14 #include "AIDA/IHistogram2D.h" 15 #include "AIDA/IHistogram3D.h" 16 #include "AIDA/IProfile1D.h" 17 #include "AIDA/IProfile2D.h" 33 #include "boost/format.hpp" 47 static const std::string s_invalidLocation =
"<UNKNOWN LOCATION>";
53 return s_invalidLocation;
57 return s_invalidLocation;
61 return s_invalidLocation;
73 boost::format fmt(
" ID=%|-25|%|30t| \"%|.45s|\" %|79t| Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|" );
75 fmt % ( aida->allEntries() - aida->extraEntries() ) % aida->allEntries();
76 fmt % aida->mean() % aida->rms();
88 boost::format fmt(
" ID=%|-25|%|30t| \"%|.45s|\" %|79t| Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|,<Y>/sY=%|.5|/%|-.5|" );
90 fmt % ( aida->allEntries() - aida->extraEntries() ) % aida->allEntries();
91 fmt % aida->meanX() % aida->rmsX();
92 fmt % aida->meanY() % aida->rmsY();
105 "Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|,<Y>/sY=%|.5|/%|-.5|,<Z>/sZ=%|.5|/%|-.5|" );
107 fmt % ( aida->allEntries() - aida->extraEntries() ) % aida->allEntries();
108 fmt % aida->meanX() % aida->rmsX();
109 fmt % aida->meanY() % aida->rmsY();
110 fmt % aida->meanZ() % aida->rmsZ();
122 boost::format fmt(
" ID=%|-25|%|30t| \"%|.55s|\" %|79t| Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|" );
124 fmt % ( aida->allEntries() - aida->extraEntries() ) % aida->allEntries();
125 fmt % aida->mean() % aida->rms();
137 boost::format fmt(
" ID=%|-25|%|30t| \"%|.55s|\" %|79t| Ents/All=%|5|/%|-5|<X>/sX=%|.5|/%|-.5|,<Y>/sY=%|.5|/%|-.5|" );
139 fmt % ( aida->allEntries() - aida->extraEntries() ) % aida->allEntries();
140 fmt % aida->meanX() % aida->rmsX();
141 fmt % aida->meanY() % aida->rmsY();
149 stat.
print( ost,
true, tag );
165 for (
const auto& item : items ) {
169 if ( !str.
empty() ) {
173 if ( 0 != item->ndim() ) {
176 if ( item->hasIndex() ) {
186 boost::format fmt(
"Title=\"%|.39s|\" %|48t|#items=%|-3|%|50t|{%|.81s|}" );
187 fmt % tuple->
title();
189 fmt % _print( tuple->
items() );
static std::string print(const INTuple *tuple, const GaudiAlg::TupleID &ID)
Definition of the MsgStream class used to transmit messages.
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
static std::string print(const StatEntity &stat, const std::string &tag)
static void print(MsgStream &stream, const AIDA::IHistogram3D *aida, const GaudiAlg::HistoID &ID)
static std::string toString(const AIDA::IHistogram1D *aida, const GaudiAlg::HistoID &ID)
static void print(MsgStream &stream, const AIDA::IProfile1D *aida, const GaudiAlg::HistoID &ID)
NTuple interface class definition.
virtual const id_type & identifier() const =0
Full identifier (or key)
static const std::string & location(const AIDA::IHistogram *aida)
The IRegistry represents the entry door to the environment any data object residing in a transient da...
std::ostream & print(std::ostream &o, bool tableFormat, const std::string &name, bool flag=true, std::string fmtHead="%|-48.48s|%|27t|") const
collection of useful utilities to print certain objects (currently used for implementation in class G...
static std::string toString(const AIDA::IHistogram3D *aida, const GaudiAlg::HistoID &ID)
static void print(MsgStream &stream, const AIDA::IHistogram1D *aida, const GaudiAlg::HistoID &ID)
static void print(MsgStream &stream, const AIDA::IProfile2D *aida, const GaudiAlg::HistoID &ID)
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
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)
virtual ItemContainer & items()=0
Access item container.
static std::string toString(const AIDA::IProfile1D *aida, const GaudiAlg::HistoID &ID)
backward compatible StatEntity class.
A DataObject is the base class of any identifiable object on any data store.
virtual const std::string & title() const =0
Object title.
static std::string toString(const AIDA::IProfile2D *aida, const GaudiAlg::HistoID &ID)
ID class for Histogram and Ntuples.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
std::string toString(const Type &)