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
1 change: 0 additions & 1 deletion PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
auto h3pid = ccdb->getForTimeStamp<std::array<float, 6>>(pidPath.value + "_3H", run3grp_timestamp);
std::copy(h3pid->begin(), h3pid->end(), mBBparams3H.begin());
} else {
for (int i = 0; i < 5; i++) {

Check failure on line 400 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mBBparams3H[i] = cfgBetheBlochParams->get("3H", Form("p%i", i));
}
mBBparams3H[5] = cfgBetheBlochParams->get("3H", "resolution");
Expand Down Expand Up @@ -555,7 +555,7 @@
std::array<float, kMomDim> lnnMom;

const auto& vtx = fitter.getPCACandidate();
for (int i = 0; i < 3; i++) {

Check failure on line 558 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
lnnCand.decVtx[i] = vtx[i];
lnnMom[i] = lnnCand.mom3H[i] + lnnCand.momPi[i];
}
Expand Down Expand Up @@ -593,7 +593,7 @@
continue;
}

for (int i = 0; i < 3; i++) {

Check failure on line 596 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
lnnCand.decVtx[i] = lnnCand.decVtx[i] - primVtx[i];
}

Expand Down Expand Up @@ -643,7 +643,7 @@
// Monte Carlo information
void fillMCinfo(aod::McTrackLabels const& trackLabels, aod::McParticles const&)
{
for (auto& lnnCand : lnnCandidates) {

Check failure on line 646 in PWGLF/TableProducer/Nuspex/lnnRecoTask.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.
auto mcLabPos = trackLabels.rawIteratorAt(lnnCand.posTrackID);
auto mcLabNeg = trackLabels.rawIteratorAt(lnnCand.negTrackID);

Expand All @@ -653,8 +653,8 @@
auto mcTrackNeg = mcLabNeg.mcParticle_as<aod::McParticles>();

if (mcTrackPos.has_mothers() && mcTrackNeg.has_mothers()) {
for (auto& negMother : mcTrackNeg.mothers_as<aod::McParticles>()) {

Check failure on line 656 in PWGLF/TableProducer/Nuspex/lnnRecoTask.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.
for (auto& posMother : mcTrackPos.mothers_as<aod::McParticles>()) {

Check failure on line 657 in PWGLF/TableProducer/Nuspex/lnnRecoTask.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 (posMother.globalIndex() != negMother.globalIndex())
continue;
if (!((mcTrackPos.pdgCode() == h3DauPdg && mcTrackNeg.pdgCode() == -1 * piDauPdg) || (mcTrackPos.pdgCode() == piDauPdg && mcTrackNeg.pdgCode() == -1 * h3DauPdg)))
Expand All @@ -677,7 +677,7 @@

lnnCand.gMomPi = isTrTrack ? mcTrackNeg.pVector() : mcTrackPos.pVector();

for (int i = 0; i < 3; i++) {

Check failure on line 680 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
lnnCand.gDecVtx[i] = secVtx[i] - posPrimVtx[i];
}
lnnCand.isSignal = true;
Expand All @@ -700,7 +700,7 @@
initCCDB(bc);

hEvents->Fill(0.);
if ((!collision.sel8()) || std::abs(collision.posZ()) > 10) {

Check failure on line 703 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
continue;
}
hEvents->Fill(1.);
Expand Down Expand Up @@ -750,7 +750,7 @@

hEvents->Fill(0.);

if ((!collision.sel8()) || std::abs(collision.posZ()) > 10) {

Check failure on line 753 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
continue;
}
hEvents->Fill(1.);
Expand Down Expand Up @@ -825,7 +825,7 @@

for (const auto& mcDaught : mcPart.daughters_as<aod::McParticles>()) {
bool motherIsAccepted = true;
if (mcDaught.getProcess() == 4) {

Check failure on line 828 in PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
if (mcPart.has_mothers()) {
motherIsAccepted = false;
for (const auto& mother : mcPart.mothers_as<aod::McParticles>()) {
Expand Down Expand Up @@ -912,4 +912,3 @@
return WorkflowSpec{
adaptAnalysisTask<lnnRecoTask>(cfgc)};
}

Loading