Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions PWGEM/Dilepton/Utils/EMTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@
void setPositiveLegPxPyPzM(float px, float py, float pz, float m)
{
float pt = std::sqrt(px * px + py * py);
float eta = std::atanh(pz / sqrt(std::pow(px, 2) + std::pow(py, 2) + std::pow(pz, 2)));
float eta = std::atanh(pz / std::sqrt(std::pow(px, 2) + std::pow(py, 2) + std::pow(pz, 2)));

Check failure on line 187 in PWGEM/Dilepton/Utils/EMTrack.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
float phi = std::atan2(py, px);
if (phi < 0.f) {
phi += 2.f * M_PI;

Check failure on line 190 in PWGEM/Dilepton/Utils/EMTrack.h

View workflow job for this annotation

GitHub Actions / O2 linter

[two-pi-add-subtract]

Use RecoDecay::constrainAngle to restrict angle to a given range.

Check failure on line 190 in PWGEM/Dilepton/Utils/EMTrack.h

View workflow job for this annotation

GitHub Actions / O2 linter

[two-pi-add-subtract]

Use RecoDecay::constrainAngle to restrict angle to a given range.
}

fVPos.SetPt(pt);
fVPos.SetEta(eta);
Expand All @@ -195,8 +198,11 @@
void setNegativeLegPxPyPzM(float px, float py, float pz, float m)
{
float pt = std::sqrt(px * px + py * py);
float eta = std::atanh(pz / std::sqrt(pow(px, 2) + std::pow(py, 2) + std::pow(pz, 2)));
float eta = std::atanh(pz / std::sqrt(std::pow(px, 2) + std::pow(py, 2) + std::pow(pz, 2)));

Check failure on line 201 in PWGEM/Dilepton/Utils/EMTrack.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
float phi = std::atan2(py, px);
if (phi < 0.f) {
phi += 2.f * M_PI;

Check failure on line 204 in PWGEM/Dilepton/Utils/EMTrack.h

View workflow job for this annotation

GitHub Actions / O2 linter

[two-pi-add-subtract]

Use RecoDecay::constrainAngle to restrict angle to a given range.

Check failure on line 204 in PWGEM/Dilepton/Utils/EMTrack.h

View workflow job for this annotation

GitHub Actions / O2 linter

[two-pi-add-subtract]

Use RecoDecay::constrainAngle to restrict angle to a given range.
}

fVNeg.SetPt(pt);
fVNeg.SetEta(eta);
Expand Down
Loading