Skip to content
29 changes: 14 additions & 15 deletions PWGHF/TableProducer/candidateSelectorOmegac0Xic0ToOmegaKa.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGHF/TableProducer/candidateSelectorOmegac0Xic0ToOmegaKa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

Declare struct members in the conventional order. See the PWGHF coding guidelines.

Check failure on line 1 in PWGHF/TableProducer/candidateSelectorOmegac0Xic0ToOmegaKa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -62,10 +62,10 @@
// Produces<aod::HfMlSelOmegaKaToOmegaKa> hfMlSelToOmegaKa;

// LF analysis selections
Configurable<double> radiusCascMin{"radiusCascMin", 0.5, "Min cascade radius"};
Configurable<double> radiusCascMin{"radiusCascMin", 0.1, "Min cascade radius"};
Configurable<double> radiusV0Min{"radiusV0Min", 1.1, "Min V0 radius"};
Configurable<double> cosPAV0Min{"cosPAV0Min", 0.97, "Min valueCosPA V0"};
Configurable<double> cosPACascMin{"cosPACascMin", 0.97, "Min value CosPA cascade"};
Configurable<double> cosPAV0Min{"cosPAV0Min", 0.95, "Min valueCosPA V0"};
Configurable<double> cosPACascMin{"cosPACascMin", 0.95, "Min value CosPA cascade"};
Configurable<double> dcaCascDauMax{"dcaCascDauMax", 1.0, "Max DCA cascade daughters"};
Configurable<double> dcaV0DauMax{"dcaV0DauMax", 1.0, "Max DCA V0 daughters"};
Configurable<float> dcaBachToPvMin{"dcaBachToPvMin", 0.04, "DCA Bach To PV"};
Expand All @@ -92,8 +92,8 @@
Configurable<double> impactParameterXYCascMin{"impactParameterXYCascMin", 0., "Min dcaxy cascade track to PV"};
Configurable<double> impactParameterXYCascMax{"impactParameterXYCascMax", 10., "Max dcaxy cascade track to PV"};

Configurable<double> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
Configurable<double> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
Configurable<double> ptCandMin{"ptCandMin", 1., "Lower bound of candidate pT"};
Configurable<double> ptCandMax{"ptCandMax", 12., "Upper bound of candidate pT"};

Configurable<double> dcaCharmBaryonDauMax{"dcaCharmBaryonDauMax", 2.0, "Max DCA charm baryon daughters"};

Expand Down Expand Up @@ -142,7 +142,7 @@
Configurable<int> nClustersItsInnBarrMin{"nClustersItsInnBarrMin", 1, "Minimum number of ITS clusters in inner barrel requirement for pi <- charm baryon"};
Configurable<float> itsChi2PerClusterMax{"itsChi2PerClusterMax", 36, "Maximum value of chi2 fit over ITS clusters for pi <- charm baryon"};

ConfigurableAxis thnConfigAxisMass{"thnConfigAxisMass", {120, 2.4, 3.1}, "Cand. inv-mass bins"};

Check failure on line 145 in PWGHF/TableProducer/candidateSelectorOmegac0Xic0ToOmegaKa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

HfCandidateSelectorToOmegaKa: ConfigurableAxis appears too early (before end of using).
ConfigurableAxis thnConfigAxisPt{"thnConfigAxisPt", {100, 0, 20}, "Cand. pT bins"};
ConfigurableAxis thnConfigAxisCent{"thnConfigAxisCent", {100, 0, 100}, "Centrality bins"};
ConfigurableAxis thnConfigAxisPtKaon{"thnConfigAxisPtKaon", {100, 0, 10}, "PtPion from Omegac0 bins"};
Expand Down Expand Up @@ -248,7 +248,6 @@
registry.add("hSelMassCasc", "hSelMassCasc;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelMassCharmBaryon", "hSelMassCharmBaryon;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelDcaXYToPvKaFromCasc", "hSelDcaXYToPvKaFromCasc;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelPtOmegaKa", "hSelPtOmegaKa;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelCompetingCasc", "hSelCompetingCasc;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelV0_Casc_OmegaKaldl", "hSelV0_Casc_OmegaKaldl;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelctauOmegaKa", "hSelctauOmegaKa;status;entries", {HistType::kTH1D, {axisSel}});
Expand All @@ -265,21 +264,18 @@
bool selectionTopol(const T1& hfCandOmegaKa)
{
auto candpT = hfCandOmegaKa.kfPtOmegaKa();
// check that the candidate pT is within the analysis range
if (candpT < ptCandMin || candpT > ptCandMax) {
return false;
}
auto kaPtFromOmegaKa = hfCandOmegaKa.kfPtKaFromOmegaKa();
int const pTBin = findBin(binsPt, candpT);
if (pTBin == -1) {
return false;
}

// check that the candidate pT is within the analysis range
if (candpT <= ptCandMin || candpT >= ptCandMax) {
registry.fill(HIST("hSelPtOmegaKa"), 0);
return false;
}
registry.fill(HIST("hSelPtOmegaKa"), 1);

// check that the candidate pT is within the analysis range
if (kaPtFromOmegaKa < cuts->get(pTBin, "pT ka from OmegaKa")) {
if (kaPtFromOmegaKa < cuts->get(pTBin, "pT Ka from Omegac")) {
registry.fill(HIST("hSelPtKaFromCharm"), 0);
return false;
}
Expand Down Expand Up @@ -329,10 +325,13 @@
} else if (signDecay < 0) {
registry.fill(HIST("hSelSignDec"), 0); // particle decay
}

// pt-dependent selection
if (!selectionTopol(candidate)) {
resultSelections = false;
hfSelToOmegaKaKf(statusPidLambda, statusPidCascade, statusPidCharmBaryon, statusInvMassLambda, statusInvMassCascade, statusInvMassCharmBaryon, resultSelections, infoTpcStored, infoTofStored,
trackKaFromCharm.tpcNSigmaKa(), trackKaFromCasc.tpcNSigmaKa(), trackPiFromLam.tpcNSigmaPi(), trackPrFromLam.tpcNSigmaPr(),
trackKaFromCharm.tofNSigmaKa(), trackKaFromCasc.tofNSigmaKa(), trackPiFromLam.tofNSigmaPi(), trackPrFromLam.tofNSigmaPr());
continue;
}

// eta selection
Expand Down
Loading