Functions can now not only operate on parameters and maps but also on meta information

obtained from the data files. Currently the following meta information can be accessed
if available:
field in (G): B or b
energy in (keV): En or en
temperature in (K): since some data files contain a vector of temperature, they have
                    to be accessed with an index, like T0 or t0, etc.
This commit is contained in:
2020-06-17 19:31:31 +02:00
parent 602a5a4e6c
commit 7b6180a688
18 changed files with 214 additions and 111 deletions

View File

@ -49,7 +49,8 @@ PRunBase::PRunBase()
fRunNo = -1;
fRunInfo = nullptr;
fRawData = nullptr;
fField = -1.0;
fMetaData.fField = PMUSR_UNDEFINED;
fMetaData.fEnergy = PMUSR_UNDEFINED;
fTimeResolution = -1.0;
fFitStartTime = PMUSR_UNDEFINED;
@ -91,7 +92,8 @@ PRunBase::PRunBase(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo,
}
// init private variables
fField = -1.0;
fMetaData.fField = PMUSR_UNDEFINED;
fMetaData.fEnergy = PMUSR_UNDEFINED;
fTimeResolution = -1.0;
for (Int_t i=0; i<fMsrInfo->GetNoOfFuncs(); i++)
fFuncValues.push_back(0.0);