Skip to content

Commit b1e6ac7

Browse files
author
Francesco Mazzaschi
committed
debug histo
1 parent cc7d9b1 commit b1e6ac7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ struct nucleiSpectra {
514514
spectra.add("hTpcSignalData", "Specific energy loss", HistType::kTH2F, {{600, -6., 6., "#it{p} (GeV/#it{c})"}, {1400, 0, 1400, "d#it{E} / d#it{X} (a. u.)"}});
515515
spectra.add("hTpcSignalDataSelected", "Specific energy loss for selected particles", HistType::kTH2F, {{600, -6., 6., "#it{p} (GeV/#it{c})"}, {1400, 0, 1400, "d#it{E} / d#it{X} (a. u.)"}});
516516
spectra.add("hTofSignalData", "TOF beta", HistType::kTH2F, {{500, 0., 5., "#it{p} (GeV/#it{c})"}, {750, 0, 1.5, "TOF #beta"}});
517+
spectra.add("hMCDCAxyVsDecRadius", "DCA xy vs DecayRadius", HistType::kTH2F, {{100, 0., 0.1, "Decay radius"}, {1500, -0.05, 0.05, "DCA_{xy} (cm)"}});
517518
for (int iC{0}; iC < 2; ++iC) {
518519
nuclei::hGloTOFtracks[iC] = spectra.add<TH2>(fmt::format("hTPCTOFtracks{}", nuclei::matter[iC]).data(), fmt::format("Global vs TOF matched {} tracks in a collision", nuclei::chargeLabelNames[iC]).data(), HistType::kTH2D, {{300, -0.5, 300.5, "Number of global tracks"}, {300, -0.5, 300.5, "Number of TOF matched tracks"}});
519520

@@ -979,6 +980,8 @@ struct nucleiSpectra {
979980
if (std::find(nuclei::hfMothCodes.begin(), nuclei::hfMothCodes.end(), std::abs(motherparticle.pdgCode())) != nuclei::hfMothCodes.end()) {
980981
c.flags |= kIsSecondaryFromWeakDecay;
981982
MotherpdgCode = motherparticle.pdgCode();
983+
float decRadius = std::hypot(particle.vx() - motherparticle.vx(), particle.vy() - motherparticle.vy());
984+
spectra.fill(HIST("hMCDCAxyVsDecRadius"), decRadius, c.DCAxy);
982985
break;
983986
}
984987
}

0 commit comments

Comments
 (0)