|
8 | 8 | // In applying this license CERN does not waive the privileges and immunities |
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // 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 | +// |
11 | 18 |
|
12 | 19 | #include <cmath> |
13 | 20 | #include <vector> |
@@ -411,7 +418,7 @@ struct SGCandProducer { |
411 | 418 | auto hCountersTrgBcSel = getHist(TH1, "reco/hCountersTrgBcSel"); |
412 | 419 | auto hLumi = getHist(TH1, "reco/hLumi"); |
413 | 420 | auto hLumiBcSel = getHist(TH1, "reco/hLumiBcSel"); |
414 | | - for (const auto h : {hCountersTrg, hCountersTrgBcSel, hLumi, hLumiBcSel}) { |
| 421 | + for (const auto& h : {hCountersTrg, hCountersTrgBcSel, hLumi, hLumiBcSel}) { |
415 | 422 | h->GetXaxis()->SetBinLabel(1, "TVX"); |
416 | 423 | h->GetXaxis()->SetBinLabel(2, "TCE"); |
417 | 424 | h->GetXaxis()->SetBinLabel(3, "ZEM"); |
@@ -545,7 +552,7 @@ struct McSGCandProducer { |
545 | 552 | } |
546 | 553 |
|
547 | 554 | // all particles of the McCollision are saved |
548 | | - for (auto mcpart : McParts) { |
| 555 | + for (const auto& mcpart : McParts) { |
549 | 556 | if (mcPartIsSaved.find(mcpart.globalIndex()) == mcPartIsSaved.end()) { |
550 | 557 | // mothers |
551 | 558 | newmids.clear(); |
|
0 commit comments