6 for(
int i = 0; i < dim; i++){
7 TString name =
"var_"; name += i;
17 _units = std::vector<TString>(names.size(),
" ");
79 for(
unsigned i = 0; i <
_units.size(); i++){
87 if (dim < 0 || dim >= (
int)
_names.size()){
88 std::cout <<
"Trying to set the units of the HyperName element that doesn't exist" << std::endl;
97 if (dim < 0 || dim >= (
int)
_names.size()){
98 std::cout <<
"Trying call HyperName::getAxisString on an element that doesn't exist" << std::endl;
101 TString retVal =
_names.at(dim);
102 if (
_units.at(dim) !=
" ") retVal +=
" [" +
_units.at(dim) +
"]";
117 int nSliceDims = sliceDims.size();
119 HyperName names( nStartingDims - nSliceDims );
122 for (
int i = 0; i < nStartingDims; i++){
124 bool doesExist =
false;
126 for (
int j = 0; j < nSliceDims; j++){
127 int dim = sliceDims.at(j);
134 if (doesExist ==
false) {
135 names.
at(count) =
at(i); count++;
std::vector< TString > _units
TString getAxisString(int dim)
void setUnits(TString units)
HyperName slice(std::vector< int > sliceDims)
std::vector< TString > _names
const TString & at(int dim) const