Skip to content

Commit 63b0896

Browse files
committed
fix megalinter
1 parent 23b4214 commit 63b0896

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

PWGCF/Flow/Tasks/pidFlowPtCorr.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3364,10 +3364,11 @@ struct PidFlowPtCorr {
33643364
float weight = 1.f;
33653365
setParticleNUEWeight(weight, track, cent, pid);
33663366
const std::size_t index = static_cast<std::size_t>(pid - MyParticleType::kPion);
3367-
const double weight2 = weight * weight;
3367+
const double particleWeight = weight;
3368+
const double weight2 = particleWeight * particleWeight;
33683369
const double pt = track.pt();
3369-
sumWeight[index] += weight;
3370-
sumPt[index] += weight * pt;
3370+
sumWeight[index] += particleWeight;
3371+
sumPt[index] += particleWeight * pt;
33713372
sumWeight2[index] += weight2;
33723373
sumPtWeight2[index] += weight2 * pt;
33733374
sumPt2Weight2[index] += weight2 * pt * pt;

0 commit comments

Comments
 (0)