We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d93a4 commit 790e7c5Copy full SHA for 790e7c5
src/FSSW.cpp
@@ -1972,10 +1972,11 @@ int FSSW::sample_momemtum_from_a_fluid_cell(
1972
1973
// assigned to the return variables
1974
// if E and p^z are too close, resample one
1975
- double y = 0.5*log((pLab[0] + pLab[3])/(pLab[0] - pLab[3]));
+ pT = sqrt(pLab[1]*pLab[1] + pLab[2]*pLab[2]);
1976
+ phi = atan2(pLab[2], pLab[1]);
1977
+ double mT = sqrt(mass*mass + pT*pT);
1978
+ double y = asinh(pLab[3]/mT);
1979
if (!std::isnan(y) && !std::isinf(y)) {
- pT = sqrt(pLab[1]*pLab[1] + pLab[2]*pLab[2]);
- phi = atan2(pLab[2], pLab[1]);
1980
y_minus_eta_s = y - surf->eta;
1981
return(1);
1982
}
0 commit comments