There was an error while loading. Please reload this page.
1 parent 839a4a9 commit 2607e02Copy full SHA for 2607e02
1 file changed
PWGCF/GenericFramework/Tasks/flowGfwV02.cxx
@@ -886,6 +886,9 @@ struct FlowGfwV02 {
886
int bootstrap = fRndm->Integer(gfwMemberCache.nBootstrap);
887
for (int pid = 0; pid < PidTotal; pid++) {
888
int normIndex = (cfgNormalizeByCharged) ? PidCharged : pid;
889
+ if (!pidStates.hPtForward[normIndex]->Integral() > 0 || !pidStates.hPtBackward[normIndex]->Integral() > 0) {
890
+ continue; // Forward or backward pT distribution is not defined
891
+ }
892
for (int i = 1; i <= fSecondAxis->GetNbins(); i++) {
893
ptFractionForward = pidStates.hPtForward[pid]->GetBinContent(i) / pidStates.hPtForward[normIndex]->Integral();
894
ptFractionBackward = pidStates.hPtBackward[pid]->GetBinContent(i) / pidStates.hPtBackward[normIndex]->Integral();
0 commit comments