![]() |
Reference Documentation |
#include <Translator.h>
Public Methods | |
Translator (void) | |
Translator (const Translator &) | |
~Translator (void) | |
const Translator & | operator= (const Translator &) |
void | noWarnings (const bool &=true) |
Toggle warning messages (default at construction is ON). | |
bool | setInputStream (AIDA_STD::istream &) |
Set the streams for reading and writing XML. Returns false if failed. | |
bool | setOutputStream (AIDA_STD::ostream &) |
bool | read (HistoParameters1D &) |
bool | read (HistoParameters2D &) |
bool | read (HistoParameters3D &) |
bool | write (const IHistogram1D &) |
Write histo in XML format into the internal buffer. Returns false if failed. | |
bool | write (const IHistogram2D &) |
bool | write (const IHistogram3D &) |
void | flush (void) |
Write all of the histos in the internal buffer onto the current stream. | |
Private Types | |
typedef AIDA_STD::vector< DataXML::DataObject >::const_iterator | ElementCIterator |
typedef AIDA_STD::vector< DataXML::DataObject >::iterator | ElementIterator |
Private Methods | |
template<class HistoType> bool | genericWrite (const HistoType &) |
void | removeOTree (void) |
bool | createNewOTree (void) |
void | appendHistoTypeElement (const ElementIterator &) |
bool | writeHistoElement (const IHistogram1D &, const ElementIterator &histoElement) |
bool | writeHistoElement (const IHistogram2D &, const ElementIterator &histoElement) |
bool | writeHistoElement (const IHistogram3D &, const ElementIterator &histoElement) |
template<class HistoType> bool | appendHisto (const HistoType &, const ElementIterator &parent) |
void | setTitle (const IHistogram &, const ElementIterator &histoElement) |
bool | setAxes (const IHistogram1D &, const ElementIterator &histoElement) |
bool | setAxes (const IHistogram2D &, const ElementIterator &histoElement) |
bool | setAxes (const IHistogram3D &, const ElementIterator &histoElement) |
bool | appendAxis (const ElementIterator &histoElement, const AIDA_STD::string &axisName, const IAxis &axis) |
bool | variableBins (const IAxis &) const |
bool | setStats (const IHistogram1D &h, const ElementIterator &histoElement) |
bool | setStats (const IHistogram2D &h, const ElementIterator &histoElement) |
bool | setStats (const IHistogram3D &h, const ElementIterator &histoElement) |
bool | appendStat (const ElementIterator &statisticsElement, const AIDA_STD::string &axisName, const double &mean, const double &rms) |
bool | setData (const IHistogram1D &h, const ElementIterator &histoElement) |
bool | setData (const IHistogram2D &h, const ElementIterator &histoElement) |
bool | setData (const IHistogram3D &h, const ElementIterator &histoElement) |
void | appendDataPoint (const int &dim, const ElementIterator &parent, const int &xbin, const int &ybin, const int &zbin, const int &entries, const double &height, const double &error) |
int | binConversion (const int &i, const bool &histoMetric) const |
void | addBinNumberAttribute (const ElementIterator &, const AIDA_STD::string &attName, const int &bn) |
bool | significantlyDifferent (const double &, const double &) const |
void | writeHeader (AIDA_STD::ostream &) const |
void | writeFooter (AIDA_STD::ostream &) const |
void | noOutputStreamError (void) const |
void | removeITree (void) |
bool | createNewITree (AIDA_STD::istream &s) |
void | resetIterators (void) |
int | dimensionality (const ElementCIterator &histoElement) const |
bool | readHistoElement (const ElementCIterator &histoElement, HistoParameters1D &hp) |
bool | readHistoElement (const ElementCIterator &histoelement, HistoParameters2D &hp) |
bool | readHistoElement (const ElementCIterator &histoelement, HistoParameters3D &hp) |
void | getTitle (const ElementCIterator &histoelement, HistoParameters &hp) const |
void | getXAxis (const ElementCIterator &histoElement, HistoParameters1D &hp) const |
void | getXAndYAxes (const ElementCIterator &histoElement, HistoParameters2D &hp) const |
void | getXYAndZAxes (const ElementCIterator &histoElement, HistoParameters3D &hp) const |
void | getAxis (const ElementCIterator &histoElement, const AIDA_STD::string &axisName, int &nb, double &lo, double &hi, HistoParameters::VecDouble &edges) const |
void | getStatistics (const ElementCIterator &histoElement, HistoParameters1D &hp) const |
void | getStatistics (const ElementCIterator &histoElement, HistoParameters2D &hp) const |
void | getStatistics (const ElementCIterator &histoElement, HistoParameters3D &hp) const |
void | getNumberOfEntries (const ElementCIterator &histoElement, int &nev) const |
void | getStatistic (const ElementCIterator &histoElement, const AIDA_STD::string &axisName, double &mean, double &rms, double &skew) const |
void | getData (const ElementCIterator &histoElement, HistoParameters1D &hp) const |
void | getData (const ElementCIterator &histoElement, HistoParameters2D &hp) const |
void | getData (const ElementCIterator &histoElement, HistoParameters3D &hp) const |
void | fillBin (const ElementCIterator &binElement, HistoParameters::BinInfo &bin) const |
bool | goodParameters (const HistoParameters1D ¶meters) const |
bool | goodParameters (const HistoParameters2D ¶meters) const |
bool | goodParameters (const HistoParameters3D ¶meters) const |
int | binNumber (const AIDA_STD::string &s) const |
int | binNumber (const ElementCIterator &binElement) const |
int | xBinNumber (const ElementCIterator &binElement) const |
int | yBinNumber (const ElementCIterator &binElement) const |
int | zBinNumber (const ElementCIterator &binElement) const |
double | binHeight (const ElementCIterator &binElement) const |
double | binError (const ElementCIterator &binElement) const |
double | binError2 (const ElementCIterator &binElement) const |
int | binEntries (const ElementCIterator &binElement) const |
bool | consistentBin (const int &binNumber, const HistoParameters1D &hp) const |
bool | consistentBin (const int &binNumberX, const int &binNumberY, const HistoParameters2D &hp) const |
bool | consistentBin (const int &binNumberX, const int &binNumberY, const int &binNumberZ, const HistoParameters3D &hp) const |
void | resizeMatrix (HistoParameters::VecData &, const int &xdim) const |
void | resizeMatrix (HistoParameters::VecVecData &, const int &xdim, const int &ydim) const |
void | resizeMatrix (HistoParameters::VecVecVecData &, const int &xdim, const int &ydim, const int &zdim) const |
void | convertBinNumber (int &i, const int &nbins) const |
ElementCIterator | getChild (const ElementCIterator &parent, const AIDA_STD::string &childName) const |
void | getBinEdges (const ElementCIterator &, HistoParameters::VecDouble &, const double &low, const double &high) const |
void | badInputStreamError (void) const |
void | wrongDocTypeError (void) const |
void | missingElementError (const AIDA_STD::string &elementName) const |
void | nonsenseBinError (void) const |
void | badNBError (void) const |
template<class FPType> AIDA_STD::string | toString (const FPType &) const |
AIDA_STD::string | toString (const int &) const |
int | stringToInt (const AIDA_STD::string &str) const |
void | errorMessage (const AIDA_STD::string &msg) const |
Private Attributes | |
bool | silent |
DataXML::InputXMLStream * | iXmlStream |
const DataXML::DataObject * | iRootElement |
ElementCIterator | iHisto1DIt |
ElementCIterator | iHisto2DIt |
ElementCIterator | iHisto3DIt |
AIDA_STD::ostream * | oStream |
DataXML::DataObject * | oRootElement |
Static Private Attributes | |
const int | constant_UNDERFLOW = -1 |
const int | constant_OVERFLOW = -2 |
const int | RUBBISH = -999 |
const double | ROUNDOFF_TOLERANCE = 1.0E-9 |
const int | SCI_PRECISION = 8 |
const AIDA_STD::string | XML_VERSION = "1.0" |
const AIDA_STD::string | ENCODING_TYPE = "ISO-8859-1" |
|
Definition at line 88 of file Translator.h. Referenced by getAxis(), getBinEdges(), getChild(), getData(), getNumberOfEntries(), and getStatistic(). |
|
Definition at line 89 of file Translator.h. |
|
Copying and assignment are possible but input and output streams are unset - user must set them explicitly before the instance will work. The destructor calls flush() automatically so if you just want to write a single XML doc with it then you don't have to call flush() yourself. Definition at line 70 of file Translator.cpp. |
|
Definition at line 86 of file Translator.cpp. |
|
Definition at line 102 of file Translator.cpp. References flush(), removeITree(), and removeOTree(). |
|
Definition at line 686 of file Translator.cpp. References constant_OVERFLOW, constant_UNDERFLOW, and toString(). Referenced by appendDataPoint(). |
|
Definition at line 460 of file Translator.cpp. References toString(), and variableBins(). Referenced by setAxes(). |
|
Definition at line 666 of file Translator.cpp. References addBinNumberAttribute(), and toString(). Referenced by setData(). |
|
Definition at line 259 of file Translator.cpp. References writeHistoElement(). Referenced by genericWrite(). |
|
Definition at line 358 of file Translator.cpp. Referenced by createNewOTree(). |
|
Definition at line 552 of file Translator.cpp. References toString(). Referenced by setStats(). |
|
Definition at line 1370 of file Translator.cpp. References errorMessage(). Referenced by createNewITree(). |
|
Definition at line 1402 of file Translator.cpp. References errorMessage(). |
|
Definition at line 653 of file Translator.cpp. References constant_OVERFLOW, and constant_UNDERFLOW. Referenced by setData(). |
|
Definition at line 1208 of file Translator.cpp. Referenced by fillBin(). |
|
Definition at line 1190 of file Translator.cpp. Referenced by fillBin(). |
|
Definition at line 1199 of file Translator.cpp. Referenced by fillBin(). |
|
Definition at line 1181 of file Translator.cpp. Referenced by fillBin(). |
|
Definition at line 1134 of file Translator.cpp. References binNumber(). |
|
Definition at line 1171 of file Translator.cpp. References constant_OVERFLOW, constant_UNDERFLOW, and stringToInt(). Referenced by binNumber(), xBinNumber(), yBinNumber(), and zBinNumber(). |
|
Definition at line 1251 of file Translator.cpp. References constant_OVERFLOW, and constant_UNDERFLOW. |
|
Definition at line 1232 of file Translator.cpp. References constant_OVERFLOW, and constant_UNDERFLOW. |
|
Definition at line 1217 of file Translator.cpp. References constant_OVERFLOW, and constant_UNDERFLOW. Referenced by getData(). |
|
Definition at line 1122 of file Translator.cpp. References constant_OVERFLOW, and constant_UNDERFLOW. Referenced by getData(). |
|
Definition at line 320 of file Translator.cpp. References badInputStreamError(), iRootElement, iXmlStream, removeITree(), resetIterators(), and wrongDocTypeError(). Referenced by setInputStream(). |
|
Definition at line 345 of file Translator.cpp. References appendHistoTypeElement(), oRootElement, and removeOTree(). Referenced by genericWrite(). |
|
Definition at line 788 of file Translator.cpp. Referenced by read(), and readHistoElement(). |
|
Definition at line 1418 of file Translator.cpp. References silent. Referenced by badInputStreamError(), badNBError(), missingElementError(), nonsenseBinError(), noOutputStreamError(), and wrongDocTypeError(). |
|
Definition at line 1097 of file Translator.cpp. References binEntries(), binError(), binError2(), and binHeight(). Referenced by getData(). |
|
Definition at line 223 of file Translator.cpp. References oRootElement, oStream, removeOTree(), writeFooter(), and writeHeader(). Referenced by ~Translator(). |
|
Definition at line 243 of file Translator.cpp. References appendHisto(), createNewOTree(), noOutputStreamError(), oRootElement, and oStream. Referenced by write(). |
|
Definition at line 859 of file Translator.cpp. References ElementCIterator, and getBinEdges(). Referenced by getXAndYAxes(), getXAxis(), and getXYAndZAxes(). |
|
Definition at line 889 of file Translator.cpp. References ElementCIterator. Referenced by getAxis(). |
|
Definition at line 1108 of file Translator.cpp. References ElementCIterator, and missingElementError(). Referenced by getData(). |
|
Definition at line 1063 of file Translator.cpp. References consistentBin(), convertBinNumber(), ElementCIterator, fillBin(), getChild(), nonsenseBinError(), resizeMatrix(), xBinNumber(), yBinNumber(), and zBinNumber(). |
|
Definition at line 1032 of file Translator.cpp. References consistentBin(), convertBinNumber(), ElementCIterator, fillBin(), getChild(), nonsenseBinError(), resizeMatrix(), xBinNumber(), and yBinNumber(). |
|
Definition at line 1004 of file Translator.cpp. References consistentBin(), convertBinNumber(), ElementCIterator, fillBin(), getChild(), nonsenseBinError(), resizeMatrix(), and xBinNumber(). Referenced by readHistoElement(). |
|
Definition at line 966 of file Translator.cpp. References ElementCIterator, and missingElementError(). Referenced by getStatistics(). |
|
Definition at line 980 of file Translator.cpp. References ElementCIterator, and missingElementError(). Referenced by getStatistics(). |
|
Definition at line 946 of file Translator.cpp. References getNumberOfEntries(), and getStatistic(). |
|
Definition at line 928 of file Translator.cpp. References getNumberOfEntries(), and getStatistic(). |
|
Definition at line 912 of file Translator.cpp. References getNumberOfEntries(), and getStatistic(). Referenced by readHistoElement(). |
|
Definition at line 799 of file Translator.cpp. Referenced by readHistoElement(). |
|
Definition at line 824 of file Translator.cpp. References getAxis(). Referenced by readHistoElement(). |
|
Definition at line 808 of file Translator.cpp. References getAxis(). Referenced by readHistoElement(). |
|
Definition at line 841 of file Translator.cpp. References getAxis(). Referenced by readHistoElement(). |
|
Definition at line 1319 of file Translator.cpp. |
|
Definition at line 1308 of file Translator.cpp. |
|
Definition at line 1294 of file Translator.cpp. Referenced by read(), and readHistoElement(). |
|
Definition at line 1386 of file Translator.cpp. References errorMessage(). Referenced by getChild(), getNumberOfEntries(), and getStatistic(). |
|
Definition at line 1394 of file Translator.cpp. References errorMessage(). Referenced by getData(). |
|
Definition at line 1410 of file Translator.cpp. References errorMessage(). Referenced by genericWrite(). |
|
Definition at line 131 of file Translator.cpp. References silent. |
|
Definition at line 112 of file Translator.cpp. References removeITree(), removeOTree(), and silent. |
|
Definition at line 185 of file Translator.cpp. References dimensionality(), goodParameters(), iHisto3DIt, iRootElement, and readHistoElement(). |
|
Definition at line 171 of file Translator.cpp. References dimensionality(), goodParameters(), iHisto2DIt, iRootElement, and readHistoElement(). |
|
Read next histo of the required type and fill the HistoParametersXD object. Returns false if no more histos available on the input stream. Definition at line 157 of file Translator.cpp. References dimensionality(), goodParameters(), iHisto1DIt, iRootElement, and readHistoElement(). |
|
Definition at line 743 of file Translator.cpp. References dimensionality(), getData(), getStatistics(), getTitle(), getXYAndZAxes(), and goodParameters(). |
|
Definition at line 727 of file Translator.cpp. References dimensionality(), getData(), getStatistics(), getTitle(), getXAndYAxes(), and goodParameters(). |
|
Definition at line 711 of file Translator.cpp. References dimensionality(), getData(), getStatistics(), getTitle(), getXAxis(), and goodParameters(). Referenced by read(). |
|
Definition at line 302 of file Translator.cpp. References iRootElement, iXmlStream, and resetIterators(). Referenced by createNewITree(), operator=(), setInputStream(), and ~Translator(). |
|
Definition at line 312 of file Translator.cpp. References oRootElement. Referenced by createNewOTree(), flush(), operator=(), and ~Translator(). |
|
Definition at line 700 of file Translator.cpp. References iHisto1DIt, iHisto2DIt, iHisto3DIt, and iRootElement. Referenced by createNewITree(), and removeITree(). |
|
Definition at line 1354 of file Translator.cpp. |
|
Definition at line 1341 of file Translator.cpp. |
|
Definition at line 1331 of file Translator.cpp. Referenced by getData(). |
|
Definition at line 445 of file Translator.cpp. References appendAxis(). |
|
Definition at line 432 of file Translator.cpp. References appendAxis(). |
|
Definition at line 421 of file Translator.cpp. References appendAxis(). Referenced by writeHistoElement(). |
|
Definition at line 620 of file Translator.cpp. References appendDataPoint(), and binConversion(). |
|
Definition at line 592 of file Translator.cpp. References appendDataPoint(), and binConversion(). |
|
Definition at line 569 of file Translator.cpp. References appendDataPoint(), and binConversion(). Referenced by writeHistoElement(). |
|
Definition at line 139 of file Translator.cpp. References createNewITree(), and removeITree(). |
|
Definition at line 148 of file Translator.cpp. References oStream. |
|
Definition at line 536 of file Translator.cpp. References appendStat(), and toString(). |
|
Definition at line 521 of file Translator.cpp. References appendStat(), and toString(). |
|
Definition at line 507 of file Translator.cpp. References appendStat(), and toString(). Referenced by writeHistoElement(). |
|
Definition at line 413 of file Translator.cpp. Referenced by writeHistoElement(). |
|
Definition at line 1426 of file Translator.cpp. References ROUNDOFF_TOLERANCE. Referenced by variableBins(). |
|
Definition at line 1274 of file Translator.cpp. References RUBBISH. Referenced by binNumber(). |
|
Definition at line 289 of file Translator.cpp. |
|
Definition at line 274 of file Translator.cpp. References SCI_PRECISION. Referenced by addBinNumberAttribute(), appendAxis(), appendDataPoint(), appendStat(), and setStats(). |
|
Definition at line 487 of file Translator.cpp. References significantlyDifferent(). Referenced by appendAxis(). |
|
Definition at line 215 of file Translator.cpp. References genericWrite(). |
|
Definition at line 207 of file Translator.cpp. References genericWrite(). |
|
Definition at line 199 of file Translator.cpp. References genericWrite(). |
|
Definition at line 780 of file Translator.cpp. Referenced by flush(). |
|
Definition at line 759 of file Translator.cpp. References ENCODING_TYPE, and XML_VERSION. Referenced by flush(). |
|
Definition at line 399 of file Translator.cpp. References setAxes(), setData(), setStats(), and setTitle(). |
|
Definition at line 385 of file Translator.cpp. References setAxes(), setData(), setStats(), and setTitle(). |
|
Definition at line 371 of file Translator.cpp. References setAxes(), setData(), setStats(), and setTitle(). Referenced by appendHisto(). |
|
Definition at line 1378 of file Translator.cpp. References errorMessage(). Referenced by createNewITree(). |
|
Definition at line 1143 of file Translator.cpp. References binNumber(). Referenced by getData(). |
|
Definition at line 1153 of file Translator.cpp. References binNumber(). Referenced by getData(). |
|
Definition at line 1162 of file Translator.cpp. References binNumber(). Referenced by getData(). |
|
Definition at line 54 of file Translator.cpp. Referenced by addBinNumberAttribute(), binConversion(), binNumber(), consistentBin(), and convertBinNumber(). |
|
Definition at line 53 of file Translator.cpp. Referenced by addBinNumberAttribute(), binConversion(), binNumber(), consistentBin(), and convertBinNumber(). |
|
Definition at line 59 of file Translator.cpp. Referenced by writeHeader(). |
|
Definition at line 211 of file Translator.h. Referenced by read(), and resetIterators(). |
|
Definition at line 212 of file Translator.h. Referenced by read(), and resetIterators(). |
|
Definition at line 213 of file Translator.h. Referenced by read(), and resetIterators(). |
|
Definition at line 210 of file Translator.h. Referenced by createNewITree(), read(), removeITree(), and resetIterators(). |
|
Definition at line 209 of file Translator.h. Referenced by createNewITree(), and removeITree(). |
|
Definition at line 215 of file Translator.h. Referenced by createNewOTree(), flush(), genericWrite(), and removeOTree(). |
|
Definition at line 214 of file Translator.h. Referenced by flush(), genericWrite(), and setOutputStream(). |
|
Definition at line 57 of file Translator.cpp. Referenced by significantlyDifferent(). |
|
Definition at line 55 of file Translator.cpp. Referenced by stringToInt(). |
|
Definition at line 56 of file Translator.cpp. Referenced by toString(). |
|
Definition at line 208 of file Translator.h. Referenced by errorMessage(), noWarnings(), and operator=(). |
|
Definition at line 58 of file Translator.cpp. Referenced by writeHeader(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |