Skip to content

Commit 3f49d33

Browse files
ddobrigkalibuild
andauthored
PWGLF: add mask to save only certain candidates (#5609)
* PWGLF: add mask to save only certain candidates * Please consider the following formatting changes --------- Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 6411107 commit 3f49d33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGLF/TableProducer/Strangeness/lambdakzeroMLSelectionTreeCreator.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ struct lambdakzeroMLSelectionTreeCreator {
108108
// Axis:
109109
ConfigurableAxis centralityAxis{"centralityAxis", {100, 0.0f, 100.0f}, ""};
110110

111+
// Save certain candidates only
112+
Configurable<uint8_t> saveCandidateMask{"saveCandidateMask", 15, "Mask to decide saving candidates"};
113+
111114
void init(InitContext const&)
112115
{
113116
histos.add("hEventCentrality", "hEventCentrality", kTH1F, {centralityAxis});
@@ -242,6 +245,9 @@ struct lambdakzeroMLSelectionTreeCreator {
242245
// 13: Consistent with Lambda, Gamma, and K0Short, 14: Consistent with Anti-Lambda, Gamma, and K0Short
243246
// 15: Consistent with Lambda, Anti-Lambda, Gamma, and K0Short
244247

248+
if ((Candidate.SelHypothesis & saveCandidateMask) != saveCandidateMask)
249+
return;
250+
245251
// MC flags
246252
Candidate.isLambda = false;
247253
Candidate.isAntiLambda = false;

0 commit comments

Comments
 (0)