Fourier relative phase: bug fix
The reference phase for real Fourier was accidentely counted twice.
This commit is contained in:
@ -4374,8 +4374,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user