check that FOURIER block phase parameter as parX is not leading to an error message.

This commit is contained in:
suter_a 2015-02-28 11:30:09 +01:00
parent 8cc07318eb
commit 6ce19bcf26

View File

@ -3698,6 +3698,11 @@ Bool_t PMsrHandler::HandleFourierEntry(PMsrLines &lines)
ostr = dynamic_cast<TObjString*>(tokens->At(1)); ostr = dynamic_cast<TObjString*>(tokens->At(1));
str = ostr->GetString(); str = ostr->GetString();
if (str.BeginsWith("par", TString::kIgnoreCase)) { // parameter value if (str.BeginsWith("par", TString::kIgnoreCase)) { // parameter value
if (fFourierOnly) {
cerr << endl << ">> PMsrHandler::HandleFourierEntry: **WARNING** Found phase parameter for Fourier only.";
cerr << endl << ">> This is currently not supported. Will set the phase to 0." << endl;
fourier.fPhase = 0.0;
} else {
Int_t no = 0; Int_t no = 0;
if (FilterNumber(str, "par", 0, no)) { if (FilterNumber(str, "par", 0, no)) {
// check that the parameter is in range // check that the parameter is in range
@ -3713,6 +3718,7 @@ Bool_t PMsrHandler::HandleFourierEntry(PMsrLines &lines)
error = true; error = true;
continue; continue;
} }
}
} else if (str.IsFloat()) { // phase value } else if (str.IsFloat()) { // phase value
fourier.fPhase = str.Atof(); fourier.fPhase = str.Atof();
} else { } else {