Skip to content

Commit 9a6d720

Browse files
authored
Update correlatorDplusHadrons.cxx
Fixed for NDaughters
1 parent 82883d5 commit 9a6d720

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
@@ -162,6 +162,7 @@ struct HfCorrelatorDplusHadrons {
162162
Produces<aod::TrkRecInfoDplus> entryTrackRecoInfo;
163163
Produces<aod::Dplus> entryDplus;
164164
Produces<aod::Hadron> entryHadron;
165+
static constexpr std::size_t NDaughters{3u};
165166

166167
Configurable<int> selectionFlagDplus{"selectionFlagDplus", 7, "Selection Flag for Dplus"}; // 7 corresponds to topo+PID cuts
167168
Configurable<int> numberEventsMixed{"numberEventsMixed", 5, "Number of events mixed in ME process"};
@@ -558,8 +559,7 @@ struct HfCorrelatorDplusHadrons {
558559
listDaughters.clear();
559560
RecoDecay::getDaughters(particle1, &listDaughters, arrDaughDplusPDG, 2);
560561
int counterDaughters = 0;
561-
int nDplusDaughters = 3;
562-
if (listDaughters.size() == static_cast<size_t>(nDplusDaughters)) {
562+
if (listDaughters.size() == NDaughters) {
563563
for (const auto& dauIdx : listDaughters) {
564564
auto daughI = mcParticles.rawIteratorAt(dauIdx - mcParticles.offset());
565565
counterDaughters += 1;

0 commit comments

Comments
 (0)