Skip to content

Commit a199f87

Browse files
authored
fix linter error
1 parent 10fbdee commit a199f87

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGLF/Tasks/Resonances/lambda1520analysisinpp.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ struct Lambda1520analysisinpp {
427427
float massKa = MassKaonCharged;
428428
float massPr = MassProton;
429429

430-
int kLambda1520PDG = static_cast<int>(102134); // PDG code for Lambda(1520)
430+
int cLambda1520PDG = static_cast<int>(102134); // PDG code for Lambda(1520)
431431

432432
// Centralicity estimator selection
433433
template <typename Coll>
@@ -451,7 +451,7 @@ struct Lambda1520analysisinpp {
451451
return returnValue;
452452
}
453453

454-
auto static constexpr tripleCharge = 3.f;
454+
auto static constexpr cTripleCharge = 3.f;
455455

456456
// Check if the collision is INEL>0
457457
template <typename MCColl, typename MCPart>
@@ -462,7 +462,7 @@ struct Lambda1520analysisinpp {
462462
continue;
463463
auto p = pdg->GetParticle(mcparticle.pdgCode());
464464
if (p != nullptr) {
465-
if (std::abs(p->Charge()) >= tripleCharge) { // check if the particle is charged
465+
if (std::abs(p->Charge()) >= cTripleCharge) { // check if the particle is charged
466466
if (std::abs(mcparticle.eta()) < 1.0)
467467
return true;
468468
}
@@ -966,7 +966,7 @@ struct Lambda1520analysisinpp {
966966
if (motherstrk1[0] != motherstrk2[0]) // Same mother
967967
continue;
968968

969-
if (std::abs(mothersPDGtrk1[0]) != kLambda1520PDG)
969+
if (std::abs(mothersPDGtrk1[0]) != cLambda1520PDG)
970970
continue;
971971

972972
// 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());
@@ -1070,7 +1070,7 @@ struct Lambda1520analysisinpp {
10701070
}
10711071
PROCESS_SWITCH(Lambda1520analysisinpp, processMC, "Process Event for MC Light without partition", false);
10721072

1073-
Partition<aod::McParticles> selectedMCParticles = (nabs(aod::mcparticle::pdgCode) == kLambda1520PDG); // Lambda(1520)
1073+
Partition<aod::McParticles> selectedMCParticles = (nabs(aod::mcparticle::pdgCode) == cLambda1520PDG); // Lambda(1520)
10741074

10751075
void processMCTrue(MCEventCandidates::iterator const& collision, aod::McCollisions const&, aod::McParticles const& mcParticles)
10761076
{
@@ -1086,7 +1086,7 @@ struct Lambda1520analysisinpp {
10861086
// Not related to the real collisions
10871087
for (const auto& part : mcParts) { // loop over all MC particles
10881088

1089-
if (std::abs(part.pdgCode()) != kLambda1520PDG) // Lambda1520(0)
1089+
if (std::abs(part.pdgCode()) != cLambda1520PDG) // Lambda1520(0)
10901090
continue;
10911091

10921092
std::vector<int> daughterPDGs;

0 commit comments

Comments
 (0)