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
6 changes: 3 additions & 3 deletions PWGUD/TableProducer/UPCCandidateProducer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
return false;
if (upcCuts.getCheckMaxDcaXY()) {
float dca = track.dcaXY();
float maxDCA = 0.0105f + 0.0350f / pow(track.pt(), 1.1f);

Check failure on line 273 in PWGUD/TableProducer/UPCCandidateProducer.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
if (dca > maxDCA)
return false;
}
Expand Down Expand Up @@ -369,7 +369,7 @@
// collecting new mother IDs
if (mcPart.has_mothers()) {
const auto& motherIDs = mcPart.mothersIds();
for (auto motherID : motherIDs) {

Check failure on line 372 in PWGUD/TableProducer/UPCCandidateProducer.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.
if (motherID >= nMCParticles) {
continue;
}
Expand Down Expand Up @@ -420,7 +420,7 @@
uint64_t globalBC, uint64_t closestBcMCH,
const o2::aod::McFwdTrackLabels* mcTrackLabels)
{
for (auto trackID : trackIDs) {

Check failure on line 423 in PWGUD/TableProducer/UPCCandidateProducer.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.
const auto& track = tracks.iteratorAt(trackID);
double trTime = track.trackTime();
double mchmidChi2 = track.chi2MatchMCHMID();
Expand Down Expand Up @@ -457,9 +457,9 @@
clustersPerTrack[cls.fwdtrackId()].push_back(cls.globalIndex());
}
int newId = 0;
for (auto trackId : trackIds) {

Check failure on line 460 in PWGUD/TableProducer/UPCCandidateProducer.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.
const auto& clusters = clustersPerTrack.at(trackId);
for (auto clsId : clusters) {

Check failure on line 462 in PWGUD/TableProducer/UPCCandidateProducer.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.
const auto& clsInfo = fwdTrkCls.iteratorAt(clsId);
udFwdTrkClusters(newId, clsInfo.x(), clsInfo.y(), clsInfo.z(), clsInfo.clInfo());
}
Expand All @@ -475,7 +475,7 @@
const o2::aod::McTrackLabels* mcTrackLabels,
std::unordered_map<int64_t, uint64_t>& /*ambBarrelTrBCs*/)
{
for (auto trackID : trackIDs) {

Check failure on line 478 in PWGUD/TableProducer/UPCCandidateProducer.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.
const auto& track = tracks.iteratorAt(trackID);
double trTime = track.trackTime() - std::round(track.trackTime() / o2::constants::lhc::LHCBunchSpacingNS) * o2::constants::lhc::LHCBunchSpacingNS;
int64_t colId = track.collisionId() >= 0 ? track.collisionId() : -1;
Expand Down Expand Up @@ -550,10 +550,10 @@
const auto& ampsA = ft0.amplitudeA();
const auto& ampsC = ft0.amplitudeC();
fitInfo.ampFT0A = 0.;
for (auto amp : ampsA)

Check failure on line 553 in PWGUD/TableProducer/UPCCandidateProducer.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.
fitInfo.ampFT0A += amp;
fitInfo.ampFT0C = 0.;
for (auto amp : ampsC)

Check failure on line 556 in PWGUD/TableProducer/UPCCandidateProducer.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.
fitInfo.ampFT0C += amp;
fitInfo.triggerMaskFT0 = ft0.triggerMask();
}
Expand All @@ -562,7 +562,7 @@
fitInfo.timeFV0A = fv0a.time();
const auto& amps = fv0a.amplitude();
fitInfo.ampFV0A = 0.;
for (auto amp : amps)

Check failure on line 565 in PWGUD/TableProducer/UPCCandidateProducer.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.
fitInfo.ampFV0A += amp;
fitInfo.triggerMaskFV0A = fv0a.triggerMask();
}
Expand All @@ -573,7 +573,7 @@
const auto& ampsA = fdd.chargeA();
const auto& ampsC = fdd.chargeC();
fitInfo.ampFDDA = 0.;
for (auto amp : ampsA) {

Check failure on line 576 in PWGUD/TableProducer/UPCCandidateProducer.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.
fitInfo.ampFDDA += amp;
}
fitInfo.ampFDDC = 0.;
Expand Down Expand Up @@ -703,7 +703,7 @@
const auto& col = trk.collision();
auto bcRCT = col.bc_as<TBCs>();
histRegistry.get<TH1>(HIST("RCTSelCounter"))->Fill(1);
if(!myRCTChecker(bcRCT)){
if (!myRCTChecker(bcRCT)) {
histRegistry.get<TH1>(HIST("RCTSelCounter"))->Fill(3);
continue;
}
Expand Down Expand Up @@ -753,7 +753,7 @@
const auto& col = trk.collision();
auto bcRCT = col.bc_as<TBCs>();
histRegistry.get<TH1>(HIST("RCTSelCounter"))->Fill(1);
if(!myRCTChecker(bcRCT)){
if (!myRCTChecker(bcRCT)) {
histRegistry.get<TH1>(HIST("RCTSelCounter"))->Fill(3);
continue;
}
Expand Down Expand Up @@ -800,7 +800,7 @@
const auto& col = trk.collision();
auto bcRCT = col.bc_as<TBCs>();
histRegistry.get<TH1>(HIST("RCTSelCounter"))->Fill(1);
if(!myRCTChecker(bcRCT)){
if (!myRCTChecker(bcRCT)) {
histRegistry.get<TH1>(HIST("RCTSelCounter"))->Fill(3);
continue;
}
Expand Down
Loading