Skip to content

Commit bfe3dab

Browse files
committed
Address review comments in Omegac QA workflow
1 parent 49f2a15 commit bfe3dab

3 files changed

Lines changed: 207 additions & 355 deletions

File tree

‎PWGHF/Core/HfMlResponseOmegacToOmegaPiQa.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
inputFeatures.emplace_back(candidate.GETTER()); \
5252
break; \
5353
}
54+
5455
namespace o2::analysis
5556
{
5657
enum class InputFeaturesOmegacToOmegaPi : uint8_t {

‎PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPiQa.cxx‎

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct HfCandidateSelectorToOmegaPiQa {
108108
// Mass window
109109
Configurable<double> v0MassWindow{"v0MassWindow", 0.01, "V0 mass window"};
110110
Configurable<double> cascadeMassWindow{"cascadeMassWindow", 0.01, "Cascade mass window"};
111-
Configurable<double> invMassCharmBaryonMin{"invMassCharmBaryonMin", 2.3, "Lower limit invariant mass spectrum charm baryon"}; // 2.4 Omegac0 only
111+
Configurable<double> invMassCharmBaryonMin{"invMassCharmBaryonMin", 2.3, "Lower limit invariant mass spectrum charm baryon"};
112112
Configurable<double> invMassCharmBaryonMax{"invMassCharmBaryonMax", 3.1, "Upper limit invariant mass spectrum charm baryon"};
113113

114114
// kinematic selections
@@ -131,8 +131,8 @@ struct HfCandidateSelectorToOmegaPiQa {
131131
Configurable<double> dcaCharmBaryonDauMax{"dcaCharmBaryonDauMax", 2.0, "Max DCA charm baryon daughters"};
132132

133133
// PID options
134-
Configurable<bool> usePidTpcOnly{"usePidTpcOnly", false, "Perform PID using only TPC"};
135-
Configurable<bool> usePidTpcTofCombined{"usePidTpcTofCombined", true, "Perform PID using TPC & TOF"};
134+
Configurable<bool> usePidTpcOnly{"usePidTpcOnly", true, "Perform PID using only TPC"};
135+
Configurable<bool> usePidTpcTofCombined{"usePidTpcTofCombined", false, "Perform PID using TPC or TOF"};
136136

137137
// PID - TPC selections
138138
Configurable<double> ptPiPidTpcMin{"ptPiPidTpcMin", -1, "Lower bound of track pT for TPC PID for pion selection"};
@@ -258,10 +258,6 @@ struct HfCandidateSelectorToOmegaPiQa {
258258
registry.get<TH1>(HIST("hSelStatusCluster"))->GetXaxis()->SetBinLabel(5, "TpcCluster PiFromCharm");
259259
registry.get<TH1>(HIST("hSelStatusCluster"))->GetXaxis()->SetBinLabel(6, "ItsCluster PiFromCharm");
260260

261-
// registry.add("hSelMassLam", "hSelMassLam;status;entries", {HistType::kTH1D, {axisSel}});
262-
// registry.add("hSelMassCasc", "hSelMassCasc;status;entries", {HistType::kTH1D, {axisSel}});
263-
// registry.add("hSelMassCharmBaryon", "hSelMassCharmBaryon;status;entries", {HistType::kTH1D, {axisSel}});
264-
265261
registry.add("hSelStatusPID", "hSelStatusPID;# of events Passed;;", {HistType::kTH1F, {{4, -0.5, 3.5}}});
266262
registry.get<TH1>(HIST("hSelStatusPID"))->GetXaxis()->SetBinLabel(1, "All");
267263
registry.get<TH1>(HIST("hSelStatusPID"))->GetXaxis()->SetBinLabel(2, "Lambda");
@@ -378,7 +374,7 @@ struct HfCandidateSelectorToOmegaPiQa {
378374
// Selection on LF related informations
379375
// returns true if all cuts are passed
380376
template <int svReco, typename T>
381-
bool selectOnLf(const T& candidate, const int& inputPtBin)
377+
bool selectOnLf(const T& candidate)
382378
{
383379

384380
registry.fill(HIST("hSelStatusLf"), 0.0);
@@ -656,7 +652,7 @@ struct HfCandidateSelectorToOmegaPiQa {
656652
// pT selection
657653
auto ptCandOmegac = RecoDecay::pt(candidate.pxCharmBaryon(), candidate.pyCharmBaryon());
658654

659-
if (ptCandOmegac <= ptCandMin || ptCandOmegac >= ptCandMax) {
655+
if (ptCandOmegac < ptCandMin || ptCandOmegac > ptCandMax) {
660656
resultSelections = false;
661657
}
662658

@@ -666,7 +662,7 @@ struct HfCandidateSelectorToOmegaPiQa {
666662
}
667663

668664
// Topological selection
669-
const bool selectionResOnLF = selectOnLf<svReco>(candidate, pTBin);
665+
const bool selectionResOnLF = selectOnLf<svReco>(candidate);
670666
const bool selectionResOnHF = selectOnHf<svReco>(candidate, pTBin);
671667
if (!selectionResOnLF || !selectionResOnHF) {
672668
resultSelections = false;
@@ -804,6 +800,12 @@ struct HfCandidateSelectorToOmegaPiQa {
804800
statusInvMassCharmBaryon = true;
805801
}
806802

803+
// Fill in selection result
804+
if (!statusPidLambda || !statusPidCascade || !statusPidCharmBaryon ||
805+
!statusInvMassLambda || !statusInvMassCascade || !statusInvMassCharmBaryon) {
806+
resultSelections = false;
807+
}
808+
807809
// Check candidate pT range for ML inference
808810
if (applyMl && findBin(binsPtMl, ptCandOmegac) == -1) {
809811
resultSelections = false;
@@ -837,11 +839,6 @@ struct HfCandidateSelectorToOmegaPiQa {
837839
hfMlSelToOmegaPi(outputMlOmegac);
838840
}
839841

840-
// Fill in selection result
841-
if (!statusPidLambda || !statusPidCascade || !statusPidCharmBaryon ||
842-
!statusInvMassLambda || !statusInvMassCascade || !statusInvMassCharmBaryon) {
843-
resultSelections = false;
844-
}
845842
hfSelToOmegaPi(statusPidLambda, statusPidCascade, statusPidCharmBaryon, statusInvMassLambda, statusInvMassCascade, statusInvMassCharmBaryon, resultSelections, infoTpcStored, infoTofStored,
846843
trackPiFromCharm.tpcNSigmaPi(), trackKaFromCasc.tpcNSigmaKa(), trackPiFromLam.tpcNSigmaPi(), trackPrFromLam.tpcNSigmaPr(),
847844
trackPiFromCharm.tofNSigmaPi(), trackKaFromCasc.tofNSigmaKa(), trackPiFromLam.tofNSigmaPi(), trackPrFromLam.tofNSigmaPr());

0 commit comments

Comments
 (0)