Skip to content

Commit 1ce2f56

Browse files
authored
direct use of kLambda1520_Py
1 parent 5a2cadf commit 1ce2f56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

PWGLF/Tasks/Resonances/lambda1520analysisinpp.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ struct Lambda1520analysisinpp {
427427

428428
float massKa = MassKaonCharged;
429429
float massPr = MassProton;
430-
int lambda1520Pdg = Pdg::kLambda1520_Py; // PDG code for Lambda(1520)
431430

432431
// Centralicity estimator selection
433432
template <typename Coll>
@@ -972,7 +971,7 @@ struct Lambda1520analysisinpp {
972971
if (motherstrk1[0] != motherstrk2[0]) // Same mother
973972
continue;
974973

975-
if (std::abs(mothersPDGtrk1[0]) != lambda1520Pdg)
974+
if (std::abs(mothersPDGtrk1[0]) != Pdg::kLambda1520_Py)
976975
continue;
977976

978977
// LOGF(info, "mother trk1 id: %d, mother trk1: %d, trk1 id: %d, trk1 pdgcode: %d, mother trk2 id: %d, mother trk2: %d, trk2 id: %d, trk2 pdgcode: %d", motherstrk1[0], mothersPDGtrk1[0], trk1.globalIndex(), mctrk1.pdgCode(), motherstrk2[0], mothersPDGtrk2[0], trk2.globalIndex(), mctrk2.pdgCode());
@@ -1076,7 +1075,7 @@ struct Lambda1520analysisinpp {
10761075
}
10771076
PROCESS_SWITCH(Lambda1520analysisinpp, processMC, "Process Event for MC Light without partition", false);
10781077

1079-
Partition<aod::McParticles> selectedMCParticles = (nabs(aod::mcparticle::pdgCode) == lambda1520Pdg); // Lambda(1520)
1078+
Partition<aod::McParticles> selectedMCParticles = (nabs(aod::mcparticle::pdgCode) == (int)Pdg::kLambda1520_Py); // Lambda(1520)
10801079

10811080
void processMCTrue(MCEventCandidates::iterator const& collision, aod::McCollisions const&, aod::McParticles const& mcParticles)
10821081
{
@@ -1092,7 +1091,7 @@ struct Lambda1520analysisinpp {
10921091
// Not related to the real collisions
10931092
for (const auto& part : mcParts) { // loop over all MC particles
10941093

1095-
if (std::abs(part.pdgCode()) != lambda1520Pdg) // Lambda1520(0)
1094+
if (std::abs(part.pdgCode()) != Pdg::kLambda1520_Py) // Lambda1520(0)
10961095
continue;
10971096

10981097
std::vector<int> daughterPDGs;

0 commit comments

Comments
 (0)