Skip to content

Commit 5f59d93

Browse files
ChiaraDeMartin95Chiara De Martin
andauthored
add boolean to store only true cascades in MC analysis (AliceO2Group#7991)
Co-authored-by: Chiara De Martin <[email protected]>
1 parent d2268b2 commit 5f59d93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ struct cascadeFlow {
128128
ConfigurableAxis axisQVsNorm{"axisQVsNorm", {200, -1.f, 1.f}, "axisQVsNorm"};
129129

130130
// Event selection criteria
131+
Configurable<bool> isStoreTrueCascOnly{"isStoreTrueCascOnly", 1, ""};
131132
Configurable<float> cutzvertex{"cutzvertex", 10.0f, "Accepted z-vertex range (cm)"};
132133
Configurable<bool> sel8{"sel8", 1, "Apply sel8 event selection"};
133134
Configurable<bool> isNoSameBunchPileupCut{"isNoSameBunchPileupCut", 1, "Same found-by-T0 bunch crossing rejection"};
@@ -859,6 +860,10 @@ struct cascadeFlow {
859860
BDTresponse[0] = bdtScore[0][1];
860861
BDTresponse[1] = bdtScore[1][1];
861862
}
863+
if (isStoreTrueCascOnly) {
864+
if (pdgCode == 0)
865+
continue;
866+
}
862867
if (isSelectedCasc[0] || isSelectedCasc[1])
863868
fillAnalysedTable(coll, casc, v2CSP, v2CEP, PsiT0C, BDTresponse[0], BDTresponse[1], pdgCode);
864869
}

0 commit comments

Comments
 (0)