Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ALICE3/TableProducer/alice3strangenessFinder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include <ReconstructionDataFormats/TrackParametrization.h>

#include <TH1.h>
#include <TLorentzVector.h>

Check failure on line 53 in ALICE3/TableProducer/alice3strangenessFinder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include <TPDGCode.h>

#include <sys/types.h>
Expand Down Expand Up @@ -367,7 +367,7 @@
[[nodiscard]] float getFirstLayerHitRadius(const TTrackType& track, const std::vector<float>& layers)
{
const float trueRadius = std::hypot(track.x(), track.y());
for (const float layerRadius : layers) {

Check failure on line 370 in ALICE3/TableProducer/alice3strangenessFinder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (layerRadius >= trueRadius) {
return layerRadius;
}
Expand Down Expand Up @@ -607,11 +607,11 @@
}

histos.fill(HIST("hCascadeBuilding"), 1.0);
if (inLambdaMassWindow && bachTrack.sign() > 0) {
if (!inLambdaMassWindow && bachTrack.sign() < 0) {
continue; // only consider lambda and neg bach track
}

if (inAntiLambdaMassWindow && bachTrack.sign() < 0) {
if (!inAntiLambdaMassWindow && bachTrack.sign() > 0) {
continue; // only consider anti-lambda and pos bach track
}

Expand Down Expand Up @@ -755,12 +755,12 @@
v0DecayVertex.push_back(negParticle.vx());
v0DecayVertex.push_back(negParticle.vy());
v0DecayVertex.push_back(negParticle.vz());
TLorentzVector posLorVector = {posParticle.px(), posParticle.py(), posParticle.pz(), posParticle.e()};

Check failure on line 758 in ALICE3/TableProducer/alice3strangenessFinder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
TLorentzVector negLorVector = {negParticle.px(), negParticle.py(), negParticle.pz(), negParticle.e()};

Check failure on line 759 in ALICE3/TableProducer/alice3strangenessFinder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
o2::track::TrackParCov posParCov;
o2::track::TrackParCov negParCov;
o2::upgrade::convertTLorentzVectorToO2Track(1, posLorVector, v0DecayVertex, posParCov);

Check failure on line 762 in ALICE3/TableProducer/alice3strangenessFinder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
o2::upgrade::convertTLorentzVectorToO2Track(-1, negLorVector, v0DecayVertex, negParCov);

Check failure on line 763 in ALICE3/TableProducer/alice3strangenessFinder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
if (!buildDecayCandidateTwoBody(posParCov, negParCov, vtx, v0cand)) {
continue;
}
Expand Down
Loading