Skip to content

Commit 9c84982

Browse files
committed
feat(tracking): Introduce configurable minimum PT per track length
The changes introduce a configurable minimum PT value per track length in the ITS tracking parameters. This allows for more fine-grained control over the minimum PT requirement, which can be useful for different tracking scenarios. The main changes are: - Modify the `TrackingParameters` struct to include an array of 4 minimum PT values, one for each track length (7, 6, 5, 4). - Update the track fitting logic in `TrackerTraits::findRoads()` to use the appropriate minimum PT value based on the track length. - Update the default minimum PT value in `TrackingInterface::initialise()` to use the new array-based approach. These changes provide more flexibility in tuning the ITS tracking parameters to meet the requirements of different analysis workflows.
1 parent e4a87fc commit 9c84982

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Detectors/ITSMFT/ITS/tracking/include/ITStracking/Configuration.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct TrackingParameters {
9494
unsigned long MaxMemory = 12000000000UL;
9595
float MaxChi2ClusterAttachment = 60.f;
9696
float MaxChi2NDF = 30.f;
97-
float MinPt = 0.f;
97+
float MinPt[4] = {0.f};
9898
unsigned char StartLayerMask = 0x7F;
9999
bool FindShortTracks = false;
100100
bool PerPrimaryVertexProcessing = false;

‎Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ void TrackerTraits::findRoads(const int iteration)
618618
temporaryTrack.resetCovariance();
619619
temporaryTrack.setChi2(0);
620620
fitSuccess = fitTrack(temporaryTrack, mTrkParams[0].NLayers - 1, -1, -1, mTrkParams[0].MaxChi2ClusterAttachment, mTrkParams[0].MaxChi2NDF, 50.f);
621-
if (!fitSuccess || temporaryTrack.getPt() < mTrkParams[iteration].MinPt) {
621+
if (!fitSuccess || temporaryTrack.getPt() < mTrkParams[iteration].MinPt[7 - temporaryTrack.getNClusters()]) {
622622
continue;
623623
}
624624
tracks[trackIndex++] = temporaryTrack;

‎Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void ITSTrackingInterface::initialise()
4747
trackParams[2].TrackletMinPt = 0.1f;
4848
trackParams[2].CellDeltaTanLambdaSigma *= 4.;
4949
trackParams[2].MinTrackLength = 4;
50-
trackParams[2].MinPt = 0.2f;
50+
trackParams[2].MinPt[3] = 0.2f;
5151
trackParams[2].StartLayerMask = (1 << 6) + (1 << 3);
5252
if (o2::its::TrackerParamConfig::Instance().doUPCIteration) {
5353
trackParams[3].TrackletMinPt = 0.1f;

0 commit comments

Comments
 (0)