Skip to content

Commit 833f473

Browse files
committed
Fix empty histograms in OmegaC selector
1 parent 2c30cf3 commit 833f473

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/// \author Federica Zanone <federica.zanone@cern.ch>, Heidelberg University
1515
/// \author Ruiqi Yin <ruiqi.yin@cern.ch>, Fudan University
1616
/// \author Yunfan Liu <yunfan.liu@cern.ch>, China University of Geosciences
17+
/// \author Fabio Catalano <fabio.catalano@cern.ch>, University of Houston
1718

1819
#include <string>
1920
#include <vector>
@@ -223,7 +224,6 @@ struct HfCandidateSelectorToOmegaPi {
223224
registry.add("hStatusCheck", "Check consecutive selections status;status;entries", {HistType::kTH1D, {{12, 0., 12.}}});
224225

225226
// for QA of the selections (bin 0 -> candidates that did not pass the selection, bin 1 -> candidates that passed the selection)
226-
registry.add("hSelPtOmegac", "hSelPtOmegac;status;entries", {HistType::kTH1D, {axisSel}});
227227
registry.add("hSelSignDec", "hSelSignDec;status;entries", {HistType::kTH1D, {axisSel}});
228228
registry.add("hSelEtaPosV0Dau", "hSelEtaPosV0Dau;status;entries", {HistType::kTH1D, {axisSel}});
229229
registry.add("hSelEtaNegV0Dau", "hSelEtaNegV0Dau;status;entries", {HistType::kTH1D, {axisSel}});
@@ -254,6 +254,7 @@ struct HfCandidateSelectorToOmegaPi {
254254
registry.add("hSelDcaXYToPvKaFromCasc", "hSelDcaXYToPvKaFromCasc;status;entries", {HistType::kTH1D, {axisSel}});
255255

256256
if (KfconfigurableGroup.applyKFpreselections) {
257+
registry.add("hSelPtOmegac", "hSelPtOmegac;status;entries", {HistType::kTH1D, {axisSel}});
257258
registry.add("hSelCompetingCasc", "hSelCompetingCasc;status;entries", {HistType::kTH1D, {axisSel}});
258259
registry.add("hSelKFstatus", "hSelKFstatus;status;entries", {HistType::kTH1D, {axisSel}});
259260
registry.add("hSelV0_Casc_Omegacldl", "hSelV0_Casc_Omegacldl;status;entries", {HistType::kTH1D, {axisSel}});
@@ -340,7 +341,6 @@ struct HfCandidateSelectorToOmegaPi {
340341
auto trackPrFromLam = trackV0PosDau;
341342

342343
auto ptCand = candidate.ptCharmBaryon();
343-
344344
int8_t signDecay = candidate.signDecay(); // sign of pi <- cascade
345345

346346
if (signDecay > 0) {
@@ -507,7 +507,6 @@ struct HfCandidateSelectorToOmegaPi {
507507
}
508508

509509
if constexpr (ConstructMethod == hf_cand_casc_lf::ConstructMethod::KfParticle) {
510-
;
511510
// KFParticle Preselections(kfsel)
512511
if (KfconfigurableGroup.applyKFpreselections) {
513512

@@ -529,7 +528,6 @@ struct HfCandidateSelectorToOmegaPi {
529528
}
530529

531530
// Omegac Pt selection
532-
hPtCharmBaryon->Fill(std::abs(candidate.kfptOmegac()));
533531
if (std::abs(candidate.kfptOmegac()) < ptCandMin || std::abs(candidate.kfptOmegac()) > ptCandMax) {
534532
resultSelections = false;
535533
registry.fill(HIST("hSelPtOmegac"), 0);
@@ -798,6 +796,11 @@ struct HfCandidateSelectorToOmegaPi {
798796

799797
if (statusPidLambda && statusPidCascade && statusPidCharmBaryon && statusInvMassLambda && statusInvMassCascade && statusInvMassCharmBaryon && resultSelections) {
800798
hInvMassCharmBaryon->Fill(invMassCharmBaryon);
799+
if constexpr (ConstructMethod == hf_cand_casc_lf::ConstructMethod::KfParticle) {
800+
hPtCharmBaryon->Fill(candidate.kfptOmegac());
801+
} else {
802+
hPtCharmBaryon->Fill(ptCand);
803+
}
801804
}
802805
}
803806
} // end process

0 commit comments

Comments
 (0)