Fourier relative phase: bug fix

The reference phase for real Fourier was accidentely counted twice.
This commit is contained in:
suter_a 2018-11-29 10:56:37 +01:00
parent 91c33fdbd1
commit a5748f0359

View File

@ -4376,8 +4376,10 @@ Bool_t PMsrHandler::HandleFourierEntry(PMsrLines &lines)
phaseRef = fParam[fourier.fPhaseRef-1].fValue; phaseRef = fParam[fourier.fPhaseRef-1].fValue;
} }
fourier.fPhase.clear(); fourier.fPhase.clear();
UInt_t idx;
for (UInt_t i=0; i<fourier.fPhaseParamNo.size(); i++) { for (UInt_t i=0; i<fourier.fPhaseParamNo.size(); i++) {
if (fourier.fPhaseRef == fourier.fPhaseParamNo[i]) // reference phase
fourier.fPhase.push_back(fParam[fourier.fPhaseParamNo[i]-1].fValue);
else
fourier.fPhase.push_back(fParam[fourier.fPhaseParamNo[i]-1].fValue+phaseRef); fourier.fPhase.push_back(fParam[fourier.fPhaseParamNo[i]-1].fValue+phaseRef);
} }
} }