Skip to content

Commit d50274b

Browse files
committed
fix checkcode errors
1 parent f466afc commit d50274b

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Detectors/TRD/qc/src/Tracking.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ void Tracking::checkTrack(const TrackTRD& trkTrd, bool isTPCTRD)
122122
tCorrPileUp = -deltaBC;
123123
}
124124
}
125-
if (sumProb > 1e-6)
125+
if (sumProb > 1e-6) {
126126
tErrPileUp2 = sumCorr2 / sumProb - 2 * tCorrPileUp * sumCorr / sumProb + tCorrPileUp * tCorrPileUp;
127+
}
127128

128129
for (int iLayer = 0; iLayer < NLAYER; ++iLayer) {
129130
int trkltId = trkTrd.getTrackletIndex(iLayer);

Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,9 @@ void TRDGlobalTracking::run(ProcessingContext& pc)
422422
uint32_t firstOrbit = 0;
423423
for (size_t ft0id = 0; ft0id < ft0recPoints.size(); ft0id++) {
424424
const auto& f0rec = ft0recPoints[ft0id];
425-
if (ft0id == 0)
425+
if (ft0id == 0) {
426426
firstOrbit = f0rec.getInteractionRecord().orbit;
427+
}
427428
if (o2::ft0::InteractionTag::Instance().isSelected(f0rec)) {
428429
uint32_t currentOrbit = f0rec.getInteractionRecord().orbit;
429430
mTriggeredBCFT0.push_back(f0rec.getInteractionRecord().bc + (currentOrbit - firstOrbit) * o2::constants::lhc::LHCMaxBunches);
@@ -851,8 +852,9 @@ bool TRDGlobalTracking::refitTRDTrack(TrackTRD& trk, float& chi2, bool inwards,
851852
tCorrPileUp = -deltaBC;
852853
}
853854
}
854-
if (sumProb > 1e-6)
855+
if (sumProb > 1e-6) {
855856
tErrPileUp2 = sumCorr2 / sumProb - 2 * tCorrPileUp * sumCorr / sumProb + tCorrPileUp * tCorrPileUp;
857+
}
856858

857859
if (inwards) {
858860
// reset covariance to something big for inwards refit

GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,9 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
634634
yCorrPileUp = -slopeFactor * deltaBC;
635635
}
636636
}
637-
if (sumProb > 1e-6f)
637+
if (sumProb > 1e-6f) {
638638
yAddErrPileUp2 = sumCorr2 / sumProb - 2 * yCorrPileUp * sumCorr / sumProb + yCorrPileUp * yCorrPileUp;
639+
}
639640
}
640641

641642
// correction for mean z position of tracklet (is not the center of the pad if track eta != 0)
@@ -775,8 +776,9 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
775776
yCorrPileUp = -slopeFactor * deltaBC;
776777
}
777778
}
778-
if (sumProb > 1e-6f)
779+
if (sumProb > 1e-6f) {
779780
yAddErrPileUp2 = sumCorr2 / sumProb - 2 * yCorrPileUp * sumCorr / sumProb + yCorrPileUp * yCorrPileUp;
781+
}
780782
}
781783

782784
float trkltPosUp[2] = {spacePoints[mHypothesis[iUpdate + hypothesisIdxOffset].mTrackletId].getY() - tiltCorrUp + yCorrPileUp, zPosCorrUp};

0 commit comments

Comments
 (0)