MINT2
|
#include <HyperName.h>
Public Member Functions | |
HyperName (int dim) | |
HyperName (std::vector< TString > names) | |
HyperName (TString name0) | |
HyperName (TString name0, TString name1) | |
HyperName (TString name0, TString name1, TString name2) | |
HyperName (TString name0, TString name1, TString name2, TString name3) | |
HyperName (TString name0, TString name1, TString name2, TString name3, TString name4) | |
void | setUnits (TString units) |
void | setUnits (TString units, int dim) |
TString | getAxisString (int dim) |
int | getDimension () const |
HyperName | slice (std::vector< int > sliceDims) |
const TString & | at (int dim) const |
TString & | at (int dim) |
~HyperName () | |
Private Attributes | |
std::vector< TString > | _names |
std::vector< TString > | _units |
HyperPlot, Author: Sam Harnew, sam.h , Date: Dec 2015 arne w@gma il.c om
Holds a n-dim vector of names that can be associtated to a n-dim Histogram (for axis titles etc). Also possible to store the units.
Definition at line 24 of file HyperName.h.
HyperName::HyperName | ( | int | dim | ) |
Fill HyperName with the standard names {var_0, var_1, ...}
Definition at line 5 of file HyperName.cpp.
HyperName::HyperName | ( | std::vector< TString > | names | ) |
HyperName::HyperName | ( | TString | name0 | ) |
HyperName::HyperName | ( | TString | name0, |
TString | name1 | ||
) |
HyperName::HyperName | ( | TString | name0, |
TString | name1, | ||
TString | name2 | ||
) |
HyperName::HyperName | ( | TString | name0, |
TString | name1, | ||
TString | name2, | ||
TString | name3 | ||
) |
HyperName::HyperName | ( | TString | name0, |
TString | name1, | ||
TString | name2, | ||
TString | name3, | ||
TString | name4 | ||
) |
HyperName::~HyperName | ( | ) |
|
inline |
access an element of the name vector
Definition at line 50 of file HyperName.h.
|
inline |
access an element of the name vector
Definition at line 51 of file HyperName.h.
TString HyperName::getAxisString | ( | int | dim | ) |
Make a TString sutable for an axis title for a given dimension.
Definition at line 96 of file HyperName.cpp.
int HyperName::getDimension | ( | ) | const |
Definition at line 107 of file HyperName.cpp.
void HyperName::setUnits | ( | TString | units | ) |
The the units of every dimension to be the given TString
Definition at line 78 of file HyperName.cpp.
void HyperName::setUnits | ( | TString | units, |
int | dim | ||
) |
The the units of the given dimension to be the given TString
Definition at line 86 of file HyperName.cpp.
HyperName HyperName::slice | ( | std::vector< int > | sliceDims | ) |
Slice (remove) the given dimesnions, and return new HyperName
Definition at line 114 of file HyperName.cpp.
|
private |
vector of names
Definition at line 26 of file HyperName.h.
|
private |
vector of units
Definition at line 27 of file HyperName.h.