add reading routine for the dat-files as generate from msr2data. Use case: special 'non muSR fit' type.

This commit is contained in:
2022-03-15 15:47:37 +01:00
parent 2d85d10b2f
commit c8c2df5eb8
3 changed files with 166 additions and 3 deletions

View File

@ -150,6 +150,32 @@ PNonMusrRawRunData::~PNonMusrRawRunData()
fErrData.clear();
}
//--------------------------------------------------------------------------
// SetSize (public)
//--------------------------------------------------------------------------
/**
* <p>Allows to set the number of data sets before filling it. This is
* needed when reading dat-files generated from msr2data.
*
* @param size number of data sets
*/
void PNonMusrRawRunData::SetSize(const UInt_t size)
{
// first clean up
for (UInt_t i=0; i<fData.size(); i++) {
fData[i].clear();
}
fData.clear();
for (UInt_t i=0; i<fErrData.size(); i++) {
fErrData[i].clear();
}
fErrData.clear();
// set size
fData.resize(size);
fErrData.resize(size);
}
//--------------------------------------------------------------------------
// SetLabel (public)
//--------------------------------------------------------------------------