fixed a bug with double vectors in TMusrRunHeader
This commit is contained in:
parent
f44a9e94cf
commit
c6f5c1205e
@ -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
|
||||
===================================
|
||||
|
6
src/external/MusrRoot/TMusrRunHeader.cpp
vendored
6
src/external/MusrRoot/TMusrRunHeader.cpp
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user