Skip to content

Commit e363d4c

Browse files
authored
Update correlatorDplusHadrons.cxx
Fixed Correlator for Megalinter errors
1 parent c7e5ab6 commit e363d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ struct HfCorrelatorDplusHadrons {
558558
listDaughters.clear();
559559
RecoDecay::getDaughters(particle1, &listDaughters, arrDaughDplusPDG, 2);
560560
int counterDaughters = 0;
561-
int nDaughters = listDaughters.size();
562-
if (nDaughters == 3) {
561+
int nDplusDaughters = 3;
562+
if (listDaughters.size() == nDplusDaughters) {
563563
for (const auto& dauIdx : listDaughters) {
564564
auto daughI = mcParticles.rawIteratorAt(dauIdx - mcParticles.offset());
565565
counterDaughters += 1;

0 commit comments

Comments
 (0)