| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
Gaudi::Utils::Histos::HistoStrings Class Reference

Helper class to produce "good" dictionaries. More...

`#include <HistoStrings.h>`

## Static Public Member Functions
static std::string | toString (const TH1D &histo, const bool asXML=false)
| convert the histogram into the string
static std::string | toString (const TH2D &histo, const bool asXML=false)
| convert the histogram into the string
static std::string | toString (const AIDA::IHistogram1D &histo, const bool asXML=false)
| convert the histogram into the string
static std::string | toString (const AIDA::IHistogram2D &histo, const bool asXML=false)
| convert the histogram into the string
static StatusCode | fromString (TH1D &result, const std::string &input)
| parse the histogram from string
static StatusCode | fromString (AIDA::IHistogram1D &result, const std::string &input)
| parse the histogram from string
static StatusCode | fromString (TH2D &result, const std::string &input)
| parse the histogram from string
static StatusCode | fromString (AIDA::IHistogram2D &result, const std::string &input)
| parse the histogram from string
static std::string | toXml (const TH1D &histo)
static std::string | toXml (const TH2D &histo)
static std::string | toXml (const TH3D &histo)
static std::string | toXml (const TProfile &histo)
static std::string | toXml (const TProfile2D &histo)
static std::string | toXml (const AIDA::IHistogram1D &histo)
static std::string | toXml (const AIDA::IHistogram2D &histo)
static std::string | toXml (const AIDA::IHistogram3D &histo)
static std::string | toXml (const AIDA::IProfile1D &histo)
static std::string | toXml (const AIDA::IProfile2D &histo)
static StatusCode | fromXml (TH1D &result, const std::string &input)
static StatusCode | fromXml (TH2D &result, const std::string &input)
static StatusCode | fromXml (TH3D &result, const std::string &input)
static StatusCode | fromXml (TProfile &result, const std::string &input)
static StatusCode | fromXml (TProfile2D &result, const std::string &input)
static StatusCode | fromXml (AIDA::IHistogram1D &result, const std::string &input)
static StatusCode | fromXml (AIDA::IHistogram2D &result, const std::string &input)
static StatusCode | fromXml (AIDA::IHistogram3D &result, const std::string &input)
static StatusCode | fromXml (AIDA::IProfile1D &result, const std::string &input)
static StatusCode | fromXml (AIDA::IProfile2D &result, const std::string &input)

## Detailed Description

Helper class to produce "good" dictionaries.

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl

Date
  2009-09-26

Definition at line 52 of file HistoStrings.h.

## Member Function Documentation

StatusCode Gaudi::Utils::Histos::HistoStrings::fromString | ( | TH1D & | result,
|  | const std::string & | input
| ) |  |
| static

parse the histogram from string

Parameters

  result | (OUTPUT) the parsed histogram
  input | (INPUT) the input XML string

Returns
  status code

Definition at line 80 of file HistoStrings.cpp.

{ return Gaudi::Parsers::parse ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromString | ( | AIDA::IHistogram1D & | result,
|  | const std::string & | input
| ) |  |
| static

parse the histogram from string

Parameters

  result | (OUTPUT) the parsed histogram
  input | (INPUT) the input XML string

Returns
  status code

Definition at line 100 of file HistoStrings.cpp.

{ return Gaudi::Parsers::parse ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromString | ( | TH2D & | result,
|  | const std::string & | input
| ) |  |
| static

parse the histogram from string

Parameters

  result | (OUTPUT) the parsed histogram
  input | (INPUT) the input XML string

Returns
  status code

Definition at line 90 of file HistoStrings.cpp.

{ return Gaudi::Parsers::parse ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromString | ( | AIDA::IHistogram2D & | result,
|  | const std::string & | input
| ) |  |
| static

parse the histogram from string

Parameters

  result | (OUTPUT) the parsed histogram
  input | (INPUT) the input XML string

Returns
  status code

Definition at line 110 of file HistoStrings.cpp.

{ return Gaudi::Parsers::parse ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | TH1D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 155 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | TH2D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 158 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | TH3D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 161 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | TProfile & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 164 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | TProfile2D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 167 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | AIDA::IHistogram1D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 171 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | AIDA::IHistogram2D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 174 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | AIDA::IHistogram3D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 177 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | AIDA::IProfile1D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 180 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

StatusCode Gaudi::Utils::Histos::HistoStrings::fromXml | ( | AIDA::IProfile2D & | result,
|  | const std::string & | input
| ) |  |
| static

Definition at line 183 of file HistoStrings.cpp.

{ return _fromXml ( result , input ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toString | ( | const TH1D & | histo,
|  | const bool | asXML = `false`
| ) |  |
| static

convert the histogram into the string

Parameters

  histo | (INPUT) the histogram to be streamed
  asXML | (INPUT) use XML-format

Returns
  the string representation of the histogram

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl

Date
  2009-09-26

Definition at line 30 of file HistoStrings.cpp.

{ return Gaudi::Utils::toString ( histo , asXML ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toString | ( | const TH2D & | histo,
|  | const bool | asXML = `false`
| ) |  |
| static

convert the histogram into the string

Parameters

  histo | (INPUT) the histogram to be streamed
  asXML | (INPUT) use XML-format

Returns
  the string representation of the histogram

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl

Date
  2009-09-26

Definition at line 43 of file HistoStrings.cpp.

{ return Gaudi::Utils::toString ( histo , asXML ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toString | ( | const AIDA::IHistogram1D & | histo,
|  | const bool | asXML = `false`
| ) |  |
| static

convert the histogram into the string

Parameters

  histo | (INPUT) the histogram to be streamed
  asXML | (INPUT) use XML-format

Returns
  the string representation of the histogram

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl

Date
  2009-09-26

Definition at line 56 of file HistoStrings.cpp.

{ return Gaudi::Utils::toString ( histo , asXML ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toString | ( | const AIDA::IHistogram2D & | histo,
|  | const bool | asXML = `false`
| ) |  |
| static

convert the histogram into the string

Parameters

  histo | (INPUT) the histogram to be streamed
  asXML | (INPUT) use XML-format

Returns
  the string representation of the histogram

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl

Date
  2009-09-26

Definition at line 69 of file HistoStrings.cpp.

{ return Gaudi::Utils::toString ( histo , asXML ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const TH1D & | histo | ) |
| static

Definition at line 133 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const TH2D & | histo | ) |
| static

Definition at line 135 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const TH3D & | histo | ) |
| static

Definition at line 137 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const TProfile & | histo | ) |
| static

Definition at line 139 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const TProfile2D & | histo | ) |
| static

Definition at line 141 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const AIDA::IHistogram1D & | histo | ) |
| static

Definition at line 144 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const AIDA::IHistogram2D & | histo | ) |
| static

Definition at line 146 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const AIDA::IHistogram3D & | histo | ) |
| static

Definition at line 148 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const AIDA::IProfile1D & | histo | ) |
| static

Definition at line 150 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

std::string Gaudi::Utils::Histos::HistoStrings::toXml | ( | const AIDA::IProfile2D & | histo | ) |
| static

Definition at line 152 of file HistoStrings.cpp.

{ return _toXml ( histo ) ; }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiUtils/GaudiUtils/HistoStrings.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiUtils/src/Lib/HistoStrings.cpp