| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 2010

# HistoTableFormat.cpp File Reference

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

`#include <string>`
`#include <cmath>`
`#include <vector>`
`#include "GaudiKernel/Kernel.h"`
`#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.

## Defines
#define | class class GAUDI_API
| : AIDA interfaces visibility
## Functions
GAUDI_API std::string | Gaudi::Utils::Histos::Formats::format (const int ID=Default)
| get the format by enum
GAUDI_API std::string | Gaudi::Utils::Histos::Formats::header (const int ID=Default)
| get the recommended header by enum
GAUDI_API std::string | Gaudi::Utils::Histos::path (const AIDA::IBaseHistogram *aida)
| get the path in THS for AIDA histogram
GAUDI_API 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.
GAUDI_API 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
GAUDI_API 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_histoFormatStat1
| The statisical format : entries, mean+-, rms+-, skewness+- and kurtosis+-.
const std::string | s_histoFormatShapeOnly
| The compact statisical format for "shape-only" variables : mean, rms, skewness and kurtosis, underflow & overflow fractions.
const std::string | s_histoFormatShape
| The compact statisical format for "shape-only" variables : mean, rms, skewness and kurtosis, underflow & overflow fractions and their errors.
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_histoFormatFullStat
| FULL stat.
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_histoFormatStat1Header
| The table header, suitable for usage with "Stat1"-format.
const std::string | s_histoFormatShapeOnlyHeader
| The table header, suitable for usage with "ShapeOnly"-format.
const std::string | s_histoFormatShapeHeader
| The table header, suitable for usage with "Shape"-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.
const std::string | s_histoFormatFullStatHeader
| The table header, suitable for usage with "FullStat"-format.

## 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.

## Define Documentation

#define class class GAUDI_API

: AIDA interfaces visibility

Definition at line 15 of file HistoTableFormat.cpp.

## 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 86 of file HistoTableFormat.cpp.

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 128 of file HistoTableFormat.cpp.

const std::string s_histoFormatFullStat`[static]`

Initial value:

        "| %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 stat.

Definition at line 89 of file HistoTableFormat.cpp.

const std::string s_histoFormatFullStatHeader`[static]`

Initial value:

        "|    #    |Udflw/Ovflw|    nEff  | Sum      |     Mean+-Error    |      RMS+-Error    | Skewness+-Error    | Kurtosis+-Error    |"

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

Definition at line 132 of file HistoTableFormat.cpp.

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 75 of file HistoTableFormat.cpp.

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

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

Definition at line 118 of file HistoTableFormat.cpp.

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 71 of file HistoTableFormat.cpp.

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

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

Definition at line 115 of file HistoTableFormat.cpp.

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 79 of file HistoTableFormat.cpp.

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

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

Definition at line 121 of file HistoTableFormat.cpp.

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

Path-title printout : path and title.

Definition at line 83 of file HistoTableFormat.cpp.

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 124 of file HistoTableFormat.cpp.

const std::string s_histoFormatShape`[static]`

Initial value:

      "|%8$9.3g+-%9$-9.3g|%10$9.3g+-%11$-9.3g|%12$9.3g+-%13$-9.3g|%14$9.3g+-%15$-9.3g|%19$9.3g+-%20$-9.3g|%21$9.3g+-%22$-9.3g|"

The compact statisical format for "shape-only" variables : mean, rms, skewness and kurtosis, underflow & overflow fractions and their errors.

Definition at line 67 of file HistoTableFormat.cpp.

const std::string s_histoFormatShapeHeader`[static]`

Initial value:

      "|        Mean        |         RMS        |      Skewness      |     Kurtosis       |    Underflow [%]   |    Overflow [%]    |"

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

Definition at line 111 of file HistoTableFormat.cpp.

const std::string s_histoFormatShapeOnly`[static]`

Initial value:

      "|%8$11.5g |%10$11.5g |%12$11.5g |%14$11.5g |%19$11.5g/%21$-11.5g|"

The compact statisical format for "shape-only" variables : mean, rms, skewness and kurtosis, underflow & overflow fractions.

Definition at line 60 of file HistoTableFormat.cpp.

const std::string s_histoFormatShapeOnlyHeader`[static]`

Initial value:

      "|     Mean   |    RMS     |  Skewness  |  Kurtosis  | Underflow%/Overflow%  |"

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

Definition at line 107 of file HistoTableFormat.cpp.

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 46 of file HistoTableFormat.cpp.

const std::string s_histoFormatStat1`[static]`

Initial value:

        "| %3$=7d |%8$9.3g+-%9$-9.3g|%10$9.3g+-%11$-9.3g|%12$9.3g+-%13$-9.3g|%14$9.3g+-%15$-9.3g|"

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

Definition at line 54 of file HistoTableFormat.cpp.

const std::string s_histoFormatStat1Header`[static]`

Initial value:

        "|    #    |     Mean+-Error    |      RMS+-Error    | Skewness+-Error    | Kurtosis+-Error    |"

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

Definition at line 103 of file HistoTableFormat.cpp.

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 95 of file HistoTableFormat.cpp.

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 50 of file HistoTableFormat.cpp.

const std::string s_histoFormatStatOnlyHeader`[static]`

Initial value:

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

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

Definition at line 99 of file HistoTableFormat.cpp.