Skip to content

Commit e57b474

Browse files
committed
clang format
1 parent 9796e4a commit e57b474

4 files changed

Lines changed: 17 additions & 13 deletions

File tree

‎Detectors/TRD/qc/src/Tracking.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void Tracking::checkTrack(const TrackTRD& trkTrd, bool isTPCTRD)
118118
sumCorr += probBC * deltaBC;
119119
sumCorr2 += probBC * deltaBC * deltaBC;
120120
sumProb += probBC;
121-
tCorrPileUp_weightedMean -= probBC*deltaBC;
121+
tCorrPileUp_weightedMean -= probBC * deltaBC;
122122
if (probBC > maxProb) {
123123
maxProb = probBC;
124124
tCorrPileUp = -deltaBC;
@@ -161,7 +161,7 @@ void Tracking::checkTrack(const TrackTRD& trkTrd, bool isTPCTRD)
161161

162162
// conversion from slope in pad per time bin to slope in cm per BC = tracklets[trkltIdx].getSlopeFloat() * padWidth / BCperTimeBin
163163
float slopeFactor = mTrackletsRaw[trkltId].getSlopeFloat() * pad->getWidthIPad() / 4.f;
164-
//float yCorrPileUp = tCorrPileUp * slopeFactor;
164+
// float yCorrPileUp = tCorrPileUp * slopeFactor;
165165
float yCorrPileUp = tCorrPileUp_weightedMean * slopeFactor;
166166
float yAddErrPileUp2 = tErrPileUp2 * slopeFactor * slopeFactor;
167167
float yPosCorrUp = mTrackletsCalib[trkltId].getY() - tiltCorrUp + yCorrPileUp;

‎Detectors/TRD/simulation/src/Digitizer.cxx‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,16 @@ bool Digitizer::convertHits(const int det, const std::vector<Hit>& hits, SignalC
275275
continue;
276276
}
277277
}
278-
279-
if (hit.GetTrackID() < 20) LOGF(info, "pos before ExB: %f, drift length: %f, locX: %f, trackId: %d", locCd, absDriftLength, locT, hit.GetTrackID());
278+
279+
if (hit.GetTrackID() < 20)
280+
LOGF(info, "pos before ExB: %f, drift length: %f, locX: %f, trackId: %d", locCd, absDriftLength, locT, hit.GetTrackID());
280281

281282
// Apply E x B effects
282283
if (mSimParam.isExBOn()) {
283284
// minus sign is necessary to be compatible with how Vdrift and ExB are calibrated
284285
locCd = locCd - TMath::Tan(calExBDetValue) * driftLength;
285286
}
286-
287+
287288
// The electron position after diffusion and ExB in pad coordinates.
288289
rowE = padPlane->getPadRowNumberROC(locRd);
289290
if (rowE < 0) {
@@ -297,9 +298,10 @@ bool Digitizer::convertHits(const int det, const std::vector<Hit>& hits, SignalC
297298
continue;
298299
}
299300
const double colOffset = padPlane->getPadColOffset(colE, locCd + offsetTilt);
300-
301-
if (hit.GetTrackID() < 20) LOGF(info, "pos after ExB: %f %d, offset: %f tilt: %f", locCd, colE, colOffset, offsetTilt);
302-
301+
302+
if (hit.GetTrackID() < 20)
303+
LOGF(info, "pos after ExB: %f %d, offset: %f tilt: %f", locCd, colE, colOffset, offsetTilt);
304+
303305
// Convert the position to drift time [mus], using either constant drift velocity or
304306
// time structure of drift cells (non-isochronity, GARFIELD calculation).
305307
// Also add absolute time of hits to take pile-up events into account properly
@@ -378,14 +380,16 @@ bool Digitizer::convertHits(const int det, const std::vector<Hit>& hits, SignalC
378380
const double timeResponse = mSimParam.trfOn() ? mSimParam.timeResponse(t) : 1;
379381
const double crossTalk = mSimParam.ctOn() ? mSimParam.crossTalk(t) : 0;
380382
currentSignal[tb] += padSignal[pad] * (timeResponse + crossTalk);
381-
if (hit.GetTrackID() < 20) LOGF(info, "0, time bin: %d, pad: %d, signal: %f, totalSignal: %f", tb, pad, padSignal[pad] * (timeResponse + crossTalk), currentSignal[tb]);
383+
if (hit.GetTrackID() < 20)
384+
LOGF(info, "0, time bin: %d, pad: %d, signal: %f, totalSignal: %f", tb, pad, padSignal[pad] * (timeResponse + crossTalk), currentSignal[tb]);
382385
} // end of loop time bins
383386
} else {
384387
for (int tb = firstTimeBin; tb < lastTimeBin; ++tb) {
385388
const double t = (tb - timeBinTruncated) / mSamplingRate + timeOffset;
386389
const double timeResponse = mSimParam.trfOn() ? mSimParam.timeResponse(t) : 1;
387390
currentSignal[tb] += padSignal[pad] * timeResponse;
388-
if (hit.GetTrackID() < 20) LOGF(info, "1, time bin: %d, pad: %d, signal: %f, totalSignal: %f", tb, pad, padSignal[pad] * (timeResponse), currentSignal[tb]);
391+
if (hit.GetTrackID() < 20)
392+
LOGF(info, "1, time bin: %d, pad: %d, signal: %f, totalSignal: %f", tb, pad, padSignal[pad] * (timeResponse), currentSignal[tb]);
389393
} // end of loop time bins
390394
}
391395
} // end of loop over pads

‎Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ bool TRDGlobalTracking::refitTRDTrack(TrackTRD& trk, float& chi2, bool inwards,
929929

930930
// conversion from slope in pad per time bin to slope in cm per BC = tracklets[trkltIdx].getSlopeFloat() * padWidth / BCperTimeBin
931931
float slopeFactor = mTrackletsRaw[trkltId].getSlopeFloat() * pad->getWidthIPad() / 4.f;
932-
//float yCorrPileUp = mTCorrPileUp * slopeFactor;
932+
// float yCorrPileUp = mTCorrPileUp * slopeFactor;
933933
float yCorrPileUp = mTCorrPileUp_weightedMean * slopeFactor;
934934
float yAddErrPileUp2 = mTErrPileUp2 * slopeFactor * slopeFactor;
935935
float yPosCorrUp = mTrackletsCalib[trkltId].getY() - tiltCorrUp + yCorrPileUp;

‎GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
652652

653653
// correction for mean z position of tracklet (is not the center of the pad if track eta != 0)
654654
float zPosCorr = spacePoints[trkltIdx].getZ() + mRecoParam->getZCorrCoeffNRC() * trkWork->getTgl();
655-
//float yPosCorr = spacePoints[trkltIdx].getY() - tiltCorr + yCorrPileUp;
655+
// float yPosCorr = spacePoints[trkltIdx].getY() - tiltCorr + yCorrPileUp;
656656
float yPosCorr = spacePoints[trkltIdx].getY() - tiltCorr + yCorrPileUp_weightedMean;
657657
zPosCorr -= zShiftTrk + zShiftTrkPileUp; // shift tracklet instead of track in order to avoid having to do a re-fit for each collision
658658

@@ -843,7 +843,7 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
843843
}
844844

845845
zPosCorrUp -= zShiftTrkPileUp;
846-
//yPosCorrUp += yCorrPileUp;
846+
// yPosCorrUp += yCorrPileUp;
847847
yPosCorrUp += yCorrPileUp_weightedMean;
848848

849849
const auto currDet = tracklets[mHypothesis[iUpdate + hypothesisIdxOffset].mTrackletId].GetDetector();

0 commit comments

Comments
 (0)