Skip to content

Commit e07b591

Browse files
Fix O2 linter
1 parent b66b615 commit e07b591

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

PWGLF/TableProducer/Nuspex/nucleiFlowTree.cxx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// o2-analysis-pid-tof-base, o2-analysis-multiplicity-table, o2-analysis-event-selection
2020
// (to add flow: o2-analysis-qvector-table, o2-analysis-centrality-table)
2121

22+
/// \file nucleiFlowTree.cxx
23+
/// \author Marco Bianchi (mbianchi@cern.ch)
24+
/// \brief Task to produce nuclei flow tree
25+
2226
#include <algorithm>
2327
#include <cmath>
2428
#include <memory>
@@ -307,7 +311,7 @@ struct nucleiFlowTree {
307311
{nuclei::charges[3] * cfgMomentumScalingBetheBloch->get(3u, 0u) / nuclei::masses[3], nuclei::charges[3] * cfgMomentumScalingBetheBloch->get(3u, 1u) / nuclei::masses[3]},
308312
{nuclei::charges[4] * cfgMomentumScalingBetheBloch->get(3u, 0u) / nuclei::masses[4], nuclei::charges[4] * cfgMomentumScalingBetheBloch->get(3u, 1u) / nuclei::masses[4]}};
309313

310-
for (auto& track : tracks) { // start loop over tracks
314+
for (auto& const track : tracks) { // start loop over tracks
311315
if (std::abs(track.eta()) > cfgCutEta ||
312316
track.tpcInnerParam() < cfgCutTpcMom ||
313317
track.itsNCls() < cfgCutNclusITS ||
@@ -455,10 +459,10 @@ struct nucleiFlowTree {
455459
return;
456460
}
457461
fillDataInfo(collision, tracks);
458-
for (auto& c : nuclei::candidates) {
462+
for (auto& const c : nuclei::candidates) {
459463
nucleiTable(c.pt, c.eta, c.phi, c.tpcInnerParam, c.beta, c.zVertex, c.DCAxy, c.DCAz, c.TPCsignal, c.ITSchi2, c.TPCchi2, c.TOFchi2, c.flags, c.TPCfindableCls, c.TPCcrossedRows, c.ITSclsMap, c.TPCnCls, c.TPCnClsShared, c.clusterSizesITS);
460464
}
461-
for (auto& c : nuclei::candidates_flow) {
465+
for (auto& const c : nuclei::candidates_flow) {
462466
nucleiTableFlow(c.centFV0A, c.centFT0M, c.centFT0A, c.centFT0C, c.psiFT0A, c.psiFT0C, c.psiTPC, c.psiTPCl, c.psiTPCr, c.qFT0A, c.qFT0C, c.qTPC, c.qTPCl, c.qTPCr);
463467
}
464468
}
@@ -472,10 +476,10 @@ struct nucleiFlowTree {
472476
return;
473477
}
474478
fillDataInfo(collision, tracks);
475-
for (auto& c : nuclei::candidates) {
479+
for (auto& const c : nuclei::candidates) {
476480
nucleiTable(c.pt, c.eta, c.phi, c.tpcInnerParam, c.beta, c.zVertex, c.DCAxy, c.DCAz, c.TPCsignal, c.ITSchi2, c.TPCchi2, c.TOFchi2, c.flags, c.TPCfindableCls, c.TPCcrossedRows, c.ITSclsMap, c.TPCnCls, c.TPCnClsShared, c.clusterSizesITS);
477481
}
478-
for (auto& c : nuclei::candidates_flow) {
482+
for (auto& const c : nuclei::candidates_flow) {
479483
nucleiTableFlow(c.centFV0A, c.centFT0M, c.centFT0A, c.centFT0C, c.psiFT0A, c.psiFT0C, c.psiTPC, c.psiTPCl, c.psiTPCr, c.qFT0A, c.qFT0C, c.qTPC, c.qTPCl, c.qTPCr);
480484
}
481485
}

PWGLF/TableProducer/QC/flowQC.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// o2-analysis-multiplicity-table, o2-analysis-ft0-corrected-table, o2-analysis-track-propagation,
2020
// o2-analysis-trackselection, o2-analysis-qvector-table, o2-analysis-lf-flow-qc
2121

22+
/// \file flowQC.cxx
23+
/// \author Marco Bianchi (mbianchi@cern.ch)
24+
/// \brief Task to produce nuclei flow tree QC
25+
2226
#include <cmath>
2327
#include <memory>
2428
#include <string>

0 commit comments

Comments
 (0)