Skip to content

Commit 2074f79

Browse files
committed
Changes in TPC residuals validation
1 parent 368f4c2 commit 2074f79

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackInterpolation.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ class TrackInterpolation
489489
float mBz; ///< required for helix approximation
490490
bool mInitDone{false}; ///< initialization done flag
491491
size_t mRejectedResiduals{}; ///< number of rejected residuals
492-
492+
size_t mNRejRefit = 0;
493+
493494
ClassDefNV(TrackInterpolation, 1);
494495
};
495496

Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ void TrackInterpolation::process()
374374
trackIndices.insert(trackIndices.end(), mTrackIndices[mTrackTypes[GTrackID::ITSTPCTRD]].begin(), mTrackIndices[mTrackTypes[GTrackID::ITSTPCTRD]].end());
375375
trackIndices.insert(trackIndices.end(), mTrackIndices[mTrackTypes[GTrackID::ITSTPCTOF]].begin(), mTrackIndices[mTrackTypes[GTrackID::ITSTPCTOF]].end());
376376
trackIndices.insert(trackIndices.end(), mTrackIndices[mTrackTypes[GTrackID::ITSTPC]].begin(), mTrackIndices[mTrackTypes[GTrackID::ITSTPC]].end());
377-
378377
int nSeeds = mSeeds.size(), lastChecked = 0;
379378
mParentID.clear();
380379
mParentID.resize(nSeeds, -1);
@@ -439,7 +438,9 @@ void TrackInterpolation::process()
439438
remSeeds.resize(mSeeds.size() - lastChecked);
440439
std::iota(remSeeds.begin(), remSeeds.end(), lastChecked);
441440
std::shuffle(remSeeds.begin(), remSeeds.end(), g);
442-
LOGP(info, "Up to {} tracks out of {} additional seeds will be processed in random order, of which {} are stripped versions, accepted seeds: {}", mAddTracksForMapPerTF, remSeeds.size(), mSeeds.size() - nSeeds, mTrackDataCompact.size());
441+
LOGP(info, "Up to {} tracks out of {} additional seeds will be processed in random order, of which {} are stripped versions, accepted seeds: {}",
442+
mAddTracksForMapPerTF > 0 ? mAddTracksForMapPerTF : remSeeds.size() ,
443+
remSeeds.size(), mSeeds.size() - nSeeds, mTrackDataCompact.size());
443444
}
444445
int extraChecked = 0;
445446
for (int iSeed : remSeeds) {
@@ -456,8 +457,10 @@ void TrackInterpolation::process()
456457
extrapolateTrack(iSeed);
457458
}
458459
}
459-
LOG(info) << "Could process " << mTrackData.size() << " tracks successfully. " << mRejectedResiduals << " residuals were rejected. " << mClRes.size() << " residuals were accepted.";
460+
LOGP(info, "Could process {} tracks successfully ({} rejected in refits), {} residuals were rejected, {} accepted",
461+
mTrackData.size(), mNRejRefit, mRejectedResiduals, mClRes.size());
460462
mRejectedResiduals = 0;
463+
mNRejRefit = 0;
461464
}
462465

463466
void TrackInterpolation::interpolateTrack(int iSeed)
@@ -486,6 +489,7 @@ void TrackInterpolation::interpolateTrack(int iSeed)
486489
}
487490
}
488491
if (mParams->refitITS && !refITSTrack(gidTable[GTrackID::ITS], iSeed)) {
492+
mNRejRefit++;
489493
return;
490494
}
491495
trackData.gid = mGIDs[iSeed];
@@ -952,6 +956,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed)
952956
}
953957
}
954958
if (mParams->refitITS && !refITSTrack(gidTable[GTrackID::ITS], iSeed)) {
959+
mNRejRefit++;
955960
return;
956961
}
957962
trackData.gid = mGIDs[iSeed];

0 commit comments

Comments
 (0)