Skip to content

Commit 3042dfd

Browse files
authored
U
1 parent 32bb4c6 commit 3042dfd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ struct OnTheFlyTracker {
623623
if (cascadeDecaySettings.decayXi && mcParticle.pdgCode() == kXiMinus) {
624624
if (cascadeDecaySettings.doXiQA)
625625
histos.fill(HIST("hXiBuilding"), 0.0f);
626-
if (xiDecayRadius2D > 20) {
626+
static constexpr float kMaxRadius = 20; // cm
627+
if (xiDecayRadius2D > kMaxRadius) {
627628
continue;
628629
}
629630

@@ -783,7 +784,10 @@ struct OnTheFlyTracker {
783784
thisCascade.cascradius = std::hypot(posCascade[0], posCascade[1]);
784785
bachelorTrackAtPCA.getPxPyPzGlo(bachP);
785786

786-
thisCascade.mXi = RecoDecay::m(array{array{bachP[0], bachP[1], bachP[2]}, array{posP[0] + negP[0], posP[1] + negP[1], posP[2] + negP[2]}}, array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassLambda});
787+
thisCascade.mXi = RecoDecay::m(std::array{std::array{bachP[0], bachP[1], bachP[2]},
788+
std::array{posP[0] + negP[0], posP[1] + negP[1], posP[2] + negP[2]}},
789+
std::array{o2::constants::physics::MassPionCharged,
790+
o2::constants::physics::MassLambda});
787791

788792
// initialize cascade track
789793
o2::track::TrackParCov cascadeTrack = fitter.createParentTrackParCov();

0 commit comments

Comments
 (0)