Skip to content

Commit cce8d34

Browse files
EloviyoShirajum Monira
andauthored
[PWGCF] FemtoUniverse cascade task -- implemented TOF cut for bachelor tracks with TOF (#10285)
Co-authored-by: Shirajum Monira <shirajum.monira@cernch>
1 parent 9bdcacd commit cce8d34

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseCascadeSelection.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,16 @@
2323

2424
#include <string>
2525
#include <vector>
26-
2726
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h"
2827
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseSelection.h"
2928
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h"
30-
3129
#include "Common/Core/RecoDecay.h"
3230
#include "Framework/HistogramRegistry.h"
3331
#include "ReconstructionDataFormats/PID.h"
3432

35-
namespace o2::analysis::femto_universe // o2-linter: disable=name/namespace
33+
namespace o2::analysis::femto_universe
3634
{
37-
namespace femto_universe_cascade_selection // o2-linter: disable=name/namespace
35+
namespace femto_universe_cascade_selection
3836
{
3937
/// The different selections this task is capable of doing
4038
enum CascadeSel {
@@ -430,6 +428,7 @@ bool FemtoUniverseCascadeSelection::isSelectedMinimal(Col const& col, Casc const
430428
const float dcav0topv = cascade.dcav0topv(col.posX(), col.posY(), col.posZ());
431429
const float invMassLambda = cascade.mLambda();
432430
const float invMass = isCascOmega ? cascade.mOmega() : cascade.mXi();
431+
const float nSigmaPIDMax = bachTrackSel.getSigmaPIDMax();
433432

434433
if (invMassLambda < fV0InvMassLowLimit || invMassLambda > fV0InvMassUpLimit) {
435434
return false;
@@ -501,7 +500,7 @@ bool FemtoUniverseCascadeSelection::isSelectedMinimal(Col const& col, Casc const
501500
if (!negDaughTrack.isSelectedMinimal(negTrack)) {
502501
return false;
503502
}
504-
if (!bachTrack.hasTOF()) {
503+
if (bachTrack.hasTOF() && ((isCascOmega && bachTrack.tofNSigmaKa() > nSigmaPIDMax) || (!isCascOmega && bachTrack.tofNSigmaPi() > nSigmaPIDMax))) {
505504
return false;
506505
}
507506
if (!bachTrackSel.isSelectedMinimal(bachTrack)) {

0 commit comments

Comments
 (0)