Simple class for the customizeble printout of the histogram tables.
More...
#include <GaudiUtils/HistoTableFormat.h>
|
| | Table (const int ID=0) |
| | constructor from enum
|
| |
| | Table (const std::string &format, const std::string &header="", const std::string &footer="") |
| | Constructor from the format, header and footer.
|
| |
| template<class HISTO , class STREAM , class TERMINATOR > |
| STREAM & | printList (HISTO first, HISTO last, STREAM &stream, TERMINATOR term) const |
| | print the simple sequence of histograms as table
|
| |
| template<class HISTO , class STREAM , class TERMINATOR > |
| 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::string
|
| |
| const std::string & | header () const |
| | the table header
|
| |
| const std::string & | footer () const |
| | the table footer
|
| |
| const std::string & | format () const |
| | the format
|
| |
| void | setHeader (const std::string &v) |
| | set new header
|
| |
| void | setFooter (const std::string &v) |
| | set new footer
|
| |
| void | setFormat (const std::string &v) |
| | set new format
|
| |
| std::string | toString (const AIDA::IHistogram1D *histo) const |
| | make the string representation according to the default format
|
| |
| std::string | toString (const AIDA::IHistogram1D *histo, const std::string &ID, const std::string &fmt) const |
| | format a full row in table, including ID, label, path or any other "extra" identifier
|
| |
Simple class for the customizeble printout of the histogram tables.
- Author
- Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2007-08-07
Definition at line 411 of file HistoTableFormat.h.
| Gaudi::Utils::Histos::Table::Table |
( |
const int |
ID = 0 | ) |
|
| const std::string& Gaudi::Utils::Histos::Table::footer |
( |
| ) |
const |
|
inline |
| const std::string& Gaudi::Utils::Histos::Table::format |
( |
| ) |
const |
|
inline |
| const std::string& Gaudi::Utils::Histos::Table::header |
( |
| ) |
const |
|
inline |
template<class HISTO , class STREAM , class TERMINATOR >
| STREAM& Gaudi::Utils::Histos::Table::printList |
( |
HISTO |
first, |
|
|
HISTO |
last, |
|
|
STREAM & |
stream, |
|
|
TERMINATOR |
term |
|
) |
| const |
|
inline |
print the simple sequence of histograms as table
- Parameters
-
| first | begin-iterator for the sequence |
| last | end-iterator for the sequence |
| stream | the stream to be used for printout |
| term | the terminmator for the stream |
Definition at line 431 of file HistoTableFormat.h.
template<class HISTO , class STREAM , class TERMINATOR >
| STREAM& Gaudi::Utils::Histos::Table::printMap |
( |
HISTO |
first, |
|
|
HISTO |
last, |
|
|
const std::string & |
fmt, |
|
|
const std::string & |
hval, |
|
|
STREAM & |
stream, |
|
|
TERMINATOR |
term |
|
) |
| const |
|
inline |
print as table the content of the accociative map (key->histogram) with the key, convertible to std::string
The default format is used for histogram prinout
- Parameters
-
| first | 'begin'-iterator for the mapping sequence |
| last | 'end'-iterator for the mapping sequence |
| fmt | 'short' format for the table printout |
| hval | the name of the "key"-column |
| stream | the stream for printout |
| term | stream terminator |
Definition at line 457 of file HistoTableFormat.h.
{
if ( !hval.empty() || !
header().empty() )
( first , last , fmt ,
format() , stream , term ) ;
}
| void Gaudi::Utils::Histos::Table::setFooter |
( |
const std::string & |
v | ) |
|
|
inline |
| void Gaudi::Utils::Histos::Table::setFormat |
( |
const std::string & |
v | ) |
|
|
inline |
| void Gaudi::Utils::Histos::Table::setHeader |
( |
const std::string & |
v | ) |
|
|
inline |
make the string representation according to the default format
Definition at line 308 of file HistoTableFormat.cpp.
format a full row in table, including ID, label, path or any other "extra" identifier
using namespace Gaudi::Utils::Histos ;
const Table& table = ... ;
const AIDA::IHistogram1D* histo = ... ;
info () << table.toString ( "My Histo" , histo , fmt ) ;
- Parameters
-
| histo | pointer to the histogram |
| ID | historgam ID, title, label or other extra infomration |
| fmt | "short" format used for the table |
- Returns
- formatted row
Definition at line 316 of file HistoTableFormat.cpp.
The documentation for this class was generated from the following files: