We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d5234 commit fc3d582Copy full SHA for fc3d582
PWGEM/Dilepton/Utils/EMTrack.h
@@ -186,6 +186,9 @@ class EMPair : public EMTrack
186
float pt = std::sqrt(px * px + py * py);
187
float eta = std::atanh(pz / sqrt(std::pow(px, 2) + std::pow(py, 2) + std::pow(pz, 2)));
188
float phi = std::atan2(py, px);
189
+ if (phi < 0.f) {
190
+ phi += 2.f * M_PI;
191
+ }
192
193
fVPos.SetPt(pt);
194
fVPos.SetEta(eta);
@@ -197,6 +200,9 @@ class EMPair : public EMTrack
197
200
198
201
float eta = std::atanh(pz / std::sqrt(pow(px, 2) + std::pow(py, 2) + std::pow(pz, 2)));
199
202
203
204
205
206
207
fVNeg.SetPt(pt);
208
fVNeg.SetEta(eta);
0 commit comments