Skip to content

Commit 144a184

Browse files
ChiaraDeMartin95Chiara De Martin
andauthored
[PWGLF,Trigger] Fix bug in cascade building via strangeness helper (#10904)
Co-authored-by: Chiara De Martin <chiara.de.martin@cern.ch>
1 parent 7e6c9ce commit 144a184

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

EventFiltering/PWGLF/strangenessFilter.cxx

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ struct strangenessFilter {
225225
hProcessedEvents->GetXaxis()->SetBinLabel(16, aod::filtering::OmegaXi::columnLabel());
226226

227227
hCandidate->GetXaxis()->SetBinLabel(1, "All");
228-
hCandidate->GetXaxis()->SetBinLabel(2, "Has_V0");
228+
hCandidate->GetXaxis()->SetBinLabel(2, "PassBuilderSel");
229229
hCandidate->GetXaxis()->SetBinLabel(3, "DCA_meson");
230230
hCandidate->GetXaxis()->SetBinLabel(4, "DCA_baryon");
231231
hCandidate->GetXaxis()->SetBinLabel(5, "TPCNsigma_pion");
@@ -243,6 +243,7 @@ struct strangenessFilter {
243243
hCandidate->GetXaxis()->SetBinLabel(17, "CascCosPA");
244244
hCandidate->GetXaxis()->SetBinLabel(18, "DCAV0ToPV");
245245
hCandidate->GetXaxis()->SetBinLabel(19, "ProperLifeTime");
246+
hCandidate->GetXaxis()->SetBinLabel(20, "Rapidity");
246247

247248
std::vector<double> centBinning = {0., 1., 5., 10., 20., 30., 40., 50., 70., 100.};
248249
AxisSpec multAxisNTPV = {100, 0.0f, 100.0f, "N. tracks PV estimator"};
@@ -419,6 +420,7 @@ struct strangenessFilter {
419420
mDCAFitter.setMinParamChange(minParamChange);
420421
mDCAFitter.setMinRelChi2Change(minRelChi2Change);
421422
mDCAFitter.setUseAbsDCA(useAbsDCA);
423+
mStraHelper.fitter.setBz(mBz);
422424
}
423425
if (!mStraHelper.lut) { /// done only once
424426
ccdb->setURL(ccdbUrl);
@@ -667,13 +669,18 @@ struct strangenessFilter {
667669
}
668670
hCandidate->Fill(5.5);
669671
}
670-
hCandidate->Fill(7.5);
672+
hCandidate->Fill(6.5); // OLD: eta dau (selection now applied in strangeness helper)
673+
hCandidate->Fill(7.5); // OLD: bachtopv (selection now applied in strangeness helper)
671674

672675
// not striclty needed as selection are applied beforehand - just as QA (no change in number expected)
673676
if (Cascv0radius < v0radius) {
674677
continue;
675678
}
676679
hCandidate->Fill(8.5);
680+
if (Casccascradius < cascradius) {
681+
continue;
682+
}
683+
hCandidate->Fill(9.5);
677684
if (v0DauCPA < v0cospa) {
678685
continue;
679686
}
@@ -682,7 +689,14 @@ struct strangenessFilter {
682689
continue;
683690
}
684691
hCandidate->Fill(11.5);
685-
692+
if (mStraHelper.cascade.cascadeDaughterDCA > dcacascdau) {
693+
continue;
694+
}
695+
hCandidate->Fill(12.5);
696+
if (std::fabs(LambdaMass - constants::physics::MassLambda) > masslambdalimit) {
697+
continue;
698+
}
699+
hCandidate->Fill(13.5);
686700
if (std::fabs(etaCasc) > eta) {
687701
continue;
688702
}
@@ -695,6 +709,20 @@ struct strangenessFilter {
695709
}
696710
hCandidate->Fill(15.5);
697711

712+
// Fill selections QA for Xi
713+
if (cascCPA > casccospaxi) {
714+
hCandidate->Fill(16.5);
715+
if (cascCPA > dcav0topv) {
716+
hCandidate->Fill(17.5);
717+
if (xiproperlifetime < properlifetimefactor * ctauxi) {
718+
hCandidate->Fill(18.5);
719+
if (std::fabs(yXi) < rapidity) {
720+
hCandidate->Fill(19.5);
721+
}
722+
}
723+
}
724+
}
725+
698726
const auto deltaMassXi = useSigmaBasedMassCutXi ? getMassWindow(stfilter::species::Xi, ptCasc) : ximasswindow;
699727
const auto deltaMassOmega = useSigmaBasedMassCutOmega ? getMassWindow(stfilter::species::Omega, ptCasc) : omegamasswindow;
700728

@@ -740,9 +768,9 @@ struct strangenessFilter {
740768
QAHistosTopologicalVariables.fill(HIST("hDCAV0ToPVXi"), DCAV0ToPV);
741769
QAHistosTopologicalVariables.fill(HIST("hDCAV0DaughtersXi"), mStraHelper.cascade.v0DaughterDCA);
742770
QAHistosTopologicalVariables.fill(HIST("hDCACascDaughtersXi"), mStraHelper.cascade.cascadeDaughterDCA);
743-
QAHistosTopologicalVariables.fill(HIST("hDCABachToPVXi"), mStraHelper.cascade.bachelorDCAxy);
744-
QAHistosTopologicalVariables.fill(HIST("hDCAPosToPVXi"), mStraHelper.cascade.positiveDCAxy);
745-
QAHistosTopologicalVariables.fill(HIST("hDCANegToPVXi"), mStraHelper.cascade.negativeDCAxy);
771+
QAHistosTopologicalVariables.fill(HIST("hDCABachToPVXi"), std::fabs(mStraHelper.cascade.bachelorDCAxy));
772+
QAHistosTopologicalVariables.fill(HIST("hDCAPosToPVXi"), std::fabs(mStraHelper.cascade.positiveDCAxy));
773+
QAHistosTopologicalVariables.fill(HIST("hDCANegToPVXi"), std::fabs(mStraHelper.cascade.negativeDCAxy));
746774
QAHistosTopologicalVariables.fill(HIST("hInvMassLambdaXi"), LambdaMass);
747775

748776
if (doextraQA) {

0 commit comments

Comments
 (0)