Skip to content

Commit 1f5bd2e

Browse files
committed
add increment to outputcontainer on invalid values
1 parent 3cfa1f4 commit 1f5bd2e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

PWGCF/GenericFramework/Tasks/flowGfwLightIons.cxx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,16 +829,21 @@ struct FlowGfwLightIons {
829829
}
830830
for (uint l_ind = 0; l_ind < corrconfigs.size(); ++l_ind) {
831831
if (!corrconfigs.at(l_ind).pTDif) {
832+
uint8_t vnptmask = o2::analysis::gfw::configs.GetpTCorrMasks()[l_ind];
832833
auto dnx = fGFW->Calculate(corrconfigs.at(l_ind), 0, kTRUE).real();
833-
if (dnx == 0)
834+
if (dnx == 0) {
835+
(dt == kGen) ? fFCptgen->skipVnPtProfiles(vnptmask) : fFCpt->skipVnPtProfiles(vnptmask);
834836
continue;
837+
}
835838
auto val = fGFW->Calculate(corrconfigs.at(l_ind), 0, kFALSE).real() / dnx;
836839
if (std::abs(val) < 1) {
837840
(dt == kGen) ? fFCgen->FillProfile(corrconfigs.at(l_ind).Head.c_str(), centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0, rndm) : fFC->FillProfile(corrconfigs.at(l_ind).Head.c_str(), centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0, rndm);
838-
(dt == kGen) ? fFCptgen->fillVnPtProfiles(centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0, rndm, o2::analysis::gfw::configs.GetpTCorrMasks()[l_ind]) : fFCpt->fillVnPtProfiles(centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0, rndm, o2::analysis::gfw::configs.GetpTCorrMasks()[l_ind]);
841+
(dt == kGen) ? fFCptgen->fillVnPtProfiles(centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0, rndm, vnptmask) : fFCpt->fillVnPtProfiles(centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0, rndm, vnptmask);
839842
if (cfgRunByRun && cfgFillFlowRunByRun && dt != kGen && l_ind == 0) {
840843
tpfsList[run][pfCorr22]->Fill(centmult, val, (cfgUseMultiplicityFlowWeights) ? dnx : 1.0);
841844
}
845+
} else {
846+
(dt == kGen) ? fFCptgen->skipVnPtProfiles(vnptmask) : fFCpt->skipVnPtProfiles(vnptmask);
842847
}
843848
continue;
844849
}

0 commit comments

Comments
 (0)