Skip to content

Commit 7afeb50

Browse files
committed
clang format
1 parent 61978ae commit 7afeb50

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

Detectors/TRD/calibration/include/TRDCalibration/CalibrationParams.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ namespace trd
2626
struct TRDCalibParams : public o2::conf::ConfigurableParamHelper<TRDCalibParams> {
2727
unsigned int nTrackletsMin = 5; ///< minimum amount of tracklets
2828
unsigned int nTrackletsMinLoose = 4; ///< minimum amount of tracklets if two layers with a large lever arm both have a hit
29-
unsigned int chi2RedMax = 6; ///< maximum reduced chi2 acceptable for track quality
30-
float minPtCalib = 1.; ///< min pt for vd and ExB calib
31-
bool rejectTPCTRD = true; ///< reject TPC-TRD tracks for vd ExB calib
32-
size_t minEntriesChamber = 200; ///< minimum number of entries per chamber to fit single time slot
29+
unsigned int chi2RedMax = 6; ///< maximum reduced chi2 acceptable for track quality
30+
float minPtCalib = 1.; ///< min pt for vd and ExB calib
31+
bool rejectTPCTRD = true; ///< reject TPC-TRD tracks for vd ExB calib
32+
size_t minEntriesChamber = 200; ///< minimum number of entries per chamber to fit single time slot
3333
size_t minEntriesTotal = 400'000; ///< minimum total required for meaningful fits
3434

3535
// For gain calibration

Detectors/TRD/calibration/src/TrackBasedCalib.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int TrackBasedCalib::doTrdOnlyTrackFits(gsl::span<const TrackTRD>& tracks)
212212
LOG(alarm) << "Track with invalid parameters found: " << trkWork.getRefGlobalTrackId();
213213
continue;
214214
}
215-
215+
216216
// reject tracks which cross sectors within TRD (if the extrapolation from the outer TRD to the outer TPC leads to a change in sector or close to the sector edges with 5 cm margin), which have larger uncertainties and probably more fakes
217217
float yOuterTPC = trkIn.getOuterParam().getYAt(o2::constants::geom::XTPCOuterRef, bz);
218218
if (std::fabs(yOuterTPC) > o2::constants::geom::XTPCOuterRef * tan(M_PI / 18.) - 5.) {

Detectors/TRD/qc/src/Tracking.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void Tracking::checkTrack(const TrackTRD& trkTrd, bool isTPCTRD)
164164

165165
float angularPull = (mTrackletsCalib[trkltId].getDy() + dyTiltCorr - mRecoParam.convertAngleToDy(trk.getSnp())) / std::sqrt(mRecoParam.getDyRes(trk.getSnp(), 0));
166166
// Correction of y position based on angular pull
167-
float corrPull = - angularPull * mRecoParam.getCorrYDy(trk.getSnp());
167+
float corrPull = -angularPull * mRecoParam.getCorrYDy(trk.getSnp());
168168
yPosCorrUp += corrPull;
169169

170170
std::array<float, 2> trkltPosUp{yPosCorrUp, zPosCorrUp};

Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx

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

934934
// Correction of y position based on angular pull
935935
if (mRec->GetParam().rec.trd.useAngularPull == 3 || mRec->GetParam().rec.trd.useAngularPull == 4) {
936-
float corrPull = - angularPull * mRecoParam.getCorrYDy(trkParam->getSnp());
936+
float corrPull = -angularPull * mRecoParam.getCorrYDy(trkParam->getSnp());
937937
yPosCorrUp += corrPull;
938938
}
939939

GPU/GPUTracking/DataTypes/GPUTRDRecoParam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class GPUTRDRecoParam
7171
float mRPhiC2{0.f}; ///< parameterization for tracklet position resolution
7272
// angle
7373
float mDyA2{6e-3f}; ///< parameterization for tracklet angular resolution
74-
float mDyC2{0.3f}; ///< parameterization for tracklet angular resolution
74+
float mDyC2{0.3f}; ///< parameterization for tracklet angular resolution
7575
// variation in y when dy variates by one sigma (= cov / sigma_dy = corr * sigma_y) for tracklet (valid within ~[-0.6,0.6] of dy_trklt-dy_trk)
7676
float mCorrYDyA{9e-4f};
7777
float mCorrYDyC{1.5e-2f};

GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx

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

656656
// Correction of y position based on angular pull
657657
if (Param().rec.trd.useAngularPull == 3 || Param().rec.trd.useAngularPull == 4) {
658-
float corrPull = - angularPull * mRecoParam->getCorrYDy(trkWork->getSnp());
658+
float corrPull = -angularPull * mRecoParam->getCorrYDy(trkWork->getSnp());
659659
yPosCorr += corrPull;
660660
}
661661

@@ -698,7 +698,7 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
698698
if (Param().rec.trd.addDeflectionInChi2 == 2 || Param().rec.trd.addDeflectionInChi2 == 3) {
699699
// In this case we take into account the full likelihood, so we replace (deltaDy/sigmaDy)^2 by -2*ln(likelihood), which is the same in the default Gaussian case
700700
double likelihood = mRecoParam->getDyLikelihood(trkWork->getSnp(), spacePoints[trkltIdx].getDy() + dyTiltCorr, nTrackletsChamber);
701-
if (likelihood < 1e-6f) continue; // likelihood of 1e-6 is equivalent to 5 sigma deviation, so we can safely cut it to avoid numerical instability in log calculation
701+
if (likelihood < 1e-6f) continue; // likelihood of 1e-6 is equivalent to 5 sigma deviation, so we can safely cut it to avoid numerical instability in log calculation
702702
deltaDy = CAMath::Sqrt(-2.f * CAMath::Log(likelihood) * sigmaDy2) * (deltaDy > 0.f ? 1.f : -1.f);
703703
}
704704
if (Param().rec.trd.addDeflectionInChi2 == 3) {
@@ -842,7 +842,7 @@ GPUd() bool GPUTRDTracker_t<TRDTRK, PROP>::FollowProlongation(PROP* prop, TRDTRK
842842

843843
// Correction of y position based on angular pull
844844
if (Param().rec.trd.useAngularPull == 3 || Param().rec.trd.useAngularPull == 4) {
845-
float corrPull = - angularPull * mRecoParam->getCorrYDy(trkWork->getSnp());
845+
float corrPull = -angularPull * mRecoParam->getCorrYDy(trkWork->getSnp());
846846
yPosCorrUp += corrPull;
847847
}
848848

0 commit comments

Comments
 (0)