1 #ifndef GAUDIUTILS_HISTOTABLEFORMAT_H 2 #define GAUDIUTILS_HISTOTABLEFORMAT_H 1 13 class IBaseHistogram ;
169 (
const AIDA::IHistogram1D* histo ,
201 (
const AIDA::IHistogram1D* histo ,
229 template <
class HISTO,
class STREAM,
class TERMINATOR>
237 for ( ; first != last ; ++first )
238 { stream <<
format ( *first , fmt ) << term ; }
265 template <
class LIST,
class STREAM,
class TERMINATOR>
273 ( histos.begin () , histos.end () , fmt , stream , term ) ;
320 template <
class HISTO,
class STREAM,
class TERMINATOR>
334 fmt1 , fmt2 ) << term ;
381 template <
class MAP,
class STREAM,
class TERMINATOR>
383 (
const MAP& histos ,
390 ( histos.begin () , histos.end() , fmt1 , fmt2 , stream , term ) ;
413 Table (
const int ID = 0 ) ;
427 template <
class HISTO,
class STREAM,
class TERMINATOR>
432 TERMINATOR term )
const 434 if ( !
header().empty() ) { stream <<
header () << term ; }
436 if ( !footer().empty() ) { stream << footer () << term ; }
453 template <
class HISTO,
class STREAM,
class TERMINATOR>
460 TERMINATOR term )
const 465 ( first , last , fmt ,
format() , stream , term ) ;
521 (
const AIDA::IHistogram1D* histo ,
540 #endif // GAUDIUTILS_HISTOTABLEFORMAT_H helper namespace to collect useful definitions, types, constants and functions, related to manipulati...
STREAM & printMap(HISTO begin, HISTO end, const std::string &fmt1, const std::string &fmt2, STREAM &stream, TERMINATOR term)
Print the "associative sequence" (e.g.
STREAM & printMap(const MAP &histos, const std::string &fmt1, const std::string &fmt2, STREAM &stream, TERMINATOR term)
Print the "associative sequence" (e.g.
std::string m_header
the table header
void setHeader(std::string v)
set new header
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
GAUDI_API std::string format(const AIDA::IHistogram1D *histo, const std::string &fmt)
Make the string representation of the historgam according to the specified format.
void setFormat(std::string v)
set new format
auto begin(reverse_wrapper< T > &w)
const std::string & header() const
the table header
GAUDI_API std::string format(const std::string &val1, const std::string &val2, const std::string &fmt)
helper method to merge the headers for short format table
const std::string & format() const
the format
Simple class for the customizeble printout of the histogram tables.
auto end(reverse_wrapper< T > &w)
std::string m_footer
the table footer
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram
void setFooter(std::string v)
set new footer
STREAM & printList(HISTO first, HISTO last, const std::string &fmt, STREAM &stream, TERMINATOR term)
print the simple sequence (list-like) of histograms as table
Helper functions to set/get the application return code.
std::string m_format
the defautl format
STREAM & printList(const LIST &histos, const std::string &fmt, STREAM &stream, TERMINATOR term)
print the simple container of histograms as table
const std::string & footer() const
the table footer