The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Utils::Histos::HistoStrings Class Reference

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

#include </builds/gaudi/Gaudi/GaudiUtils/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
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 57 of file HistoStrings.h.

Member Function Documentation

◆ fromString() [1/4]

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

105 {
106 return Gaudi::Parsers::parse( result, input );
107}
StatusCode parse(GaudiUtils::HashMap< K, V > &result, std::string_view input)
Basic parser for the types of HashMap used in DODBasicMapper.

◆ fromString() [2/4]

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

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

◆ fromString() [3/4]

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

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

◆ fromString() [4/4]

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

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

◆ fromXml() [1/10]

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

Definition at line 163 of file HistoStrings.cpp.

163 {
164 return _fromXml( result, input );
165}

◆ fromXml() [2/10]

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

Definition at line 166 of file HistoStrings.cpp.

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

◆ fromXml() [3/10]

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

Definition at line 169 of file HistoStrings.cpp.

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

◆ fromXml() [4/10]

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

Definition at line 172 of file HistoStrings.cpp.

172 {
173 return _fromXml( result, input );
174}

◆ fromXml() [5/10]

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

Definition at line 175 of file HistoStrings.cpp.

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

◆ fromXml() [6/10]

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

Definition at line 147 of file HistoStrings.cpp.

147 {
148 return _fromXml( result, input );
149}

◆ fromXml() [7/10]

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

Definition at line 150 of file HistoStrings.cpp.

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

◆ fromXml() [8/10]

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

Definition at line 153 of file HistoStrings.cpp.

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

◆ fromXml() [9/10]

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

Definition at line 156 of file HistoStrings.cpp.

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

◆ fromXml() [10/10]

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

Definition at line 159 of file HistoStrings.cpp.

159 {
160 return _fromXml( result, input );
161}

◆ toString() [1/4]

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

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

◆ toString() [2/4]

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

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

◆ toString() [3/4]

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

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

◆ toString() [4/4]

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

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

◆ toXml() [1/10]

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

Definition at line 141 of file HistoStrings.cpp.

141{ return _toXml( histo ); }

◆ toXml() [2/10]

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

Definition at line 142 of file HistoStrings.cpp.

142{ return _toXml( histo ); }

◆ toXml() [3/10]

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

Definition at line 143 of file HistoStrings.cpp.

143{ return _toXml( histo ); }

◆ toXml() [4/10]

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

Definition at line 144 of file HistoStrings.cpp.

144{ return _toXml( histo ); }

◆ toXml() [5/10]

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

Definition at line 145 of file HistoStrings.cpp.

145{ return _toXml( histo ); }

◆ toXml() [6/10]

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

Definition at line 135 of file HistoStrings.cpp.

135{ return _toXml( histo ); }

◆ toXml() [7/10]

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

Definition at line 136 of file HistoStrings.cpp.

136{ return _toXml( histo ); }

◆ toXml() [8/10]

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

Definition at line 137 of file HistoStrings.cpp.

137{ return _toXml( histo ); }

◆ toXml() [9/10]

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

Definition at line 138 of file HistoStrings.cpp.

138{ return _toXml( histo ); }

◆ toXml() [10/10]

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

Definition at line 139 of file HistoStrings.cpp.

139{ return _toXml( histo ); }

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