@@ -756,8 +756,8 @@ struct cascadeFlow {
756756
757757 auto cascMC = casc.cascMCCore_as <soa::Join<aod::CascMCCores, aod::CascMCCollRefs>>();
758758 int pdgCode{cascMC.pdgCode ()};
759- if (!(std::abs (pdgCode) == 3312 && std::abs (cascMC.pdgCodeV0 ()) == 3122 && std::abs (cascMC.pdgCodeBachelor ()) == 211 ) // Xi
760- && !(std::abs (pdgCode) == 3334 && std::abs (cascMC.pdgCodeV0 ()) == 3122 && std::abs (cascMC.pdgCodeBachelor ()) == 321 )) // Omega
759+ if (!(std::abs (pdgCode) == PDG_t:: kXiMinus && std::abs (cascMC.pdgCodeV0 ()) == PDG_t:: kLambda0 && std::abs (cascMC.pdgCodeBachelor ()) == PDG_t:: kPiPlus ) // Xi
760+ && !(std::abs (pdgCode) == PDG_t:: kOmegaMinus && std::abs (cascMC.pdgCodeV0 ()) == PDG_t:: kLambda0 && std::abs (cascMC.pdgCodeBachelor ()) == kKPlus )) // Omega
761761 continue ;
762762
763763 auto negExtra = casc.negTrackExtra_as <DauTracks>();
@@ -1501,8 +1501,8 @@ struct cascadeFlow {
15011501 auto cascMC = casc.cascMCCore_as <soa::Join<aod::CascMCCores, aod::CascMCCollRefs>>();
15021502
15031503 int pdgCode{cascMC.pdgCode ()};
1504- if (!(std::abs (pdgCode) == 3312 && std::abs (cascMC.pdgCodeV0 ()) == 3122 && std::abs (cascMC.pdgCodeBachelor ()) == 211 ) // Xi
1505- && !(std::abs (pdgCode) == 3334 && std::abs (cascMC.pdgCodeV0 ()) == 3122 && std::abs (cascMC.pdgCodeBachelor ()) == 321 )) // Omega
1504+ if (!(std::abs (pdgCode) == PDG_t:: kXiMinus && std::abs (cascMC.pdgCodeV0 ()) == PDG_t:: kLambda0 && std::abs (cascMC.pdgCodeBachelor ()) == PDG_t:: kPiPlus ) // Xi
1505+ && !(std::abs (pdgCode) == PDG_t:: kOmegaMinus && std::abs (cascMC.pdgCodeV0 ()) == PDG_t:: kLambda0 && std::abs (cascMC.pdgCodeBachelor ()) == PDG_t:: kKPlus )) // Omega
15061506 {
15071507 pdgCode = 0 ;
15081508 }
@@ -1511,13 +1511,13 @@ struct cascadeFlow {
15111511 float XiY = RecoDecay::y (std::array{casc.px (), casc.py (), casc.pz ()}, constants::physics::MassXiMinus);
15121512 float OmegaY = RecoDecay::y (std::array{casc.px (), casc.py (), casc.pz ()}, constants::physics::MassOmegaMinus);
15131513 // true reco cascades before applying any selection
1514- if (std::abs (pdgCode) == 3312 && std::abs (cascMC.pdgCodeV0 ()) == 3122 && std::abs (cascMC.pdgCodeBachelor ()) == 211 ) {
1514+ if (std::abs (pdgCode) == PDG_t:: kXiMinus && std::abs (cascMC.pdgCodeV0 ()) == PDG_t:: kLambda0 && std::abs (cascMC.pdgCodeBachelor ()) == PDG_t:: kPiPlus ) {
15151515 histos.fill (HIST (" hXiPtvsCent" ), coll.centFT0C (), casc.pt ());
15161516 if (std::abs (casc.eta ()) < 0.8 )
15171517 histos.fill (HIST (" hXiPtvsCentEta08" ), coll.centFT0C (), casc.pt ());
15181518 if (std::abs (XiY) < 0.5 )
15191519 histos.fill (HIST (" hXiPtvsCentY05" ), coll.centFT0C (), casc.pt ());
1520- } else if (std::abs (pdgCode) == 3334 && std::abs (cascMC.pdgCodeV0 ()) == 3122 && std::abs (cascMC.pdgCodeBachelor ()) == 321 ) {
1520+ } else if (std::abs (pdgCode) == PDG_t:: kOmegaMinus && std::abs (cascMC.pdgCodeV0 ()) == PDG_t:: kLambda0 && std::abs (cascMC.pdgCodeBachelor ()) == PDG_t:: kKPlus ) {
15211521 histos.fill (HIST (" hOmegaPtvsCent" ), coll.centFT0C (), casc.pt ());
15221522 if (std::abs (casc.eta ()) < 0.8 )
15231523 histos.fill (HIST (" hOmegaPtvsCentEta08" ), coll.centFT0C (), casc.pt ());
@@ -1642,21 +1642,21 @@ struct cascadeFlow {
16421642 histosMCGen.fill (HIST (" hNEventsMC" ), 5.5 );
16431643
16441644 for (auto const & cascmc : cascMC) {
1645- if (std::abs (cascmc.pdgCode ()) == 3312 )
1645+ if (std::abs (cascmc.pdgCode ()) == PDG_t:: kXiMinus )
16461646 histosMCGen.fill (HIST (" hNCascGen" ), 0.5 );
1647- else if (std::abs (cascmc.pdgCode ()) == 3334 )
1647+ else if (std::abs (cascmc.pdgCode ()) == PDG_t:: kOmegaMinus )
16481648 histosMCGen.fill (HIST (" hNCascGen" ), 1.5 );
16491649 if (!cascmc.has_straMCCollision ())
16501650 continue ;
1651- if (std::abs (cascmc.pdgCode ()) == 3312 )
1651+ if (std::abs (cascmc.pdgCode ()) == PDG_t:: kXiMinus )
16521652 histosMCGen.fill (HIST (" hNCascGen" ), 2.5 );
1653- else if (std::abs (cascmc.pdgCode ()) == 3334 )
1653+ else if (std::abs (cascmc.pdgCode ()) == PDG_t:: kOmegaMinus )
16541654 histosMCGen.fill (HIST (" hNCascGen" ), 3.5 );
16551655 if (!cascmc.isPhysicalPrimary ())
16561656 continue ;
1657- if (std::abs (cascmc.pdgCode ()) == 3312 )
1657+ if (std::abs (cascmc.pdgCode ()) == PDG_t:: kXiMinus )
16581658 histosMCGen.fill (HIST (" hNCascGen" ), 4.5 );
1659- else if (std::abs (cascmc.pdgCode ()) == 3334 )
1659+ else if (std::abs (cascmc.pdgCode ()) == PDG_t:: kOmegaMinus )
16601660 histosMCGen.fill (HIST (" hNCascGen" ), 5.5 );
16611661
16621662 float ptmc = RecoDecay::sqrtSumOfSquares (cascmc.pxMC (), cascmc.pyMC ());
@@ -1675,7 +1675,7 @@ struct cascadeFlow {
16751675 float cascMCeta = -std::log (std::tan (theta1 / 2 ));
16761676 float cascMCy = 0 ;
16771677
1678- if (std::abs (cascmc.pdgCode ()) == 3312 ) {
1678+ if (std::abs (cascmc.pdgCode ()) == PDG_t:: kXiMinus ) {
16791679 cascMCy = RecoDecay::y (std::array{cascmc.pxMC (), cascmc.pyMC (), cascmc.pzMC ()}, constants::physics::MassXiMinus);
16801680 if (std::abs (cascMCeta) < etaCascMCGen) {
16811681 histosMCGen.fill (HIST (" h2DGenXiEta08" ), centrality, ptmc);
@@ -1684,7 +1684,7 @@ struct cascadeFlow {
16841684 if (std::abs (cascMCy) < yCascMCGen)
16851685 histosMCGen.fill (HIST (" h2DGenXiY05" ), centrality, ptmc);
16861686 histosMCGen.fill (HIST (" hGenXiY" ), cascMCy);
1687- } else if (std::abs (cascmc.pdgCode () == 3334 )) {
1687+ } else if (std::abs (cascmc.pdgCode () == PDG_t:: kOmegaMinus )) {
16881688 cascMCy = RecoDecay::y (std::array{cascmc.pxMC (), cascmc.pyMC (), cascmc.pzMC ()}, constants::physics::MassOmegaMinus);
16891689 if (std::abs (cascMCeta) < etaCascMCGen) {
16901690 histosMCGen.fill (HIST (" h2DGenOmegaEta08" ), centrality, ptmc);
0 commit comments