Skip to content

Commit 17eb245

Browse files
authored
Keep bachelor if compatible with one of the two cascades (#4392)
* Keep bachelor if compatible with one of the two cascades * Fix omega histogram filling
1 parent 1033829 commit 17eb245

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

PWGLF/Tasks/nonPromptCascade.cxx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -724,31 +724,38 @@ struct NonPromptCascadeTask {
724724
// QA PID
725725
float nSigmaTPC[nParticles]{bachelor.tpcNSigmaKa(), bachelor.tpcNSigmaPi(), protonTrack.tpcNSigmaPr(), pionTrack.tpcNSigmaPi()};
726726

727+
bool isBachelorSurvived = false;
727728
if (isOmega) {
728729
if (bachelor.hasTPC()) {
729730
LOG(debug) << "TPCSignal bachelor " << bachelor.sign() << "/" << bachelor.tpcInnerParam() << "/" << bachelor.tpcSignal();
730-
if (nSigmaTPC[0] < cfgCutsPID->get(0u, 0u) || nSigmaTPC[0] > cfgCutsPID->get(0u, 1u)) {
731-
continue;
731+
if (nSigmaTPC[0] > cfgCutsPID->get(0u, 0u) && nSigmaTPC[0] < cfgCutsPID->get(0u, 1u)) {
732+
registry.fill(HIST("h_PIDcutsOmega"), 3, massOmega);
733+
isBachelorSurvived = true;
732734
}
733735
}
734-
registry.fill(HIST("h_PIDcutsOmega"), 3, massOmega);
735736
}
736737

737738
if (bachelor.hasTPC()) {
738739
LOG(debug) << "TPCSignal bachelor " << bachelor.sign() << "/" << bachelor.tpcInnerParam() << "/" << bachelor.tpcSignal();
739-
if (nSigmaTPC[1] < cfgCutsPID->get(1u, 0u) || nSigmaTPC[1] > cfgCutsPID->get(1u, 1u)) {
740-
continue;
740+
if (nSigmaTPC[1] > cfgCutsPID->get(1u, 0u) && nSigmaTPC[1] < cfgCutsPID->get(1u, 1u)) {
741+
registry.fill(HIST("h_PIDcutsXi"), 3, massXi);
742+
isBachelorSurvived = true;
741743
}
742744
}
743-
registry.fill(HIST("h_PIDcutsXi"), 3, massXi);
745+
746+
if (!isBachelorSurvived) {
747+
continue;
748+
}
744749

745750
LOG(debug) << "TPCSignal protonTrack " << protonTrack.sign() << "/" << protonTrack.tpcInnerParam() << "/" << protonTrack.tpcSignal();
746751
if (nSigmaTPC[2] < cfgCutsPID->get(2u, 0u) || nSigmaTPC[2] > cfgCutsPID->get(2u, 1u)) {
747752
continue;
748753
}
749754

755+
if (isOmega) {
756+
registry.fill(HIST("h_PIDcutsOmega"), 4, massOmega);
757+
}
750758
registry.fill(HIST("h_PIDcutsXi"), 4, massXi);
751-
registry.fill(HIST("h_PIDcutsOmega"), 4, massOmega);
752759

753760
LOG(debug) << "TPCSignal ntrack " << pionTrack.sign() << "/" << pionTrack.tpcInnerParam() << "/" << pionTrack.tpcSignal();
754761
if (nSigmaTPC[3] < cfgCutsPID->get(3u, 0u) || nSigmaTPC[3] > cfgCutsPID->get(3u, 1u)) {

0 commit comments

Comments
 (0)