@@ -52,11 +52,12 @@ constexpr std::array<int, nBeautyHadrons> PdgCodesBeauty = {Pdg::kB0, Pdg::kBPlu
5252
5353struct HfTaskMcGenPtRapShapes {
5454
55+ Configurable<bool > rejectBackground{" rejectBackground" , false , " Reject particles from background events" };
56+ Configurable<float > absRapidityMax{" absRapidityMax" , 0.5 , " Absolute maximum rapidity" };
5557 ConfigurableAxis axisPtCharm{" axisPtCharm" , {1000 , 0 .f , 100 .f }, " Binning for the pT axis of charm hadrons" };
5658 ConfigurableAxis axisPtBeauty{" axisPtBeauty" , {3000 , 0 .f , 300 .f }, " Binning for the pT axis of beauty hadrons" };
5759 ConfigurableAxis axisRapCharm{" axisRapCharm" , {100 , -1 .f , 1 .f }, " Binning for the y axis of charm hadrons" };
5860 ConfigurableAxis axisRapBeauty{" axisRapBeauty" , {100 , -1 .f , 1 .f }, " Binning for the y axis of beauty hadrons" };
59- Configurable<bool > rejectBackground{" rejectBackground" , false , " Reject particles from background events" };
6061
6162 std::array<std::shared_ptr<TH2>, nCharmHadrons> histRapVsPtCharmPrompt{};
6263 std::array<std::shared_ptr<TH2>, nCharmHadrons> histRapVsPtCharmNonPrompt{};
@@ -98,7 +99,7 @@ struct HfTaskMcGenPtRapShapes {
9899 histRapVsPtCharmPrompt[idxCharm]->Fill (pt, rap);
99100 } else if (origin == RecoDecay::OriginType::NonPrompt) {
100101 histRapVsPtCharmNonPrompt[idxCharm]->Fill (pt, rap);
101- if (std::abs (rap) < 0.5 ) {
102+ if (std::abs (rap) < absRapidityMax ) {
102103 auto bMother = mcParticles.rawIteratorAt (idxBhadMothers[0 ]);
103104 histPtCharmVsPtBeautyNonPrompt[idxCharm]->Fill (bMother.pt (), pt);
104105 }
0 commit comments