| The Gaudi Framework v28r2p1 (f1a77ff4)

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

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

Static Public Member Functions | List of all members
Gaudi::Utils::Histos::HistoStrings Class Reference

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

`#include <GaudiUtils/HistoStrings.h>`

## Static Public Member Functions
static std::string | toString (const TH1D &histo, const bool asXML=false)
| convert the histogram into the string More...
static std::string | toString (const TH2D &histo, const bool asXML=false)
| convert the histogram into the string More...
static std::string | toString (const AIDA::IHistogram1D &histo, const bool asXML=false)
| convert the histogram into the string More...
static std::string | toString (const AIDA::IHistogram2D &histo, const bool asXML=false)
| convert the histogram into the string More...
static StatusCode | fromString (TH1D &result, const std::string &input)
| parse the histogram from string More...
static StatusCode | fromString (AIDA::IHistogram1D &result, const std::string &input)
| parse the histogram from string More...
static StatusCode | fromString (TH2D &result, const std::string &input)
| parse the histogram from string More...
static StatusCode | fromString (AIDA::IHistogram2D &result, const std::string &input)
| parse the histogram from string More...
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.

81 { return Gaudi::Parsers::parse ( result , input ) ; }
Gaudi::Parsers::parse
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
Definition: DODBasicMapper.cpp:11

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.

101 { return Gaudi::Parsers::parse ( result , input ) ; }
Gaudi::Parsers::parse
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
Definition: DODBasicMapper.cpp:11

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.

91 { return Gaudi::Parsers::parse ( result , input ) ; }
Gaudi::Parsers::parse
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
Definition: DODBasicMapper.cpp:11

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.

111 { return Gaudi::Parsers::parse ( result , input ) ; }
Gaudi::Parsers::parse
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
Definition: DODBasicMapper.cpp:11

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

Definition at line 155 of file HistoStrings.cpp.

156 { 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.

159 { 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.

162 { 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.

165 { 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.

168 { 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.

172 { 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.

175 { 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.

178 { 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.

181 { 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.

184 { 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.

32 { return Gaudi::Utils::toString ( histo , asXML ) ; }
Gaudi::Utils::toString
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Definition: ToStream.h:367

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.

45 { return Gaudi::Utils::toString ( histo , asXML ) ; }
Gaudi::Utils::toString
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Definition: ToStream.h:367

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.

58 { return Gaudi::Utils::toString ( histo , asXML ) ; }
Gaudi::Utils::toString
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Definition: ToStream.h:367

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.

71 { return Gaudi::Utils::toString ( histo , asXML ) ; }
Gaudi::Utils::toString
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Definition: ToStream.h:367

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

Definition at line 133 of file HistoStrings.cpp.

133 { return _toXml ( histo ) ; }

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

Definition at line 135 of file HistoStrings.cpp.

135 { return _toXml ( histo ) ; }

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

Definition at line 137 of file HistoStrings.cpp.

137 { return _toXml ( histo ) ; }

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

Definition at line 139 of file HistoStrings.cpp.

139 { return _toXml ( histo ) ; }

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

Definition at line 141 of file HistoStrings.cpp.

141 { return _toXml ( histo ) ; }

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

Definition at line 144 of file HistoStrings.cpp.

144 { return _toXml ( histo ) ; }

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

Definition at line 146 of file HistoStrings.cpp.

146 { return _toXml ( histo ) ; }

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

Definition at line 148 of file HistoStrings.cpp.

148 { return _toXml ( histo ) ; }

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

Definition at line 150 of file HistoStrings.cpp.

150 { return _toXml ( histo ) ; }

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

Definition at line 152 of file HistoStrings.cpp.

152 { return _toXml ( histo ) ; }

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

- GaudiUtils/GaudiUtils/HistoStrings.h
- GaudiUtils/src/Lib/HistoStrings.cpp