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
11 changes: 5 additions & 6 deletions PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

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

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -220,7 +220,6 @@
Configurable<bool> mcSignalOnly{"mcSignalOnly", true, "If true, save only signal in MC"};
Configurable<bool> doTrackQA{"doTrackQA", true, "if true, compute the QA studies beased on detectors (ITS-TPC-TOF) signals"};
Configurable<bool> useNoSameBunchPileup{"useNoSameBunchPileup", false, "reject collisions in case of pileup with another collision in the same foundBC"};


// Define o2 fitter, 2-prong, active memory (no need to redefine per event)
o2::vertexing::DCAFitterN<2> fitter;
Expand Down Expand Up @@ -594,7 +593,7 @@
float h3lE = h3E + piE;

// Building the mother particle: lnn
constexpr std::size_t KMomDim= 3;
constexpr std::size_t KMomDim = 3;
std::array<float, KMomDim> lnnMom;

const auto& vtx = fitter.getPCACandidate();
Expand Down Expand Up @@ -675,7 +674,7 @@
// Monte Carlo information
void fillMCinfo(aod::McTrackLabels const& trackLabels, aod::McParticles const&)
{
for (auto& lnnCand : lnnCandidates) {

Check failure on line 677 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 Down Expand Up @@ -707,8 +706,8 @@
lnnCand.gMom3H = isTrTrack ? mcTrackPos.pVector() : mcTrackNeg.pVector();

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

int kNDimGen = 3;
for (int i = 0; i < kNDimGen; i++) {
lnnCand.gDecVtx[i] = secVtx[i] - posPrimVtx[i];
}
Expand All @@ -729,7 +728,7 @@
{
if (!mcPart.has_mothers())
return false;

int decayProcess = 4;
if (mcPart.getProcess() != decayProcess)
return false;
Expand Down Expand Up @@ -976,7 +975,7 @@
lnnCand.survEvSelection = isGoodCollision[mcPart.mcCollisionId()];
int chargeFactor = -1 + 2 * (lnnCand.pdgCode > 0);

int kDimGen = 3;
int kDimGen = 3;
for (int i = 0; i < kDimGen; i++) {
lnnCand.gDecVtx[i] = secVtx[i] - primVtx[i];
lnnCand.gMom[i] = momMother[i];
Expand Down
Loading