Skip to content

Commit f5f7fbb

Browse files
committed
first histogram filling test
1 parent eab29c9 commit f5f7fbb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +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,{{40,2.3,2.7,200,0,20}}});
10961097
registry.get<TH1>(HIST("hDebugRec"))->GetXaxis()->SetBinLabel(1 + TotalRec, "total");
10971098
registry.get<TH1>(HIST("hDebugRec"))->GetXaxis()->SetBinLabel(1 + XicToFinalState, "#Xi^{+}_{c} #rightarrow #pi^{#plus} #pi^{#plus} #pi^{#minus} p #pi^{#minus}");
10981099
registry.get<TH1>(HIST("hDebugRec"))->GetXaxis()->SetBinLabel(1 + XiToPiPPi, "#Xi^{#minus} #rightarrow #pi^{#minus} p #pi^{#minus}");
@@ -1345,6 +1346,9 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
13451346

13461347
// Check whether the charm baryon is non-prompt (from a b quark).
13471348
if (flag != 0) {
1349+
//fill inclusive generated Xic+
1350+
registry.fill("ht_pt_gen",particle.y(),particle.pt());
1351+
13481352
origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers);
13491353
// Calculate the decay length of the generated particle
13501354
auto dau0 = particle.template daughters_as<aod::McParticles>().begin();

‎PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ struct HfCandidateSelectorXicToXiPiPi {
245245
registry.add("hNCrossedRowsTpcBachelorPionRecBkg", "Reconstructed background;#it{N}_{rows}^{TPC} (#pi #leftarrow #Xi);entries", {HistType::kTH1F, {{103, 49.5, 152.5}}});
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}}});
248+
///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}}});
248250
}
249251
}
250252

@@ -651,6 +653,7 @@ struct HfCandidateSelectorXicToXiPiPi {
651653
if constexpr (IsMc) {
652654
if (isMatchedSignal) {
653655
registry.fill(HIST("hSelCandidatesRecSig"), PidSelected);
656+
registry.fill(HIST("hmass_pt_reco_truth"),hfCandXic.invMassXicPlus(),hfCandXic.pt());
654657
} else {
655658
registry.fill(HIST("hSelCandidatesRecBkg"), PidSelected);
656659
}

0 commit comments

Comments
 (0)