| The Gaudi Framework v29r0 (ff2e7097)

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

80 {
81 return Gaudi::Parsers::parse( result, input );
82 }
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:13

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 101 of file HistoStrings.cpp.

102 {
103 return Gaudi::Parsers::parse( result, input );
104 }
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:13

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 {
92 return Gaudi::Parsers::parse( result, input );
93 }
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:13

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 112 of file HistoStrings.cpp.

113 {
114 return Gaudi::Parsers::parse( result, input );
115 }
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:13

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

Definition at line 148 of file HistoStrings.cpp.

149 {
150 return _fromXml( result, input );
151 }

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

Definition at line 152 of file HistoStrings.cpp.

153 {
154 return _fromXml( result, input );
155 }

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

Definition at line 156 of file HistoStrings.cpp.

157 {
158 return _fromXml( result, input );
159 }

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

Definition at line 160 of file HistoStrings.cpp.

161 {
162 return _fromXml( result, input );
163 }

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

Definition at line 164 of file HistoStrings.cpp.

165 {
166 return _fromXml( result, input );
167 }

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

Definition at line 169 of file HistoStrings.cpp.

170 {
171 return _fromXml( result, input );
172 }

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

Definition at line 173 of file HistoStrings.cpp.

174 {
175 return _fromXml( result, input );
176 }

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

Definition at line 177 of file HistoStrings.cpp.

178 {
179 return _fromXml( result, input );
180 }

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

Definition at line 181 of file HistoStrings.cpp.

182 {
183 return _fromXml( result, input );
184 }

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

Definition at line 185 of file HistoStrings.cpp.

186 {
187 return _fromXml( result, input );
188 }

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 29 of file HistoStrings.cpp.

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

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 42 of file HistoStrings.cpp.

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

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 55 of file HistoStrings.cpp.

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

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 68 of file HistoStrings.cpp.

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

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

Definition at line 136 of file HistoStrings.cpp.

136 { return _toXml( histo ); }

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

Definition at line 137 of file HistoStrings.cpp.

137 { return _toXml( histo ); }

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

Definition at line 138 of file HistoStrings.cpp.

138 { 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 140 of file HistoStrings.cpp.

140 { return _toXml( histo ); }

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

Definition at line 142 of file HistoStrings.cpp.

142 { return _toXml( histo ); }

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

Definition at line 143 of file HistoStrings.cpp.

143 { return _toXml( histo ); }

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

Definition at line 144 of file HistoStrings.cpp.

144 { return _toXml( histo ); }

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

Definition at line 145 of file HistoStrings.cpp.

145 { return _toXml( histo ); }

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

Definition at line 146 of file HistoStrings.cpp.

146 { return _toXml( histo ); }

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

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