![]() |
The Gaudi Framework
v26r0
|
Collection of useful utilities for manipulations with AIDA hisgograms. More...
Namespaces | |
Formats | |
The 15 format fields are predefined now: | |
Classes | |
class | HistoStrings |
Helper class to produce "good" dictionaries. More... | |
class | Table |
Simple class for the customizeble printout of the histogram tables. More... | |
Typedefs | |
typedef std::vector< std::string > | Labels |
Typedef for a list of labels. More... | |
typedef std::pair< unsigned, std::string > | BinLabel |
Typedef for a bin number and its associated label. More... | |
typedef std::vector< BinLabel > | BinLabels |
Typedef for a list of bin numbers and their associated label. More... | |
Functions | |
GAUDI_API void | fill (AIDA::IHistogram1D *histo, const double value, const double weight=1.0) |
simple function to fill AIDA::IHistogram1D objects More... | |
GAUDI_API void | fill (AIDA::IHistogram2D *histo, const double valueX, const double valueY, const double weight=1.0) |
simple function to fill AIDA::IHistogram2D objects More... | |
GAUDI_API void | fill (AIDA::IHistogram3D *histo, const double valueX, const double valueY, const double valueZ, const double weight=1.0) |
simple function to fill AIDA::IHistogram3D objects More... | |
GAUDI_API void | fill (AIDA::IProfile1D *histo, const double valueX, const double valueY, const double weight=1.0) |
simple function to fill AIDA::IProfile1D objects More... | |
GAUDI_API void | fill (AIDA::IProfile2D *histo, const double valueX, const double valueY, const double valueZ, const double weight=1.0) |
simple function to fill AIDA::IProfile2D objects More... | |
GAUDI_API std::string | htitle (const AIDA::IBaseHistogram *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IHistogram *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IHistogram1D *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IHistogram2D *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IHistogram3D *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IProfile *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IProfile1D *histo, const std::string &title="") |
get the title More... | |
GAUDI_API std::string | htitle (const AIDA::IProfile2D *histo, const std::string &title="") |
get the title More... | |
GAUDI_API AIDA::IBaseHistogram * | toBase (AIDA::IHistogram1D *histo) |
GAUDI_API AIDA::IBaseHistogram * | toBase (AIDA::IHistogram2D *histo) |
GAUDI_API AIDA::IBaseHistogram * | toBase (AIDA::IHistogram3D *histo) |
GAUDI_API AIDA::IBaseHistogram * | toBase (AIDA::IProfile1D *histo) |
GAUDI_API AIDA::IBaseHistogram * | toBase (AIDA::IProfile2D *histo) |
GAUDI_API std::ostream & | histoDump_ (const AIDA::IHistogram1D *histo, std::ostream &stream, const std::size_t width=80, const std::size_t height=50, const bool errors=false) |
dump the text representation of the histogram More... | |
GAUDI_API std::string | histoDump (const AIDA::IHistogram1D *histo, const std::size_t width=80, const std::size_t height=50, const bool errors=false) |
dump the text representation of the histogram More... | |
GAUDI_API std::ostream & | histoDump_ (const AIDA::IProfile1D *histo, std::ostream &stream, const std::size_t width=80, const std::size_t height=50, const bool spread=true) |
dump the text representation of 1D-profile More... | |
GAUDI_API std::string | histoDump (const AIDA::IProfile1D *histo, const std::size_t width=80, const std::size_t height=50, const bool spread=true) |
dump the text representation of the 1D-profile More... | |
GAUDI_API std::ostream & | histoDump_ (const TProfile *histo, std::ostream &stream, const std::size_t width=80, const std::size_t height=50) |
dump the text representation of the Profile More... | |
GAUDI_API std::string | histoDump (const TProfile *histo, const std::size_t width=80, const std::size_t height=50) |
dump the text representation of the histogram More... | |
GAUDI_API std::ostream & | histoDump_ (const TH1 *histo, std::ostream &stream, const std::size_t width=80, const std::size_t height=50, const bool errors=false) |
dump the text representation of the histogram More... | |
GAUDI_API std::string | histoDump (const TH1 *histo, const std::size_t width=80, const std::size_t height=50, const bool errors=false) |
dump the text representation of the histogram More... | |
GAUDI_API bool | setBinLabels (AIDA::IHistogram1D *hist, const Labels &labels) |
Set the Bin labels for a given 1D histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IHistogram1D *hist, const BinLabels &labels) |
Set the Bin labels for a given 1D histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IProfile1D *hist, const Labels &labels) |
Set the Bin labels for a given 1D profile histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IProfile1D *hist, const BinLabels &labels) |
Set the Bin labels for a given 1D profile histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IHistogram2D *hist, const Labels &xlabels, const Labels &ylabels) |
Set the Bin labels for a given 2D histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IHistogram2D *hist, const BinLabels &xlabels, const BinLabels &ylabels) |
Set the Bin labels for a given 2D histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IProfile2D *hist, const Labels &xlabels, const Labels &ylabels) |
Set the Bin labels for a given 2D profile histogram. More... | |
GAUDI_API bool | setBinLabels (AIDA::IProfile2D *hist, const BinLabels &xlabels, const BinLabels &ylabels) |
Set the Bin labels for a given 2D profile histogram. More... | |
GAUDI_API bool | setAxisLabels (AIDA::IHistogram1D *hist, const std::string &xAxis, const std::string &yAxis) |
Set the axis labels for the given 1D histogram. More... | |
GAUDI_API bool | setAxisLabels (AIDA::IProfile1D *hist, const std::string &xAxis, const std::string &yAxis) |
Set the axis labels for the given 1D profile histogram. More... | |
GAUDI_API bool | setAxisLabels (AIDA::IHistogram2D *hist, const std::string &xAxis, const std::string &yAxis) |
Set the axis labels for the given 2D histogram. More... | |
GAUDI_API bool | setAxisLabels (AIDA::IProfile2D *hist, const std::string &xAxis, const std::string &yAxis) |
Set the axis labels for the given 2D profile histogram. More... | |
GAUDI_API std::string | path (const AIDA::IBaseHistogram *aida) |
get the path in THS for AIDA histogram More... | |
GAUDI_API std::string | format (const AIDA::IHistogram1D *histo, const std::string &fmt) |
Make the string representation of the historgam according to the specified format. More... | |
GAUDI_API std::string | 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 More... | |
template<class HISTO , class STREAM , class TERMINATOR > | |
STREAM & | printList (HISTO first, HISTO last, const std::string &fmt, STREAM &stream, TERMINATOR term) |
print the simple sequence (list-like) of histograms as table More... | |
template<class LIST , class STREAM , class TERMINATOR > | |
STREAM & | printList (const LIST &histos, const std::string &fmt, STREAM &stream, TERMINATOR term) |
print the simple container of histograms as table More... | |
template<class HISTO , class STREAM , class TERMINATOR > | |
STREAM & | printMap (HISTO begin, HISTO end, const std::string &fmt1, const std::string &fmt2, STREAM &stream, TERMINATOR term) |
Print the "associative sequence" (e.g. More... | |
template<class MAP , class STREAM , class TERMINATOR > | |
STREAM & | printMap (const MAP &histos, const std::string &fmt1, const std::string &fmt2, STREAM &stream, TERMINATOR term) |
Print the "associative sequence" (e.g. More... | |
GAUDI_API std::string | format (const std::string &val1, const std::string &val2, const std::string &fmt) |
helper method to merge the headers for short format table More... | |
GAUDI_API std::ostream & | toXml (const TH1D &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TH2D &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TH3D &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TProfile &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TProfile2D &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const AIDA::IHistogram1D &histo, std::ostream &stream) |
stream the AIDA histogram into the output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const AIDA::IHistogram2D &histo, std::ostream &stream) |
stream the AIDA histogram into the output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const AIDA::IHistogram3D &histo, std::ostream &stream) |
stream the AIDA histogram into the output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const AIDA::IProfile1D &histo, std::ostream &stream) |
stream the AIDA histogram into the output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TH1F &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TH2F &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const TH3F &histo, std::ostream &stream) |
stream the ROOT histogram into output stream as XML More... | |
GAUDI_API std::ostream & | toXml (const AIDA::IProfile2D &histo, std::ostream &stream) |
stream the AIDA histogram into the output stream as XML More... | |
GAUDI_API StatusCode | fromXml (TH1D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH2D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH3D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TProfile &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TProfile2D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH1F &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH2F &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH3F &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH1D *&result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH2D *&result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TH3D *&result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TProfile *&result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (TProfile2D *&result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (AIDA::IHistogram1D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (AIDA::IHistogram2D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (AIDA::IHistogram3D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (AIDA::IProfile1D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
GAUDI_API StatusCode | fromXml (AIDA::IProfile2D &result, const std::string &input) |
parse the histogram from standard ROOT XML More... | |
Collection of useful utilities for manipulations with AIDA hisgograms.
typedef std::pair<unsigned,std::string> Gaudi::Utils::Histos::BinLabel |
Typedef for a bin number and its associated label.
Definition at line 30 of file HistoLabels.h.
typedef std::vector<BinLabel> Gaudi::Utils::Histos::BinLabels |
Typedef for a list of bin numbers and their associated label.
Definition at line 32 of file HistoLabels.h.
typedef std::vector<std::string> Gaudi::Utils::Histos::Labels |
Typedef for a list of labels.
Definition at line 28 of file HistoLabels.h.
void Gaudi::Utils::Histos::fill | ( | AIDA::IHistogram1D * | histo, |
const double | value, | ||
const double | weight = 1.0 |
||
) |
void Gaudi::Utils::Histos::fill | ( | AIDA::IHistogram2D * | histo, |
const double | valueX, | ||
const double | valueY, | ||
const double | weight = 1.0 |
||
) |
simple function to fill AIDA::IHistogram2D objects
histo | pointer to the histogram |
valueX | value to be added to the histogram |
valueY | value to be added to the histogram |
weight | the "weight" assciated with this entry |
Definition at line 55 of file Fill.cpp.
void Gaudi::Utils::Histos::fill | ( | AIDA::IHistogram3D * | histo, |
const double | valueX, | ||
const double | valueY, | ||
const double | valueZ, | ||
const double | weight = 1.0 |
||
) |
simple function to fill AIDA::IHistogram3D objects
histo | pointer to the histogram |
valueX | value to be added to the histogram |
valueY | value to be added to the histogram |
valueZ | value to be added to the histogram |
weight | the "weight" assciated with this entry |
Definition at line 75 of file Fill.cpp.
void Gaudi::Utils::Histos::fill | ( | AIDA::IProfile1D * | histo, |
const double | valueX, | ||
const double | valueY, | ||
const double | weight = 1.0 |
||
) |
simple function to fill AIDA::IProfile1D objects
histo | pointer to the histogram |
valueX | value to be added to the histogram |
valueY | value to be added to the histogram |
weight | the "weight" assciated with this entry |
Definition at line 95 of file Fill.cpp.
void Gaudi::Utils::Histos::fill | ( | AIDA::IProfile2D * | histo, |
const double | valueX, | ||
const double | valueY, | ||
const double | valueZ, | ||
const double | weight = 1.0 |
||
) |
simple function to fill AIDA::IProfile2D objects
histo | pointer to the histogram |
valueX | value to be added to the histogram |
valueY | value to be added to the histogram |
valueZ | value to be added to the histogram |
weight | the "weight" assciated with this entry |
Definition at line 115 of file Fill.cpp.
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.
The method could be used to access/print various quantities
histo | reference to the histogram |
fmt | the printout format |
Definition at line 203 of file HistoTableFormat.cpp.
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
histo | pointer to the histogram |
ID | historgam ID, title, label or other extra information |
fmt1 | "short" format used for the table |
fmt2 | format used for the histogram printout |
Definition at line 252 of file HistoTableFormat.cpp.
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
Definition at line 272 of file HistoTableFormat.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH1D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 297 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH2D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 319 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH3D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 341 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TProfile & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 429 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TProfile2D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 451 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH1F & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 363 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH2F & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 385 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH3F & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 407 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH1D *& | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 475 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH2D *& | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 495 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TH3D *& | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 515 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TProfile *& | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 536 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | TProfile2D *& | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 556 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | AIDA::IHistogram1D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 576 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | AIDA::IHistogram2D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 591 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | AIDA::IHistogram3D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 606 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | AIDA::IProfile1D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 621 of file HistoXML.cpp.
StatusCode Gaudi::Utils::Histos::fromXml | ( | AIDA::IProfile2D & | result, |
const std::string & | input | ||
) |
parse the histogram from standard ROOT XML
result | (OUTPUT) the parsed histogram |
input | (INPUT) the input XML string |
Definition at line 636 of file HistoXML.cpp.
std::string Gaudi::Utils::Histos::histoDump | ( | const AIDA::IHistogram1D * | histo, |
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 , |
||
const bool | errors = false |
||
) |
dump the text representation of the histogram
histo | (INPUT) the histogram |
width | (INPUT) the maximal column width |
height | (INPUT) the proposed column height |
erorrs | (INPUT) print/plot errors |
Definition at line 710 of file HistoDump.cpp.
std::string Gaudi::Utils::Histos::histoDump | ( | const AIDA::IProfile1D * | histo, |
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 , |
||
const bool | spread = true |
||
) |
dump the text representation of the 1D-profile
histo | (INPUT) the histogram |
width | (INPUT) the maximal column width |
height | (INPUT) the proposed column height |
spread | (INPUT) print/plto spread vs rms |
Definition at line 807 of file HistoDump.cpp.
std::string Gaudi::Utils::Histos::histoDump | ( | const TProfile * | histo, |
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 |
||
) |
dump the text representation of the histogram
histo | (INPUT) the histogram |
width | (INPUT) the maximal column width |
height | (INPUT) the propsoed coulmn height |
erorrs | (INPUT) print/plot errors |
Definition at line 976 of file HistoDump.cpp.
std::string Gaudi::Utils::Histos::histoDump | ( | const TH1 * | histo, |
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 , |
||
const bool | errors = false |
||
) |
dump the text representation of the histogram
histo | (INPUT) the histogram |
width | (INPUT) the maximal column width |
height | (INPUT) the propsoed coulmn height |
erorrs | (INPUT) print/plot errors |
Definition at line 956 of file HistoDump.cpp.
std::ostream & Gaudi::Utils::Histos::histoDump_ | ( | const AIDA::IHistogram1D * | histo, |
std::ostream & | stream, | ||
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 , |
||
const bool | errors = false |
||
) |
dump the text representation of the histogram
histo | (INPUT) the histogram |
stream | (OUTUT) the stream |
width | (INPUT) the maximal column width |
height | (INPUT) the proposed column height |
errors | (INPUT) print/plot errors |
Definition at line 621 of file HistoDump.cpp.
std::ostream & Gaudi::Utils::Histos::histoDump_ | ( | const AIDA::IProfile1D * | histo, |
std::ostream & | stream, | ||
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 , |
||
const bool | spread = true |
||
) |
dump the text representation of 1D-profile
histo | (INPUT) the 1D-profile |
stream | (OUTUT) the stream |
width | (INPUT) the maximal column width |
height | (INPUT) the proposed column height |
spread | (INPUT) print/plot spread/rms ? |
Definition at line 732 of file HistoDump.cpp.
std::ostream & Gaudi::Utils::Histos::histoDump_ | ( | const TProfile * | histo, |
std::ostream & | stream, | ||
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 |
||
) |
dump the text representation of the Profile
histo | (INPUT) the histogram |
stream | (OUTUT) the stream |
width | (INPUT) the maximal column width |
height | (INPUT) the proposed coulmn height |
spread | (INPUT) print/plot rms versus erorr |
Definition at line 901 of file HistoDump.cpp.
std::ostream & Gaudi::Utils::Histos::histoDump_ | ( | const TH1 * | histo, |
std::ostream & | stream, | ||
const std::size_t | width = 80 , |
||
const std::size_t | height = 50 , |
||
const bool | errors = false |
||
) |
dump the text representation of the histogram
histo | (INPUT) the histogram |
stream | (OUTUT) the stream |
width | (INPUT) the maximal column width |
height | (INPUT) the proposed coulmn height |
errors | (INPUT) print/plot errors |
Definition at line 828 of file HistoDump.cpp.
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IBaseHistogram * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IHistogram * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IHistogram1D * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IHistogram2D * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IHistogram3D * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IProfile * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IProfile1D * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::htitle | ( | const AIDA::IProfile2D * | histo, |
const std::string & | title = "" |
||
) |
std::string Gaudi::Utils::Histos::path | ( | const AIDA::IBaseHistogram * | aida | ) |
get the path in THS for AIDA histogram
Definition at line 185 of file HistoTableFormat.cpp.
|
inline |
print the simple sequence (list-like) of histograms as table
first | begin-iterator for the sequence |
last | end-iterator for the sequence |
stream | the stream to be used for printout |
term | the terminmator for the stream |
fmt | the format to be used |
Definition at line 233 of file HistoTableFormat.h.
|
inline |
print the simple container of histograms as table
histos | the sequence of histograms |
stream | the stream to be used for printout |
term | the terminmator for the stream |
fmt | the format to be used |
Definition at line 269 of file HistoTableFormat.h.
|
inline |
Print the "associative sequence" (e.g.
part of std:map) of histograms as table:
Print only mean and rms:
begin | 'begin'-iterator for the mapping sequence |
end | 'end'-iterator for the mapping sequence |
fmt1 | 'short' format for the table printout |
fmt3 | format for the printout of the histogram |
stream | the stream for printout |
term | stream terminator |
Definition at line 324 of file HistoTableFormat.h.
|
inline |
Print the "associative sequence" (e.g.
part of std:map) of histograms as table:
Print only mean and rms:
begin | 'begin'-iterator for the mapping sequence |
end | 'end'-iterator for the mapping sequence |
fmt1 | 'short' format for the table printout |
fmt3 | format for the printout of the histogram |
stream | the stream for printout |
term | stream terminator |
Definition at line 385 of file HistoTableFormat.h.
bool Gaudi::Utils::Histos::setAxisLabels | ( | AIDA::IHistogram1D * | hist, |
const std::string & | xAxis, | ||
const std::string & | yAxis | ||
) |
Set the axis labels for the given 1D histogram.
hist | Pointer to the histogram |
xAxis | Label for the x axis |
yAxis | Label for the y axis |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 191 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setAxisLabels | ( | AIDA::IProfile1D * | hist, |
const std::string & | xAxis, | ||
const std::string & | yAxis | ||
) |
Set the axis labels for the given 1D profile histogram.
hist | Pointer to the histogram |
xAxis | Label for the x axis |
yAxis | Label for the y axis |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 198 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setAxisLabels | ( | AIDA::IHistogram2D * | hist, |
const std::string & | xAxis, | ||
const std::string & | yAxis | ||
) |
Set the axis labels for the given 2D histogram.
hist | Pointer to the histogram |
xAxis | Label for the x axis |
yAxis | Label for the y axis |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 205 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setAxisLabels | ( | AIDA::IProfile2D * | hist, |
const std::string & | xAxis, | ||
const std::string & | yAxis | ||
) |
Set the axis labels for the given 2D profile histogram.
hist | Pointer to the histogram |
xAxis | Label for the x axis |
yAxis | Label for the y axis |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 212 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IHistogram1D * | hist, |
const Labels & | labels | ||
) |
Set the Bin labels for a given 1D histogram.
The labels will be applied in the order they appear in the list, starting at the first bin. If the list of labels is too short, the later bins will be missing a label. If the list is too long, only the first N will be used, where N is the number of bins in the histogram
hist | Pointer to the histogram |
labels | The list of labels |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 111 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IHistogram1D * | hist, |
const BinLabels & | labels | ||
) |
Set the Bin labels for a given 1D histogram.
Each entry in 'labels' gives the bin number and its associated label
hist | Pointer to the histogram |
labels | The list of labels |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 99 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IProfile1D * | hist, |
const Labels & | labels | ||
) |
Set the Bin labels for a given 1D profile histogram.
The labels will be applied in the order they appear in the list, starting at the first bin. If the list of labels is too short, the later bins will be missing a label. If the list is too long, only the first N will be used, where N is the number of bins in the histogram
hist | Pointer to the histogram |
labels | The list of labels |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 117 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IProfile1D * | hist, |
const BinLabels & | labels | ||
) |
Set the Bin labels for a given 1D profile histogram.
Each entry in 'labels' gives the bin number and its associated label
hist | Pointer to the histogram |
labels | The list of bin numbers and the associated label |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 105 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IHistogram2D * | hist, |
const Labels & | xlabels, | ||
const Labels & | ylabels | ||
) |
Set the Bin labels for a given 2D histogram.
The labels will be applied in the order they appear in the lists, starting at the first bin. If the list of labels is too short, the later bins will be missing a label. If the list is too long, only the first N will be used, where N is the number of bins in the histogram
hist | Pointer to the histogram |
xlabels | The list of x labels |
ylabels | The list of y labels |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 123 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IHistogram2D * | hist, |
const BinLabels & | xlabels, | ||
const BinLabels & | ylabels | ||
) |
Set the Bin labels for a given 2D histogram.
Each entry in 'labels' lists gives the bin number and its associated label
hist | Pointer to the histogram |
xlabels | The list of x bin numbers and the associated label |
ylabels | The list of y bin numbers and the associated label |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 146 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IProfile2D * | hist, |
const Labels & | xlabels, | ||
const Labels & | ylabels | ||
) |
Set the Bin labels for a given 2D profile histogram.
The labels will be applied in the order they appear in the lists, starting at the first bin. If the list of labels is too short, the later bins will be missing a label. If the list is too long, only the first N will be used, where N is the number of bins in the histogram
hist | Pointer to the histogram |
xlabels | The list of x labels |
ylabels | The list of y labels |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 156 of file HistoLabels.cpp.
bool Gaudi::Utils::Histos::setBinLabels | ( | AIDA::IProfile2D * | hist, |
const BinLabels & | xlabels, | ||
const BinLabels & | ylabels | ||
) |
Set the Bin labels for a given 2D profile histogram.
Each entry in 'labels' lists gives the bin number and its associated label
hist | Pointer to the histogram |
xlabels | The list of x bin numbers and the associated label |
ylabels | The list of y bin numbers and the associated label |
TRUE | Labels were applied OK |
FALSE | Labels were NOT applied |
Definition at line 179 of file HistoLabels.cpp.
AIDA::IBaseHistogram * Gaudi::Utils::Histos::toBase | ( | AIDA::IHistogram1D * | histo | ) |
AIDA::IBaseHistogram * Gaudi::Utils::Histos::toBase | ( | AIDA::IHistogram2D * | histo | ) |
AIDA::IBaseHistogram * Gaudi::Utils::Histos::toBase | ( | AIDA::IHistogram3D * | histo | ) |
AIDA::IBaseHistogram * Gaudi::Utils::Histos::toBase | ( | AIDA::IProfile1D * | histo | ) |
AIDA::IBaseHistogram * Gaudi::Utils::Histos::toBase | ( | AIDA::IProfile2D * | histo | ) |
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TH1D & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 70 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TH2D & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 87 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TH3D & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 104 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TProfile & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 172 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TProfile2D & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 189 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const AIDA::IHistogram1D & | histo, |
std::ostream & | stream | ||
) |
stream the AIDA histogram into the output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 206 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const AIDA::IHistogram2D & | histo, |
std::ostream & | stream | ||
) |
stream the AIDA histogram into the output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 224 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const AIDA::IHistogram3D & | histo, |
std::ostream & | stream | ||
) |
stream the AIDA histogram into the output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 242 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const AIDA::IProfile1D & | histo, |
std::ostream & | stream | ||
) |
stream the AIDA histogram into the output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 260 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TH1F & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 121 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TH2F & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 138 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const TH3F & | histo, |
std::ostream & | stream | ||
) |
stream the ROOT histogram into output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 155 of file HistoXML.cpp.
std::ostream & Gaudi::Utils::Histos::toXml | ( | const AIDA::IProfile2D & | histo, |
std::ostream & | stream | ||
) |
stream the AIDA histogram into the output stream as XML
histo | (INPUT) the histogram to be streamed |
stream | (OUTPUT) the stream |
Definition at line 278 of file HistoXML.cpp.