| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

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

- Search for |

- File List
- File Members

# HistoTableFormat.cpp File Reference

## Detailed Description

Implementation file for class Gaudi::Utils::HistoTableFormat.

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2007-08-07

Definition in file HistoTableFormat.cpp.

`#include <string>`
`#include <cmath>`
`#include "AIDA/IHistogram1D.h"`
`#include "AIDA/IAxis.h"`
`#include "GaudiKernel/DataObject.h"`
`#include "GaudiKernel/IRegistry.h"`
`#include "GaudiUtils/HistoStats.h"`
`#include "GaudiUtils/HistoTableFormat.h"`
`#include "boost/format.hpp"`

Include dependency graph for HistoTableFormat.cpp:

Go to the source code of this file.

## Functions
std::string | Gaudi::Utils::Histos::Formats::format (const int ID)
| get the format by enum
std::string | Gaudi::Utils::Histos::Formats::header (const int ID)
| get the recommended header by enum
std::string | Gaudi::Utils::Histos::path (const AIDA::IBaseHistogram *aida)
| get the path in THS for AIDA histogram
std::string | Gaudi::Utils::Histos::format (const AIDA::IHistogram1D *histo, const std::string &fmt)
| Make the string representation of the historgam according to the specified format.
std::string | Gaudi::Utils::Histos::format (const AIDA::IHistogram1D *histo, const std::string &ID, const std::string &fmt1, const std::string &fmt2)
| format a full row in table, including ID, label, path or any other "extra" identifier in string form
std::string | Gaudi::Utils::Histos::format (const std::string &val1, const std::string &val2, const std::string &fmt)
| helper method to merge the headers for short format table
## Variables
const std::string | s_histoFormatStat
| The base statisical format : title, entries, mean, rms, skewness and kurtosis.
const std::string | s_histoFormatStatOnly
| The compact statisical format : entries, mean, rms, skewness and kurtosis.
const std::string | s_histoFormatLineTitle
| The line printout (similar to Matt's requestt): title, mean, rms, skewnes and kurtosis.
const std::string | s_histoFormatLineOnly
| The line printout (similar to Matt's requiest): mean, rms, skewnes and kurtosis.
const std::string | s_histoFormatOld
| "Old"-format: title, int, ent , mean, rms
const std::string | s_histoFormatPathTitle = "| %1$-45.45s | %2$-45.45s | "
| Path-title printout : path and title.
const std::string | s_histoFormatFull
| FULL format, with printout of all (15) predefined fields.
const std::string | s_histoFormatStatHeader
| The table header, suitable for usage with "Stat"-format.
const std::string | s_histoFormatStatOnlyHeader
| The table header, suitable for usage with "StatOnly"-format.
const std::string | s_histoFormatLineTitleHeader = " Title "
| The table header, suitable for usage with "LineTitle"-format.
const std::string | s_histoFormatLineOnlyHeader = ""
| The table header, suitable for usage with "LineOnly"-format.
const std::string | s_histoFormatOldHeader = ""
| The table header, suitable for usage with "Old"-format.
const std::string | s_histoFormatPathTitleHeader
| The table header, suitable for usage with "PathTitle"-format.
const std::string | s_histoFormatFullHeader
| The table header, suitable for usage with "Full"-format.

## Variable Documentation

const std::string s_histoFormatFull`[static]`

Initial value:

        "| %1$-45.45s | %2$-45.45s | %3$=7d |%4$5d/%5$-5d|%6$9.3g | %7$-9.3g|%8$9.3g+-%9$-9.3g|%10$9.3g+-%11$-9.3g|%12$9.3g+-%13$-9.3g|%14$9.3g+-%15$-9.3g|"

FULL format, with printout of all (15) predefined fields.

Definition at line 64 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatFullHeader`[static]`

Initial value:

        "| Path in Histogram Data Store   |  Title                         |    #    |Udflw/Ovflw|    nEff  | Sum      |     Mean+-Error    |      RMS+-Error    | Skewness+-Error    | Kurtosis+-Error    |"

The table header, suitable for usage with "Full"-format.

Definition at line 91 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().

const std::string s_histoFormatLineOnly`[static]`

Initial value:

        " mean/sigma/skew/kurtosis = %8$10.4g/%10$10.4g/%12$10.4g/%14$10.4g"

The line printout (similar to Matt's requiest): mean, rms, skewnes and kurtosis.

Definition at line 53 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatLineOnlyHeader = ""`[static]`

The table header, suitable for usage with "LineOnly"-format.

Definition at line 81 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().

const std::string s_histoFormatLineTitle`[static]`

Initial value:

        " %2$-45.45s mean/sigma/skew/kurtosis = %8$10.4g/%10$10.4g/%12$10.4g/%14$10.4g"

The line printout (similar to Matt's requestt): title, mean, rms, skewnes and kurtosis.

Definition at line 49 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatLineTitleHeader = " Title "`[static]`

The table header, suitable for usage with "LineTitle"-format.

Definition at line 78 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().

const std::string s_histoFormatOld`[static]`

Initial value:

        " %2$-45.45s    Ents/All=%7$5s/%3$5s<X>/sX=%8$.5g/%10$-.5g"

"Old"-format: title, int, ent , mean, rms

Definition at line 57 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatOldHeader = ""`[static]`

The table header, suitable for usage with "Old"-format.

Definition at line 84 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().

const std::string s_histoFormatPathTitle = "| %1$-45.45s | %2$-45.45s | "`[static]`

Path-title printout : path and title.

Definition at line 61 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatPathTitleHeader`[static]`

Initial value:

        "| Path in Histogram Data Store   |  Title                         | "

The table header, suitable for usage with "PathTitle"-format.

Definition at line 87 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().

const std::string s_histoFormatStat`[static]`

Initial value:

        "| %2$-45.45s | %3$=7d |%8$11.5g | %10$-11.5g|%12$11.5g |%14$11.5g |"

The base statisical format : title, entries, mean, rms, skewness and kurtosis.

Definition at line 41 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatStatHeader`[static]`

Initial value:

        "|   Title                                       |    #    |     Mean   |    RMS     |  Skewness  |  Kurtosis  |"

The table header, suitable for usage with "Stat"-format.

Definition at line 70 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().

const std::string s_histoFormatStatOnly`[static]`

Initial value:

        "| %3$=7d |%8$11.5g | %10$-11.5g|%12$11.5g |%14$11.5g |"

The compact statisical format : entries, mean, rms, skewness and kurtosis.

Definition at line 45 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::format().

const std::string s_histoFormatStatOnlyHeader`[static]`

Initial value:

        "|    #    |     Mean   |    RMS     |  Skewness  |  Kurtosis  |"

The table header, suitable for usage with "StatOnly"-format.

Definition at line 74 of file HistoTableFormat.cpp.

Referenced by Gaudi::Utils::Histos::Formats::header().