Skip to content

Commit 708a7ea

Browse files
authored
Update candidateSelectorOmegac0ToOmegaPi.cxx
1 parent c736365 commit 708a7ea

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ struct HfCandidateSelectorToOmegaPi {
156156
HistogramRegistry registry{"registry"}; // for QA of selections
157157

158158
OutputObj<TH1D> hInvMassCharmBaryon{TH1D("hInvMassCharmBaryon", "Charm baryon invariant mass;inv mass;entries", 500, 2.3, 3.1)};
159+
OutputObj<TH1D> PtCharmBaryon{TH1D("PtCharmBaryon", "Charm baryon transverse momentum before sel;Pt;entries", 8000, 0., 80)};
159160

160161
void init(InitContext const&)
161162
{
@@ -192,6 +193,7 @@ struct HfCandidateSelectorToOmegaPi {
192193
registry.add("hStatusCheck", "Check consecutive selections status;status;entries", {HistType::kTH1D, {{12, 0., 12.}}});
193194

194195
// for QA of the selections (bin 0 -> candidates that did not pass the selection, bin 1 -> candidates that passed the selection)
196+
registry.add("hSelPtOmegac", "hSelPtOmegac;status;entries", {HistType::kTH1D, {axisSel}});
195197
registry.add("hSelSignDec", "hSelSignDec;status;entries", {HistType::kTH1D, {axisSel}});
196198
registry.add("hSelEtaPosV0Dau", "hSelEtaPosV0Dau;status;entries", {HistType::kTH1D, {axisSel}});
197199
registry.add("hSelEtaNegV0Dau", "hSelEtaNegV0Dau;status;entries", {HistType::kTH1D, {axisSel}});
@@ -425,6 +427,15 @@ struct HfCandidateSelectorToOmegaPi {
425427
}
426428
}
427429

430+
//Omegac Pt selection
431+
PtCharmBaryon->Fill(std::abs(candidate.kfptOmegac()));
432+
if (std::abs(candidate.kfptOmegac()) < ptCandMin || std::abs(candidate.kfptOmegac()) > ptCandMax) {
433+
resultSelections = false;
434+
registry.fill(HIST("hSelPtOmegac"), 0);
435+
} else {
436+
registry.fill(HIST("hSelPtOmegac"), 1);
437+
}
438+
428439
// v0&Casc&Omegac ldl selection
429440
if ((candidate.v0ldl() < v0LdlMin) || (candidate.cascldl() < cascLdlMin) || (candidate.omegacldl() > omegacLdlMax)) {
430441
resultSelections = false;

0 commit comments

Comments
 (0)