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
11 changes: 4 additions & 7 deletions PWGUD/TableProducer/UPCCandidateProducer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,10 @@
// initialize RCT flag checker
if (rctLabel.value != "none" && rctLabel.value != "muon" && rctLabel.value != "muon_glo") {
myRCTChecker.init(rctLabel.value, checkZDC.value, useLAasBad.value);
}
else if (rctLabel.value == "none"){
} else if (rctLabel.value == "none") {
useRCTflags = false;
myRCTChecker.init("CBT_muon");
}
else if (rctLabel.value == "muon") {
} else if (rctLabel.value == "muon") {
if (checkZDC.value && useLAasBad.value) {
myRCTChecker.init({kFV0Bad, kMCHBad, kMIDBad, kZDCBad, kMCHLimAccMCRepr, kMIDLimAccMCRepr});
} else if (checkZDC.value) {
Expand All @@ -177,8 +175,7 @@
} else {
myRCTChecker.init({kFV0Bad, kMCHBad, kMIDBad});
}
}
else if (rctLabel.value == "muon_glo") {
} else if (rctLabel.value == "muon_glo") {
if (checkZDC.value && useLAasBad.value) {
myRCTChecker.init({kFV0Bad, kMCHBad, kMIDBad, kMFTBad, kZDCBad, kMCHLimAccMCRepr, kMIDLimAccMCRepr, kMFTLimAccMCRepr});
} else if (checkZDC.value) {
Expand All @@ -188,7 +185,7 @@
} else {
myRCTChecker.init({kFV0Bad, kMCHBad, kMIDBad, kMFTBad});
}
}
}

const AxisSpec axisTrgCounters{10, 0.5, 10.5, ""};
histRegistry.add("hCountersTrg", "", kTH1F, {axisTrgCounters});
Expand Down Expand Up @@ -300,7 +297,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 300 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 @@ -399,7 +396,7 @@
// collecting new mother IDs
if (mcPart.has_mothers()) {
const auto& motherIDs = mcPart.mothersIds();
for (auto motherID : motherIDs) {

Check failure on line 399 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 @@ -450,7 +447,7 @@
uint64_t globalBC, uint64_t closestBcMCH,
const o2::aod::McFwdTrackLabels* mcTrackLabels)
{
for (auto trackID : trackIDs) {

Check failure on line 450 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 @@ -487,9 +484,9 @@
clustersPerTrack[cls.fwdtrackId()].push_back(cls.globalIndex());
}
int newId = 0;
for (auto trackId : trackIds) {

Check failure on line 487 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 489 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 @@ -505,7 +502,7 @@
const o2::aod::McTrackLabels* mcTrackLabels,
std::unordered_map<int64_t, uint64_t>& /*ambBarrelTrBCs*/)
{
for (auto trackID : trackIDs) {

Check failure on line 505 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 @@ -580,10 +577,10 @@
const auto& ampsA = ft0.amplitudeA();
const auto& ampsC = ft0.amplitudeC();
fitInfo.ampFT0A = 0.;
for (auto amp : ampsA)

Check failure on line 580 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 583 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 @@ -592,7 +589,7 @@
fitInfo.timeFV0A = fv0a.time();
const auto& amps = fv0a.amplitude();
fitInfo.ampFV0A = 0.;
for (auto amp : amps)

Check failure on line 592 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 @@ -603,7 +600,7 @@
const auto& ampsA = fdd.chargeA();
const auto& ampsC = fdd.chargeC();
fitInfo.ampFDDA = 0.;
for (auto amp : ampsA) {

Check failure on line 603 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
Loading