Skip to content
Open
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: 5 additions & 5 deletions PWGEM/PhotonMeson/Tasks/photonhbt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@
if (mRunNumber == collision.runNumber())
return;
mRunNumber = collision.runNumber();
if (cfgBzOverrideT.value > -100.f) {

Check failure on line 483 in PWGEM/PhotonMeson/Tasks/photonhbt.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mBzT = cfgBzOverrideT.value;
return;
}
Expand Down Expand Up @@ -1155,12 +1155,12 @@
int n = 0;
for (size_t ir = 0; ir < kPhiStarRadiiM.size(); ++ir) {
const float p1 = a.fLegPhiStar[i][ir], p2 = b.fLegPhiStar[i][ir];
if (p1 < -100.f || p2 < -100.f)

Check failure on line 1158 in PWGEM/PhotonMeson/Tasks/photonhbt.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
continue;
sumDp += RecoDecay::constrainAngle(p1 - p2, -o2::constants::math::PI);
++n;
}
if (n == 0) {
if (n == 0) {
dPhiOut = 999.f;
return 999.f;
}
Expand All @@ -1169,7 +1169,7 @@
};
const float uPP = uSameSign(0, s.dEtaPP, s.dPhiPP);
const float uNN = uSameSign(1, s.dEtaNN, s.dPhiNN);
s.u = std::min(uPP, uNN);
s.u = std::min(uPP, uNN);
return s;
}

Expand All @@ -1192,13 +1192,13 @@
const int q = (i == 0) ? +1 : -1;
float sumDp = 0.f;
int n = 0;
for (const float r : kPhiStarRadiiM) {

Check failure on line 1195 in PWGEM/PhotonMeson/Tasks/photonhbt.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if ((g1.rTrue >= 0.f && r * kCmPerM < g1.rTrue) ||
(g2.rTrue >= 0.f && r * kCmPerM < g2.rTrue))
continue;
continue;
const float p1 = legPhiStar(g1.legPhiTrue[i], g1.legPtTrue[i], q, mBzT, r);
const float p2 = legPhiStar(g2.legPhiTrue[i], g2.legPtTrue[i], q, mBzT, r);
if (p1 < -100.f || p2 < -100.f)

Check failure on line 1201 in PWGEM/PhotonMeson/Tasks/photonhbt.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
continue;
sumDp += RecoDecay::constrainAngle(p1 - p2, -o2::constants::math::PI);
++n;
Expand Down Expand Up @@ -2512,8 +2512,8 @@
poolBin.pop_front();
}
} // end cfgDoTruthMix
} // end collision loop
} // end runTruthEfficiency
} // end collision loop
} // end runTruthEfficiency

/*************************************************/
// PROCESS FUNCTIONS
Expand Down
Loading