Skip to content

Commit 4effed2

Browse files
authored
Fix parameter name in getPtBin function
1 parent f239fd5 commit 4effed2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -804,10 +804,10 @@ struct MeanPtFlucId {
804804
}
805805
}
806806

807-
int getPtBin(double pt, const std::vector<double>& ptBins)
807+
int getPtBin(double pt, const std::vector<double>& ptB)
808808
{
809-
for (size_t i = 0; i < ptBins.size() - 1; ++i) {
810-
if (pt >= ptBins[i] && pt < ptBins[i + 1]) {
809+
for (size_t i = 0; i < ptB.size() - 1; ++i) {
810+
if (pt >= ptB[i] && pt < ptB[i + 1]) {
811811
return i;
812812
}
813813
}

0 commit comments

Comments
 (0)