Skip to content

Commit 13c4d21

Browse files
committed
Fix for codecheck 2nd iteration
1 parent 4d43bd6 commit 13c4d21

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PWGHF/HFC/TableProducer/correlatorLcHadrons.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,8 @@ struct HfCorrelatorLcHadrons {
912912
}
913913
}
914914

915-
int8_t const chargeLc = static_cast<int8_t>(pdg->GetParticle(particle.pdgCode())->Charge()); // Retrieve charge
916-
int8_t const chargeAssoc = static_cast<int8_t>(pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge
915+
auto const chargeLc = static_cast<int8_t>(pdg->GetParticle(particle.pdgCode())->Charge()); // Retrieve charge
916+
auto const chargeAssoc = static_cast<int8_t>(pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge
917917

918918
int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true);
919919
registry.fill(HIST("hPtParticleAssocMcGen"), particleAssoc.pt());
@@ -1157,9 +1157,9 @@ struct HfCorrelatorLcHadrons {
11571157
if (pidTrkApplied && (std::abs(particleAssoc.pdgCode()) != kProton)) {
11581158
continue; // proton PID
11591159
}
1160-
int8_t const chargeLc = static_cast<int8_t>(pdg->GetParticle(candidate.pdgCode())->Charge()); // Retrieve charge
1161-
int8_t const chargeAssoc = static_cast<int8_t>(pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge
1162-
float cent = 100.0; // will be updated later
1160+
auto const chargeLc = static_cast<int8_t>(pdg->GetParticle(candidate.pdgCode())->Charge()); // Retrieve charge
1161+
auto const chargeAssoc = static_cast<int8_t>(pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge
1162+
float cent = 100.0; // will be updated later
11631163

11641164
int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true);
11651165
bool isLcPrompt = candidate.originMcGen() == RecoDecay::OriginType::Prompt;

0 commit comments

Comments
 (0)