Skip to content

Commit 3472db5

Browse files
committed
Add guard conditions on histogram filling
1 parent 1963f8c commit 3472db5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,9 @@ struct FlowGenericFramework {
23732373
registryQA.fill(HIST("K0/hK0Count"), FillDaughterTrackSelected);
23742374
selection.selected = true;
23752375
selection.isK0 = true;
2376-
registryQA.fill(HIST("K0/hK0AP"), v0.alpha(), v0.qtarm());
2376+
if (cfgFill.cfgFillV0QA) {
2377+
registryQA.fill(HIST("K0/hK0AP"), v0.alpha(), v0.qtarm());
2378+
}
23772379
return selection;
23782380
}
23792381

@@ -2481,15 +2483,15 @@ struct FlowGenericFramework {
24812483
if (!selectionV0Daughter(postrack, Protons) || !selectionV0Daughter(negtrack, Pions)) {
24822484
return selection;
24832485
}
2484-
if (fillSelectionQA) {
2486+
if (fillSelectionQA && cfgFill.cfgFillV0QA) {
24852487
registryQA.fill(HIST("Lambda/hLambdaAP"), v0.alpha(), v0.qtarm());
24862488
}
24872489
}
24882490
if (selection.isAL) {
24892491
if (!selectionV0Daughter(postrack, Pions) || !selectionV0Daughter(negtrack, Protons)) {
24902492
return selection;
24912493
}
2492-
if (fillSelectionQA) {
2494+
if (fillSelectionQA && cfgFill.cfgFillV0QA) {
24932495
registryQA.fill(HIST("Lambda/hAntiLambdaAP"), v0.alpha(), v0.qtarm());
24942496
}
24952497
}

0 commit comments

Comments
 (0)