Skip to content

Commit b42cec9

Browse files
committed
clang format
1 parent 501f33d commit b42cec9

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

Detectors/TRD/qc/src/Tracking.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void Tracking::checkTrack(const TrackTRD& trkTrd, bool isTPCTRD)
160160
float slopeFactor = mTrackletsRaw[trkltId].getSlopeFloat() * pad->getWidthIPad() / 4.f;
161161
float yCorrPileUp = tCorrPileUp * slopeFactor;
162162
float yAddErrPileUp2 = tErrPileUp2 * slopeFactor * slopeFactor;
163-
163+
164164
float angularPull = (mTrackletsCalib[trkltId].getDy() + dyTiltCorr - mRecoParam.convertAngleToDy(trk.getSnp())) / std::sqrt(mRecoParam.getDyRes(trk.getSnp(), 0));
165165

166166
std::array<float, 2> trkltPosUp{mTrackletsCalib[trkltId].getY() - tiltCorrUp + yCorrPileUp, zPosCorrUp};

Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ bool TRDGlobalTracking::refitTRDTrack(TrackTRD& trk, float& chi2, bool inwards,
891891
float slopeFactor = mTrackletsRaw[trkltId].getSlopeFloat() * pad->getWidthIPad() / 4.f;
892892
float yCorrPileUp = tCorrPileUp * slopeFactor;
893893
float yAddErrPileUp2 = tErrPileUp2 * slopeFactor * slopeFactor;
894-
894+
895895
int nTrackletsChamber = mTracker->GetNtrackletsChamber(trk.getCollisionId(), trkltDet);
896896
float angularPull = (mTrackletsCalib[trkltId].getDy() + dyTiltCorr - mRecoParam.convertAngleToDy(trkParam->getSnp())) / std::sqrt(mRecoParam.getDyRes(trkParam->getSnp(), nTrackletsChamber));
897897

GPU/GPUTracking/DataTypes/GPUTRDRecoParam.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GPUTRDRecoParam
4848

4949
GPUd() float getRPhiRes(float snp, float pull = 0.f, int occupancy = 0) const;
5050
GPUd() float getDyRes(float snp, int occupancy = 0) const { return mDyA2 + mDyC2 * (snp - mLorentzAngle) * (snp - mLorentzAngle) + mOccDyA * occupancy; } // a^2 + c^2 * (snp - b)^2
51-
GPUd() float convertAngleToDy(float snp) const { return 3.f * snp / CAMath::Sqrt(1 - snp * snp); } // when calibrated, sin(phi) = (dy / xDrift) / sqrt(1+(dy/xDrift)^2) works well
51+
GPUd() float convertAngleToDy(float snp) const { return 3.f * snp / CAMath::Sqrt(1 - snp * snp); } // when calibrated, sin(phi) = (dy / xDrift) / sqrt(1+(dy/xDrift)^2) works well
5252
GPUd() float getCorrYDy() const { return mCorrYDy; }
5353
GPUd() float getPileUpProbTracklet(int nBC, bool withChargeInfo, bool Q0 = true, bool Q1 = true) const;
5454
GPUd() float getPileUpProbTrack(int nBC, std::array<int, 6> Q0, std::array<int, 6> Q1) const;
@@ -64,9 +64,9 @@ class GPUTRDRecoParam
6464
// tracklet error parameterization depends on the magnetic field
6565
float mLorentzAngle{0.f};
6666
// rphi
67-
float mRPhiA{1.f}; ///< parameterization for tracklet position resolution
68-
float mRPhiATgp{1.f}; ///< parameterization for tracklet position resolution
69-
float mRPhiC2{0.f}; ///< parameterization for tracklet position resolution
67+
float mRPhiA{1.f}; ///< parameterization for tracklet position resolution
68+
float mRPhiATgp{1.f}; ///< parameterization for tracklet position resolution
69+
float mRPhiC2{0.f}; ///< parameterization for tracklet position resolution
7070
// angle
7171
float mDyA2{1.225e-3f}; ///< parameterization for tracklet angular resolution
7272
float mDyC2{0.f}; ///< parameterization for tracklet angular resolution
@@ -114,7 +114,8 @@ class GPUTRDRecoParam
114114
/// \param phi angle of related track
115115
/// \return sigma_y^2 of tracklet
116116
/// also depend on absolute pull and on chamber occupancy
117-
GPUdi() float GPUTRDRecoParam::getRPhiRes(float snp, float pull, int occupancy) const {
117+
GPUdi() float GPUTRDRecoParam::getRPhiRes(float snp, float pull, int occupancy) const
118+
{
118119
// flat uncertainty + radial-alignment uncertainty depending on tan(phi)
119120
float tgp = (CAMath::Abs(snp) < 0.99999f) ? CAMath::Abs(snp) / CAMath::Sqrt(1 - snp * snp) : 1e6;
120121
float resIdeal = mRPhiA + mRPhiATgp * tgp;
@@ -123,8 +124,8 @@ GPUdi() float GPUTRDRecoParam::getRPhiRes(float snp, float pull, int occupancy)
123124
pull = 10.f;
124125
}
125126
float resPull = mPullA * pull * pull + mPullB * pull; // parametrization as pol2 summed in quadrature
126-
float resOccupancy = mOccA * occupancy; // parametrization as sqrt() summed in quadrature
127-
return (resIdeal * resIdeal + mRPhiC2 * (snp - mLorentzAngle) * (snp - mLorentzAngle) + resPull * resPull + resOccupancy);
127+
float resOccupancy = mOccA * occupancy; // parametrization as sqrt() summed in quadrature
128+
return (resIdeal * resIdeal + mRPhiC2 * (snp - mLorentzAngle) * (snp - mLorentzAngle) + resPull * resPull + resOccupancy);
128129
}
129130

130131
GPUdi() float GPUTRDRecoParam::getPileUpProbTracklet(int nBC, bool withChargeInfo, bool Q0, bool Q1) const

GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,9 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
786786
yAddErrPileUp2 = sumCorr2 / sumProb - 2 * yCorrPileUp * sumCorr / sumProb + yCorrPileUp * yCorrPileUp;
787787
}
788788
}
789-
789+
790790
const auto currDet = tracklets[mHypothesis[iUpdate + hypothesisIdxOffset].mTrackletId].GetDetector();
791-
int nTrackletsChamber = mTrackletIndexArray[trkltIdxOffset + currDet + 1] - mTrackletIndexArray[trkltIdxOffset + currDet];
791+
int nTrackletsChamber = mTrackletIndexArray[trkltIdxOffset + currDet + 1] - mTrackletIndexArray[trkltIdxOffset + currDet];
792792

793793
float trkltPosUp[2] = {spacePoints[mHypothesis[iUpdate + hypothesisIdxOffset].mTrackletId].getY() - tiltCorrUp + yCorrPileUp, zPosCorrUp};
794794
float trkltCovUp[3] = {0.f};
@@ -1130,7 +1130,7 @@ GPUd() int GPUTRDTracker_t<TRDTRK, PROP>::GetNtrackletsChamber(int collisionId,
11301130
{
11311131
// get the number of tracklets for a given chamber and trigger
11321132
int32_t trkltIdxOffset = collisionId * (kNChambers + 1);
1133-
int nTrackletsChamber = mTrackletIndexArray[trkltIdxOffset + detector + 1] - mTrackletIndexArray[trkltIdxOffset + detector];
1133+
int nTrackletsChamber = mTrackletIndexArray[trkltIdxOffset + detector + 1] - mTrackletIndexArray[trkltIdxOffset + detector];
11341134
return nTrackletsChamber;
11351135
}
11361136

0 commit comments

Comments
 (0)