Skip to content

Commit ff811d9

Browse files
committed
fix the unit missmatch in QA histogram filling
1 parent 5754199 commit ff811d9

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,12 @@ struct HfCandidateCreatorXicToXiPiPi {
541541
registry.fill(HIST("hCovSVXZ"), covMatrixSV[3]);
542542
registry.fill(HIST("hCovSVZZ"), covMatrixSV[5]);
543543
// DCAs of prongs
544-
registry.fill(HIST("hDcaXYProngs"), trackCasc.getPt(), impactParameterCasc.getY()*10000);
545-
registry.fill(HIST("hDcaXYProngs"), trackCharmBachelor0.pt(), impactParameter0.getY()*10000);
546-
registry.fill(HIST("hDcaXYProngs"), trackCharmBachelor1.pt(), impactParameter1.getY()*10000);
547-
registry.fill(HIST("hDcaZProngs"), trackCasc.getPt(), impactParameterCasc.getZ()*10000);
548-
registry.fill(HIST("hDcaZProngs"), trackCharmBachelor0.pt(), impactParameter0.getZ()*10000);
549-
registry.fill(HIST("hDcaZProngs"), trackCharmBachelor1.pt(), impactParameter1.getZ()*10000);
544+
registry.fill(HIST("hDcaXYProngs"), trackCasc.getPt(), impactParameterCasc.getY()*10000.f);
545+
registry.fill(HIST("hDcaXYProngs"), trackCharmBachelor0.pt(), impactParameter0.getY()*10000.f);
546+
registry.fill(HIST("hDcaXYProngs"), trackCharmBachelor1.pt(), impactParameter1.getY()*10000.f);
547+
registry.fill(HIST("hDcaZProngs"), trackCasc.getPt(), impactParameterCasc.getZ()*10000.f);
548+
registry.fill(HIST("hDcaZProngs"), trackCharmBachelor0.pt(), impactParameter0.getZ()*10000.f);
549+
registry.fill(HIST("hDcaZProngs"), trackCharmBachelor1.pt(), impactParameter1.getZ()*10000.f);
550550
}
551551

552552
//---------------------------------fill candidate table rows-------------------------------------------------------------------------------------------
@@ -873,9 +873,9 @@ struct HfCandidateCreatorXicToXiPiPi {
873873
registry.fill(HIST("hCovSVXZ"), covMatrixXicPlus[3]);
874874
registry.fill(HIST("hCovSVZZ"), covMatrixXicPlus[5]);
875875
// DCAs of prongs
876-
registry.fill(HIST("hDcaXYProngs"), kfXi.GetPt(), impactParameterXiXY);
877-
registry.fill(HIST("hDcaXYProngs"), kfCharmBachelor0.GetPt(), impactParameterPi0XY);
878-
registry.fill(HIST("hDcaXYProngs"), kfCharmBachelor1.GetPt(), impactParameterPi1XY);
876+
registry.fill(HIST("hDcaXYProngs"), kfXi.GetPt(), impactParameterXiXY*10000.f);
877+
registry.fill(HIST("hDcaXYProngs"), kfCharmBachelor0.GetPt(), impactParameterPi0XY*10000.f);
878+
registry.fill(HIST("hDcaXYProngs"), kfCharmBachelor1.GetPt(), impactParameterPi1XY*10000.f);
879879
}
880880

881881
//------------------------------fill candidate table rows--------------------------------------
@@ -1093,7 +1093,7 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
10931093
registry.add("hDecayedPions", "hDecayedPions", {HistType::kTH1F, {{5, -0.5, 4.5}}});
10941094
registry.add("hInteractionsWithMaterial", "hInteractionsWithMaterial", {HistType::kTH1F, {{6, -0.5, 5.5}}});
10951095
registry.add("hDebugRec", "hDebugRec", {HistType::kTH1F, {{4, -0.5, 3.5}}});
1096-
registry.add("hy_pt_gen", "Generated MC", {HistType::kTH2F, {{20, -1.0, 1.0}, {200, 0, 20}}});
1096+
registry.add("hYPtGen", "Generated MC", {HistType::kTH2F, {{20, -1.0, 1.0}, {200, 0, 20}}});
10971097
registry.get<TH1>(HIST("hDebugRec"))->GetXaxis()->SetBinLabel(1 + TotalRec, "total");
10981098
registry.get<TH1>(HIST("hDebugRec"))->GetXaxis()->SetBinLabel(1 + XicToFinalState, "#Xi^{+}_{c} #rightarrow #pi^{#plus} #pi^{#plus} #pi^{#minus} p #pi^{#minus}");
10991099
registry.get<TH1>(HIST("hDebugRec"))->GetXaxis()->SetBinLabel(1 + XiToPiPPi, "#Xi^{#minus} #rightarrow #pi^{#minus} p #pi^{#minus}");
@@ -1348,7 +1348,7 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
13481348
// Check whether the charm baryon is non-prompt (from a b quark).
13491349
if (flag != 0) {
13501350
// fill inclusive generated Xic+
1351-
registry.fill(HIST("hy_pt_gen"), particle.y(), particle.pt());
1351+
registry.fill(HIST("hYPtGen"), particle.y(), particle.pt());
13521352

13531353
origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers);
13541354
// Calculate the decay length of the generated particle

‎PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct HfCandidateSelectorXicToXiPiPi {
246246
registry.add("hNCrossedRowsTpcV0PosDauRecBkg", "Reconstructed background;#it{N}_{rows}^{TPC} (V0 pos. dau.);entries", {HistType::kTH1F, {{103, 49.5, 152.5}}});
247247
registry.add("hNCrossedRowsTpcV0NegDauRecBkg", "Reconstructed background;#it{N}_{rows}^{TPC} (V0 neg. dau.);entries", {HistType::kTH1F, {{103, 49.5, 152.5}}});
248248
/// reconstructed MC
249-
registry.add("hmass_pt_reco_truth", "Reconstructed truth matching MC;inv.mass(#Xi#pi#pi) [GeV/c^{2}];p_{T} [GeV/c]", {HistType::kTH2F, {{40, 2.3, 2.7}, {200, 0, 20}}});
249+
registry.add("hMassPtRecSig", "Reconstructed truth matching MC;inv.mass(#Xi#pi#pi) [GeV/c^{2}];p_{T} [GeV/c]", {HistType::kTH2F, {{40, 2.3, 2.7}, {200, 0, 20}}});
250250
}
251251
}
252252

@@ -643,7 +643,7 @@ struct HfCandidateSelectorXicToXiPiPi {
643643
if constexpr (IsMc) {
644644
if (isMatchedSignal) {
645645
registry.fill(HIST("hSelCandidatesRecSig"), PidSelected);
646-
registry.fill(HIST("hmass_pt_reco_truth"), hfCandXic.invMassXicPlus(), hfCandXic.pt());
646+
registry.fill(HIST("hMassPtRecSig"), hfCandXic.invMassXicPlus(), hfCandXic.pt());
647647
} else {
648648
registry.fill(HIST("hSelCandidatesRecBkg"), PidSelected);
649649
}

0 commit comments

Comments
 (0)