Skip to content

Commit cf2d5ed

Browse files
author
Andrea
committed
linter and megalinter fixes
1 parent b770a01 commit cf2d5ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DPG/Tasks/ITS/filterTracks.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ DECLARE_SOA_TABLE(GenParticles, "AOD", "GENPARTICLES",
144144
} // namespace o2::aod
145145

146146
struct FilterTracks {
147+
const static int nStudiedParticlesMc = 3;
147148

148149
Produces<aod::FilterTrackExtr> filteredTracksTableExtra;
149150
Produces<aod::FilterTrack> filteredTracksTable;
@@ -179,7 +180,6 @@ struct FilterTracks {
179180
Partition<soa::Filtered<TracksWithSelAndDcaMc>> midPtTracksMC = aod::track::pt > lowPtThreshold&& aod::track::pt < midPtThreshold && (nabs(aod::track::pt * nDigitScaleFactor - nround(aod::track::pt * nDigitScaleFactor)) < trackPtWeightMidPt.node() * lowPtThreshold);
180181
Partition<soa::Filtered<TracksWithSelAndDcaMc>> highPtTracksMC = aod::track::pt > midPtThreshold;
181182

182-
const static int nStudiedParticlesMc = 3;
183183
std::array<int, nStudiedParticlesMc> pdgSignalParticleArray = {kK0Short, o2::constants::physics::Pdg::kD0, o2::constants::physics::Pdg::kLambdaCPlus}; // K0s, D0 and Lc
184184
std::array<int, 3> pdgDecayLc = {kProton, kKMinus, kPiPlus};
185185
std::array<int, 2> pdgDecayDzero = {kKMinus, kPiPlus};
@@ -345,7 +345,7 @@ struct FilterTracks {
345345
// }
346346
}
347347
if (isMatchedToSignal) {
348-
for (auto const mcpartdaughtIdx : indxDaughers) {
348+
for (auto const& mcpartdaughtIdx : indxDaughers) {
349349
auto mcPartDaught = mcParticles.rawIteratorAt(mcpartdaughtIdx);
350350
double eta = std::abs(mcPartDaught.eta());
351351
if ((eta) > etamax) {

0 commit comments

Comments
 (0)