Skip to content

Commit 362233a

Browse files
authored
Fix o2linter
1 parent e0f5b02 commit 362233a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

PWGUD/TableProducer/SGCandProducer.cxx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11+
//
12+
/// \file SGCandProducer.cxx
13+
/// \brief Produces PWGUD derived table from standard tables
14+
///
15+
/// \author Alexander Bylinkin <roman.lavicka@cern.ch>, Uniersity of Bergen
16+
/// \since 23.11.2023
17+
//
1118

1219
#include <cmath>
1320
#include <vector>
@@ -411,7 +418,7 @@ struct SGCandProducer {
411418
auto hCountersTrgBcSel = getHist(TH1, "reco/hCountersTrgBcSel");
412419
auto hLumi = getHist(TH1, "reco/hLumi");
413420
auto hLumiBcSel = getHist(TH1, "reco/hLumiBcSel");
414-
for (const auto h : {hCountersTrg, hCountersTrgBcSel, hLumi, hLumiBcSel}) {
421+
for (const auto& h : {hCountersTrg, hCountersTrgBcSel, hLumi, hLumiBcSel}) {
415422
h->GetXaxis()->SetBinLabel(1, "TVX");
416423
h->GetXaxis()->SetBinLabel(2, "TCE");
417424
h->GetXaxis()->SetBinLabel(3, "ZEM");
@@ -545,7 +552,7 @@ struct McSGCandProducer {
545552
}
546553

547554
// all particles of the McCollision are saved
548-
for (auto mcpart : McParts) {
555+
for (const auto& mcpart : McParts) {
549556
if (mcPartIsSaved.find(mcpart.globalIndex()) == mcPartIsSaved.end()) {
550557
// mothers
551558
newmids.clear();

0 commit comments

Comments
 (0)