@@ -102,8 +102,8 @@ template <auto& Prefix>
102102struct ConfD0QaBinning : o2::framework::ConfigurableGroup {
103103 std::string prefix = Prefix;
104104 o2::framework::Configurable<bool > plotTopology{" plotTopology" , true , " Generate topological QA plots (cpa, decayLength, impactParameterProduct, cosThetaStar)" };
105- o2::framework::ConfigurableAxis massD0{" massD0" , {{200 , 1.7 , 2.0 }}, " Mass for D0 (Kpi) hypothesis " };
106- o2::framework::ConfigurableAxis massD0bar{" massD0bar" , {{200 , 1.7 , 2.0 }}, " Mass for D0bar (piK) hypothesis " };
105+ o2::framework::ConfigurableAxis massD0{" massD0" , {{200 , 1.7 , 2.0 }}, " Mass of candidates selected as D0 " };
106+ o2::framework::ConfigurableAxis massD0bar{" massD0bar" , {{200 , 1.7 , 2.0 }}, " Mass of candidates selected as D0bar " };
107107 o2::framework::ConfigurableAxis mlScore{" mlScore" , {{100 , 0 .f , 1 .f }}, " BDT ML score (bkg/prompt/non-prompt)" };
108108 o2::framework::ConfigurableAxis cpa{" cpa" , {{100 , 0 .9f , 1 .f }}, " Cosine of pointing angle" };
109109 o2::framework::ConfigurableAxis decayLength{" decayLength" , {{200 , 0 .f , 0 .2f }}, " Decay length (cm)" };
@@ -126,8 +126,8 @@ constexpr std::array<histmanager::HistInfo<CharmHadronHist>, kCharmHadronHistLas
126126 {kPtVsEta , o2::framework::HistType::kTH2F , " hPtVsEta" , " p_{T} vs #eta; p_{T} (GeV/#it{c}); #eta" },
127127 {kPtVsPhi , o2::framework::HistType::kTH2F , " hPtVsPhi" , " p_{T} vs #varphi; p_{T} (GeV/#it{c}); #varphi" },
128128 {kPhiVsEta , o2::framework::HistType::kTH2F , " hPhiVsEta" , " #varphi vs #eta; #varphi; #eta" },
129- {kMassD0 , o2::framework::HistType::kTH1F , " hMassD0" , " D0 (K#pi) mass; m_{K#pi } (GeV/#it{c}^{2}); Entries" },
130- {kMassD0bar , o2::framework::HistType::kTH1F , " hMassD0bar" , " #bar{D0} (#piK) mass ; m_{#piK } (GeV/#it{c}^{2}); Entries" },
129+ {kMassD0 , o2::framework::HistType::kTH1F , " hMassD0" , " Invariant mass of D^{0} candidates ; m_{Inv } (GeV/#it{c}^{2}); Entries" },
130+ {kMassD0bar , o2::framework::HistType::kTH1F , " hMassD0bar" , " Invariant mass of #bar{D}^{0} candidates ; m_{Inv } (GeV/#it{c}^{2}); Entries" },
131131 {kMlBkg , o2::framework::HistType::kTH1F , " hMlBkg" , " BDT background score; ML score (bkg); Entries" },
132132 {kMlPrompt , o2::framework::HistType::kTH1F , " hMlPrompt" , " BDT prompt score; ML score (prompt); Entries" },
133133 {kMlNonPrompt , o2::framework::HistType::kTH1F , " hMlNonPrompt" , " BDT non-prompt score; ML score (non-prompt); Entries" },
@@ -424,8 +424,12 @@ class CharmHadronHistManager
424424 template <typename T>
425425 void fillQa (T const & charmHadronCandidate)
426426 {
427- mHistogramRegistry ->fill (HIST (charmHadronPrefix) + HIST (QaDir) + HIST (getHistName (kMassD0 , HistTable)), charmHadronCandidate.massD0 ());
428- mHistogramRegistry ->fill (HIST (charmHadronPrefix) + HIST (QaDir) + HIST (getHistName (kMassD0bar , HistTable)), charmHadronCandidate.massD0bar ());
427+ // invariant mass split by hypothesis: D0 (sign > 0) or D0bar (sign < 0)
428+ if (charmHadronCandidate.sign () > 0 ) {
429+ mHistogramRegistry ->fill (HIST (charmHadronPrefix) + HIST (QaDir) + HIST (getHistName (kMassD0 , HistTable)), charmHadronCandidate.mass ());
430+ } else {
431+ mHistogramRegistry ->fill (HIST (charmHadronPrefix) + HIST (QaDir) + HIST (getHistName (kMassD0bar , HistTable)), charmHadronCandidate.mass ());
432+ }
429433
430434 // BDT scores of the accepted hypothesis: D0 (sign > 0) or D0bar (sign < 0)
431435 float mlBkg = 0 .f ;
0 commit comments