Skip to content

Commit 8b076f7

Browse files
fixed bug: V0s were not stored, therefore the cascade method did not work
1 parent b0c092c commit 8b076f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PWGLF/TableProducer/Nuspex/LFTreeCreatorClusterStudies.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ struct LfTreeCreatorClusterStudies {
241241
{"photon_radiusV0", "Photon conversion radius (xy) V0; radius (cm); counts", {HistType::kTH1F, {{100, 0., 100.}}}},
242242
{"photon_conversion_position", "Photon conversion position; x (cm); y (cm)", {HistType::kTH2F, {{250, -5.f, 5.f}, {250, -5.f, 5.f}}}},
243243
{"photon_conversion_position_layer", "Photon conversion position (ITS layers); x (cm); y (cm)", {HistType::kTH2F, {{100, -5.f, 5.f}, {100, -5.f, 5.f}}}},
244+
{"casc_dca_daughter_pairs", "DCA (xy) for cascade daughter pairs; DCAxy (cm); counts", {HistType::kTH1F, {{100, -0.1, 0.1}}}},
244245
{"Xi_vs_Omega", "Mass Xi vs Omega; mass Omega (GeV/#it{c}^{2}); mass Xi (GeV/#it{c}^{2})", {HistType::kTH2F, {{50, 1.f, 2.f}, {50, 1.f, 2.f}}}},
245246
{"massOmega", "Mass #Omega; signed #it{p}_{T} (GeV/#it{c}); mass (GeV/#it{c}^{2})", {HistType::kTH2F, {{100, -5.f, 5.f}, {100, 1.62f, 1.72f}}}},
246247
{"massOmegaWithBkg", "Mass Omega with Background; mass Omega (GeV/#it{c}^{2}); counts", {HistType::kTH1F, {{100, 1.62f, 1.72f}}}},
@@ -420,6 +421,7 @@ struct LfTreeCreatorClusterStudies {
420421

421422
bool qualitySelectionCascade(const double dcaCascDaughters, const double cosPA)
422423
{
424+
m_hAnalysis.fill(HIST("casc_dca_daughter_pairs"), dcaCascDaughters);
423425
if (std::abs(dcaCascDaughters) > cascsetting_dcaCascDaughters) {
424426
return false;
425427
}
@@ -616,7 +618,7 @@ struct LfTreeCreatorClusterStudies {
616618
{
617619
float beta = o2::pid::tof::Beta::GetBeta(candidate);
618620
beta = std::min(1.f - 1.e-6f, std::max(1.e-4f, beta)); /// sometimes beta > 1 or < 0, to be checked
619-
return candidate.tpcInnerParam() * 2.f * std::sqrt(1.f / (beta * beta) - 1.f);
621+
return candidate.tpcInnerParam() * std::sqrt(1.f / (beta * beta) - 1.f);
620622
}
621623

622624
// =========================================================================================================
@@ -816,6 +818,7 @@ struct LfTreeCreatorClusterStudies {
816818
return;
817819
}
818820

821+
m_v0TrackParCovs.emplace_back(v0TrackParCov);
819822
float massV0 = fillHistogramsV0(massLambdaV0, massAntiLambdaV0, momMother, candidatePos, candidateNeg, alphaAP, qtAP, radiusV0, v0Bitmask);
820823
candidatePos.massMother = massV0;
821824
candidateNeg.massMother = massV0;

0 commit comments

Comments
 (0)