Belle II Software development
|
return information on objects in a nice format. More...
Functions | |
std::string | getString (const TMatrixFBase &matrix, int precision=2, bool color=true) |
get HTML table representing a matrix. | |
std::string | getString (const TMatrixDBase &matrix, int precision=2, bool color=true) |
get HTML table representing a matrix (double precision). | |
std::string | getString (const ROOT::Math::XYZVector &vec, int precision=2) |
get a string with vector coordinates: (x, y, z). | |
std::string | getStringConvertToUnit (const ROOT::Math::XYZVector &vec, int precision=2, const std::string &unitType="cm") |
get a string with vector coordinates: (x, y, z). | |
std::string | chooseUnitOfLength (const ROOT::Math::XYZVector &vec) |
get a string with a unit type to convert a vector, so that it is easily readable. | |
std::string | getHexDump (const int *buf, int length) |
Create hexdump of given buffer. | |
std::string | htmlToPlainText (const std::string &html) |
Reformat given HTML string into terminal-friendly plain text. | |
std::string | escape (const std::string &str) |
Convert &, <, > etc. | |
std::string | unescape (const std::string &str) |
inverse of escape() | |
return information on objects in a nice format.
std::string chooseUnitOfLength | ( | const ROOT::Math::XYZVector & | vec | ) |
get a string with a unit type to convert a vector, so that it is easily readable.
valid unit types are (um, cm) for now. the maximum of the vector entries defines the unit.
Definition at line 102 of file HTML.cc.
std::string escape | ( | const std::string & | str | ) |
Convert &, <, > etc.
to entities. (not a complete list!)
Definition at line 159 of file HTML.cc.
std::string getHexDump | ( | const int * | buf, |
int | length | ||
) |
Create hexdump of given buffer.
buf | the buffer |
length | size of buf in 32bit words |
Definition at line 121 of file HTML.cc.
std::string getString | ( | const ROOT::Math::XYZVector & | vec, |
int | precision = 2 |
||
) |
get a string with vector coordinates: (x, y, z).
(uses fixed-length output).
vec | the vector to be printend |
precision | The amount of digits to use |
Definition at line 76 of file HTML.cc.
std::string getString | ( | const TMatrixDBase & | matrix, |
int | precision = 2 , |
||
bool | color = true |
||
) |
get HTML table representing a matrix (double precision).
matrix | The matrix to be represented |
precision | The amount of significant digits to use |
color | If true, vary background colour depending on value. |
Definition at line 36 of file HTML.cc.
std::string getString | ( | const TMatrixFBase & | matrix, |
int | precision = 2 , |
||
bool | color = true |
||
) |
get HTML table representing a matrix.
matrix | The matrix to be represented |
precision | The amount of significant digits to use |
color | If true, vary background colour depending on value. |
Definition at line 24 of file HTML.cc.
std::string getStringConvertToUnit | ( | const ROOT::Math::XYZVector & | vec, |
int | precision = 2 , |
||
const std::string & | unitType = "cm" |
||
) |
get a string with vector coordinates: (x, y, z).
(uses fixed-length output). converts floating point value from standard framework unit to given unit.
vec | the vector to be printend |
precision | The amount of digits to use |
unitType | Defines the unit to convert the vector values from standard framework unit. |
Definition at line 85 of file HTML.cc.
std::string htmlToPlainText | ( | const std::string & | html | ) |
Reformat given HTML string into terminal-friendly plain text.
Definition at line 138 of file HTML.cc.
std::string unescape | ( | const std::string & | str | ) |
inverse of escape()
Definition at line 169 of file HTML.cc.