some more work towards nonlocal fitting

This commit is contained in:
nemu 2009-07-02 13:56:10 +00:00
parent 121496f5e5
commit f6544900c2

View File

@ -177,7 +177,7 @@ Double_t PNL_PippardFitter::operator()(Double_t t, const std::vector<Double_t> &
do { do {
if (z < param[8]) { // z < dead-layer if (z < param[8]) { // z < dead-layer
dPol = fRgeHandler->GetRgeValue(fEnergyIndex, z); dPol = fRgeHandler->GetRgeValue(fEnergyIndex, z) * cos(GAMMA_MU * param[6] * t + param[7] * DEGREE2RAD);;
} else { } else {
dPol = fRgeHandler->GetRgeValue(fEnergyIndex, z) * cos(GAMMA_MU * param[6] * GetMagneticField(z-param[8]) * t + param[7] * DEGREE2RAD); dPol = fRgeHandler->GetRgeValue(fEnergyIndex, z) * cos(GAMMA_MU * param[6] * GetMagneticField(z-param[8]) * t + param[7] * DEGREE2RAD);
} }