set reference phase index in the case of a phase vector

This commit is contained in:
suter_a 2018-11-13 08:39:26 +01:00
parent 3c55a72475
commit 71f8f78b63

View File

@ -4036,6 +4036,8 @@ Bool_t PMsrHandler::ParseFourierPhaseParVector(PMsrFourierStructure &fourier, co
} }
sstr.Remove(0, rmNoOf); // remove 'par' of 'parR' part. Rest should be an integer sstr.Remove(0, rmNoOf); // remove 'par' of 'parR' part. Rest should be an integer
if (sstr.IsDigit()) { if (sstr.IsDigit()) {
if (rmNoOf == 4) // parR
fourier.fPhaseRef = sstr.Atoi();
fourier.fPhaseParamNo.push_back(sstr.Atoi()); fourier.fPhaseParamNo.push_back(sstr.Atoi());
} else { } else {
cerr << ">> PMsrHandler::ParseFourierPhaseParVector: **ERROR** found token '" << ostr->GetString() << "' which is not parX with X an integer." << endl; cerr << ">> PMsrHandler::ParseFourierPhaseParVector: **ERROR** found token '" << ostr->GetString() << "' which is not parX with X an integer." << endl;