@@ -425,9 +425,6 @@ struct HfCorrelatorDplusHadrons {
425425 float const multiplicityFT0M = collision.multFT0M ();
426426
427427 // MC reco level
428- bool isDplusPrompt = false ;
429- bool isDplusNonPrompt = false ;
430- bool isDplusSignal = false ;
431428 for (const auto & candidate : candidates) {
432429 // rapidity and pT selections
433430 if (std::abs (HfHelper::yDplus (candidate)) >= yCandMax || candidate.pt () <= ptCandMin || candidate.pt () >= ptCandMax) {
@@ -447,10 +444,10 @@ struct HfCorrelatorDplusHadrons {
447444 efficiencyWeightD = 1 . / efficiencyD->at (effBinD);
448445 }
449446 // Dplus flag
450- isDplusSignal = std::abs (candidate.flagMcMatchRec ()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi;
447+ bool isDplusSignal = std::abs (candidate.flagMcMatchRec ()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi;
451448 // prompt and non-prompt division
452- isDplusPrompt = candidate.originMcRec () == RecoDecay::OriginType::Prompt;
453- isDplusNonPrompt = candidate.originMcRec () == RecoDecay::OriginType::NonPrompt;
449+ bool isDplusPrompt = candidate.originMcRec () == RecoDecay::OriginType::Prompt;
450+ bool isDplusNonPrompt = candidate.originMcRec () == RecoDecay::OriginType::NonPrompt;
454451
455452 std::vector<float > outputMl = {-1 ., -1 ., -1 .};
456453
@@ -548,8 +545,6 @@ struct HfCorrelatorDplusHadrons {
548545 int poolBin = corrBinningMcGen.getBin (std::make_tuple (mcCollision.posZ (), mcCollision.multMCFT0A ()));
549546 registry.fill (HIST (" hMultFT0AMcGen" ), mcCollision.multMCFT0A ());
550547
551- bool isDplusPrompt = false ;
552- bool isDplusNonPrompt = false ;
553548 // MC gen level
554549 for (const auto & particle1 : mcParticles) {
555550 // check if the particle is Dplus (for general plot filling and selection, so both cases are fine) - NOTE: decay channel is not probed!
@@ -592,8 +587,8 @@ struct HfCorrelatorDplusHadrons {
592587 registry.fill (HIST (" hYMCGen" ), yD);
593588
594589 // prompt and non-prompt division
595- isDplusPrompt = particle1.originMcGen () == RecoDecay::OriginType::Prompt;
596- isDplusNonPrompt = particle1.originMcGen () == RecoDecay::OriginType::NonPrompt;
590+ bool isDplusPrompt = particle1.originMcGen () == RecoDecay::OriginType::Prompt;
591+ bool isDplusNonPrompt = particle1.originMcGen () == RecoDecay::OriginType::NonPrompt;
597592 if (isDplusPrompt) {
598593 registry.fill (HIST (" hPtCandMcGenPrompt" ), particle1.pt ());
599594 } else if (isDplusNonPrompt) {
0 commit comments