Skip to content

Commit ce3ce4a

Browse files
author
Maxim Virta
committed
Magic number fix
1 parent 0a7c15a commit ce3ce4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PWGCF/GenericFramework/Tasks/flowGfwV02.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,11 @@ struct FlowGfwV02 {
881881
ebyeWeight *= pidStates.hPtMid[PidCharged]->Integral();
882882
}
883883
double ptFraction = 0;
884+
double threshhold = 1.01;
884885
int normIndex = (cfgNormalizeByCharged) ? PidCharged : pidInd; // Configured to normalize by charged particles or the selected particle
885886
if (pidStates.hPtMid[normIndex]->Integral() > 0) {
886887
ptFraction = pidStates.hPtMid[pidInd]->GetBinContent(i) / pidStates.hPtMid[normIndex]->Integral();
887-
if (std::abs(val) < 1.01)
888+
if (std::abs(val) < threshhold)
888889
fFC->FillProfile(Form("%s_pt_%i", corrconfigs.at(l_ind).Head.c_str(), i), centmult, val * ptFraction, ebyeWeight, rndm);
889890
}
890891
}

0 commit comments

Comments
 (0)