4242#include " Framework/runDataProcessing.h"
4343#include " ReconstructionDataFormats/Track.h"
4444
45+ #include " Math/Vector3D.h"
46+ #include " Math/Vector4D.h"
47+
4548#include < TMath.h>
4649#include < TObjArray.h>
4750#include < TPDGCode.h>
@@ -78,7 +81,6 @@ using DaughterTracks = soa::Join<aod::Tracks, aod::TracksIU, aod::TracksExtra, a
7881 aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr,
7982 aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr>;
8083using DaughterTracksMC = soa::Join<DaughterTracks, aod::McTrackLabels>;
81- using CascAndV0 = soa::Join<aod::CascDataExt, aod::V0Datas>;
8284
8385struct StrangenessInJets {
8486
@@ -542,9 +544,13 @@ struct StrangenessInJets {
542544 }
543545
544546 // Require that V0 is compatible with Lambda
545- /*
546- if (std::fabs(v0.mAntiLambda() - MassLambda0) > deltaMassLambda)
547- return false;*/
547+ ROOT::Math::PxPyPzMVector pProton;
548+ ROOT::Math::PxPyPzMVector pPion;
549+ pProton.SetCoordinates (ntrack.px (), ntrack.py (), ntrack.pz (), MassProton);
550+ pPion.SetCoordinates (ptrack.px (), ptrack.py (), ptrack.pz (), MassPionCharged);
551+ double mLambda = (pProton+pPion).M ();
552+ if (std::fabs (mLambda - MassLambda0) > deltaMassLambda)
553+ return false ;
548554 }
549555
550556 // Xi- selection (Xi- -> L + pi-)
@@ -569,9 +575,13 @@ struct StrangenessInJets {
569575 }
570576
571577 // Require that V0 is compatible with Lambda
572- /*
573- if (std::fabs(v0.mLambda() - MassLambda0) > deltaMassLambda)
574- return false;*/
578+ ROOT::Math::PxPyPzMVector pProton;
579+ ROOT::Math::PxPyPzMVector pPion;
580+ pProton.SetCoordinates (ptrack.px (), ptrack.py (), ptrack.pz (), MassProton);
581+ pPion.SetCoordinates (ntrack.px (), ntrack.py (), ntrack.pz (), MassPionCharged);
582+ double mLambda = (pProton+pPion).M ();
583+ if (std::fabs (mLambda - MassLambda0) > deltaMassLambda)
584+ return false ;
575585 }
576586
577587 // V0 selections
@@ -648,9 +658,13 @@ struct StrangenessInJets {
648658 }
649659
650660 // Require that V0 is compatible with Lambda
651- /*
652- if (std::fabs(v0.mAntiLambda() - MassLambda0) > deltaMassLambda)
653- return false;*/
661+ ROOT::Math::PxPyPzMVector pProton;
662+ ROOT::Math::PxPyPzMVector pPion;
663+ pProton.SetCoordinates (ntrack.px (), ntrack.py (), ntrack.pz (), MassProton);
664+ pPion.SetCoordinates (ptrack.px (), ptrack.py (), ptrack.pz (), MassPionCharged);
665+ double mLambda = (pProton+pPion).M ();
666+ if (std::fabs (mLambda - MassLambda0) > deltaMassLambda)
667+ return false ;
654668 }
655669
656670 // Omega- selection (Omega- -> L + K-)
@@ -675,9 +689,13 @@ struct StrangenessInJets {
675689 }
676690
677691 // Require that V0 is compatible with Lambda
678- /*
679- if (std::fabs(v0.mLambda() - MassLambda0) > deltaMassLambda)
680- return false;*/
692+ ROOT::Math::PxPyPzMVector pProton;
693+ ROOT::Math::PxPyPzMVector pPion;
694+ pProton.SetCoordinates (ptrack.px (), ptrack.py (), ptrack.pz (), MassProton);
695+ pPion.SetCoordinates (ntrack.px (), ntrack.py (), ntrack.pz (), MassPionCharged);
696+ double mLambda = (pProton+pPion).M ();
697+ if (std::fabs (mLambda - MassLambda0) > deltaMassLambda)
698+ return false ;
681699 }
682700
683701 // V0 selections
0 commit comments