Skip to content

Commit 537ed3f

Browse files
committed
study
Signed-off-by: Felix Schlepper <[email protected]>
1 parent 73d41ae commit 537ed3f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Detectors/Upgrades/ITS3/study/src/TrackingStudy.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,11 @@ bool TrackingStudySpec::selectTrack(GTrackID trkID, o2::globaltracking::RecoCont
224224
return false;
225225
}
226226
// TPC specific
227-
const auto& tpcTrk = recoData.getTPCTrack(contributorsGID[GTrackID::TPC]);
228-
if (tpcTrk.getChi2() > conf.maxChi2 || tpcTrk.getNClusters() < conf.minITSCls) {
229-
return false;
227+
if (contributorsGID[GTrackID::TPC].isIndexSet()) {
228+
const auto& tpcTrk = recoData.getTPCTrack(contributorsGID[GTrackID::TPC]);
229+
if (tpcTrk.getChi2() > conf.maxChi2 || tpcTrk.getNClusters() < conf.minITSCls) {
230+
return false;
231+
}
230232
}
231233
// general
232234
const auto& gTrk = recoData.getTrackParam(trkID);

0 commit comments

Comments
 (0)