Skip to content

Commit 5ef29ad

Browse files
authored
[PWGDQ] Fix the QA histogram filling issue of muons in table-Maker-MC (AliceO2Group#11123)
1 parent 4e7b430 commit 5ef29ad

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
565565
hm->AddHistogram(histClass, "TPCnSigKa_Corr_pIN", "TPC n-#sigma(K) Corr. vs pIN", false, 100, 0.0, 10.0, VarManager::kPin, 100, -5.0, 5.0, VarManager::kTPCnSigmaKa_Corr);
566566
hm->AddHistogram(histClass, "TPCnSigPr_Corr_pIN", "TPC n-#sigma(p) Corr. vs pIN", false, 100, 0.0, 10.0, VarManager::kPin, 100, -5.0, 5.0, VarManager::kTPCnSigmaPr_Corr);
567567
}
568+
if (subGroupStr.Contains("tpcpid_nSigEl")) {
569+
hm->AddHistogram(histClass, "TPCnSigEl_TPCnSigPi", "TPC n-#sigma(e) . vs TPC n-#sigma(#pi)", false, 100, -5.0, 5.0, VarManager::kTPCnSigmaEl, 100, -5.0, 5.0, VarManager::kTPCnSigmaPi);
570+
hm->AddHistogram(histClass, "TPCnSigEl_TPCnSigKa", "TPC n-#sigma(e) . vs TPC n-#sigma(K)", false, 100, -5.0, 5.0, VarManager::kTPCnSigmaEl, 100, -5.0, 5.0, VarManager::kTPCnSigmaKa);
571+
hm->AddHistogram(histClass, "TPCnSigEl_TPCnSigPr", "TPC n-#sigma(e) . vs TPC n-#sigma(p)", false, 100, -5.0, 5.0, VarManager::kTPCnSigmaEl, 100, -5.0, 5.0, VarManager::kTPCnSigmaPr);
572+
}
568573
}
569574
}
570575
if (subGroupStr.Contains("postcalib")) {

PWGDQ/TableProducer/tableMakerMC.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ struct TableMakerMC {
831831
if (sig.CheckSignal(true, mctrack)) {
832832
mcflags |= (static_cast<uint16_t>(1) << i);
833833
if (fDoDetailedQA) {
834+
j = 0;
834835
for (auto& cut : fMuonCuts) {
835836
if (trackTempFilterMap & (uint8_t(1) << j)) {
836837
fHistMan->FillHistClass(Form("Muons_%s_%s", cut.GetName(), sig.GetName()), VarManager::fgValues); // fill the reconstructed truth
@@ -1387,6 +1388,7 @@ struct TableMakerMC {
13871388
if (sig.CheckSignal(true, mctrack)) {
13881389
mcflags |= (static_cast<uint16_t>(1) << i);
13891390
if (fDoDetailedQA) {
1391+
j = 0;
13901392
for (auto& cut : fMuonCuts) {
13911393
if (trackTempFilterMap & (uint8_t(1) << j)) {
13921394
fHistMan->FillHistClass(Form("Muons_%s_%s", cut.GetName(), sig.GetName()), VarManager::fgValues); // fill the reconstructed truth

0 commit comments

Comments
 (0)