Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
133 GAUDI_API std::string
path(
const AIDA::IBaseHistogram* aida );
173 GAUDI_API std::string
format(
const AIDA::IHistogram1D* histo,
const std::string&
fmt );
198 GAUDI_API std::string
format(
const AIDA::IProfile1D* histo,
const std::string&
fmt );
228 GAUDI_API std::string
format(
const AIDA::IHistogram1D* histo,
const std::string& ID,
const std::string& fmt1,
229 const std::string& fmt2 );
259 GAUDI_API std::string
format(
const AIDA::IProfile1D* histo,
const std::string& ID,
const std::string& fmt1,
260 const std::string& fmt2 );
285 template <
class HISTO,
class STREAM,
class TERMINATOR>
286 inline STREAM&
printList( HISTO first, HISTO last,
const std::string&
fmt, STREAM&
stream, TERMINATOR term ) {
287 for ( ; first != last; ++first ) {
stream <<
format( *first,
fmt ) << term; }
314 template <
class LIST,
class STREAM,
class TERMINATOR>
363 template <
class HISTO,
class STREAM,
class TERMINATOR>
417 template <
class MAP,
class STREAM,
class TERMINATOR>
427 GAUDI_API std::string
format(
const std::string& val1,
const std::string& val2,
const std::string&
fmt );
439 Table(
const int ID = 0 );
441 Table(
const std::string&
format,
const std::string&
header =
"",
const std::string& footer =
"" );
451 template <
class HISTO,
class STREAM,
class TERMINATOR>
455 if ( !footer().empty() ) {
stream << footer() << term; }
472 template <
class HISTO,
class STREAM,
class TERMINATOR>
473 STREAM&
printMap( HISTO first, HISTO last,
const std::string&
fmt,
const std::string& hval, STREAM&
stream,
474 TERMINATOR term )
const {
475 if ( !hval.empty() || !
header().empty() ) {
484 const std::string&
header()
const {
return m_header; }
487 const std::string&
footer()
const {
return m_footer; }
490 const std::string&
format()
const {
return m_format; }
506 std::string
toString(
const AIDA::IHistogram1D* histo )
const;
509 std::string
toString(
const AIDA::IProfile1D* histo )
const;
536 std::string
toString(
const AIDA::IHistogram1D* histo,
const std::string& ID,
const std::string&
fmt )
const;
560 std::string
toString(
const AIDA::IProfile1D* histo,
const std::string& ID,
const std::string&
fmt )
const;
std::string m_format
the defautl format
STREAM & printMap(HISTO begin, HISTO end, const std::string &fmt1, const std::string &fmt2, STREAM &stream, TERMINATOR term)
Print the "associative sequence" (e.g.
void setHeader(std::string v)
set new header
AttribStringParser::Iterator begin(const AttribStringParser &parser)
void setFormat(std::string v)
set new format
AttribStringParser::Iterator end(const AttribStringParser &)
void setFooter(std::string v)
set new footer
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
const std::string & format() const
the format
std::string m_footer
the table footer
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
STREAM & printList(HISTO first, HISTO last, const std::string &fmt, STREAM &stream, TERMINATOR term)
print the simple sequence (list-like) of histograms as table
STREAM & printList(HISTO first, HISTO last, STREAM &stream, TERMINATOR term) const
print the simple sequence of histograms as table
std::string m_header
the table header
const std::string & header() const
the table header
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram
const std::string & footer() const
the table footer
GAUDI_API std::string format(const AIDA::IHistogram1D *histo, const std::string &fmt)
Make the string representation of the histogram according to the specified format.
STREAM & printMap(HISTO first, HISTO last, const std::string &fmt, const std::string &hval, STREAM &stream, TERMINATOR term) const
print as table the content of the accociative map (key->histogram) with the key, convertible to std::...