diff --git a/ChangeLog b/ChangeLog index 2259a970..ecbaf0fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ changes since 0.15.0 =================================== +FIXED 2015-10-29 TMusrRunHeader didn't map a double vector properly into a + string. The last element was a copy of the 2nd last instead + if the proper last. This is now fixed. Fixed also some + comment typo. changes since 0.14.0 =================================== diff --git a/src/external/MusrRoot/TMusrRunHeader.cpp b/src/external/MusrRoot/TMusrRunHeader.cpp index 492808a2..1fbab84b 100644 --- a/src/external/MusrRoot/TMusrRunHeader.cpp +++ b/src/external/MusrRoot/TMusrRunHeader.cpp @@ -1437,14 +1437,14 @@ bool TMusrRunHeader::UpdateFolder(TObject *treeObj, TString path) // remove the first path element if (!RemoveFirst(path, '/')) { - cerr << endl << ">> TMusrRunHeader::FillFolder(): **ERROR** couldn't tokenize path!!" << endl; + cerr << endl << ">> TMusrRunHeader::UpdateFolder(): **ERROR** couldn't tokenize path!!" << endl; return false; } if (!obj) { // required object not present, create it TObjArray *oarray = new TObjArray(); if (!oarray) { - cerr << endl << ">> TMusrRunHeader::FillFolder(): **ERROR** couldn't create header structure!!" << endl; + cerr << endl << ">> TMusrRunHeader::UpdateFolder(): **ERROR** couldn't create header structure!!" << endl; return false; } // set the name of the new TObjArray @@ -1636,7 +1636,7 @@ TObjString TMusrRunHeader::GetHeaderString(UInt_t idx) str += subStr; str += "; "; } - subStr.Form(fmt, dvec.size()-1); + subStr.Form(fmt, dvec[dvec.size()-1]); str += subStr; str += " -@"; str += MRH_DOUBLE_VECTOR;