Skip to content

Commit f86363a

Browse files
f3schdavidrohr
authored andcommitted
ITS: instaniate TRK classes
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 3669ad3 commit f86363a

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

Detectors/ITSMFT/ITS/tracking/src/TimeFrame.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,5 +667,9 @@ void TimeFrame<nLayers>::wipe()
667667
}
668668

669669
template class TimeFrame<7>;
670+
// ALICE3 upgrade
671+
#ifdef ENABLE_UPGRADES
672+
template class TimeFrame<11>;
673+
#endif
670674

671675
} // namespace o2::its

Detectors/ITSMFT/ITS/tracking/src/Tracker.cxx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,13 @@ void Tracker<nLayers>::clustersToTracks(const LogFunc& logger, const LogFunc& er
145145
} catch (const std::bad_alloc& err) {
146146
handleException(err);
147147
return;
148-
} catch (...) {
149-
error("Uncaught exception, all bets are off...");
148+
} catch (const std::exception& err) {
149+
error(std::format("Uncaught exception, all bets are off... {}", err.what()));
150+
// clear tracks explicitly since if not fatalising on exception this may contain partial output
151+
for (int iROF{0}; iROF < mTimeFrame->getNrof(); ++iROF) {
152+
mTimeFrame->getTracks(iROF).clear();
153+
}
154+
return;
150155
}
151156

152157
if (mTimeFrame->hasMCinformation()) {
@@ -357,5 +362,9 @@ void Tracker<nLayers>::printSummary() const
357362
}
358363

359364
template class Tracker<7>;
365+
// ALICE3 upgrade
366+
#ifdef ENABLE_UPGRADES
367+
template class Tracker<11>;
368+
#endif
360369

361370
} // namespace o2::its

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,5 +1327,9 @@ void TrackerTraits<nLayers>::setNThreads(int n, std::shared_ptr<tbb::task_arena>
13271327
}
13281328

13291329
template class TrackerTraits<7>;
1330+
// ALICE3 upgrade
1331+
#ifdef ENABLE_UPGRADES
1332+
template class TrackerTraits<11>;
1333+
#endif
13301334

13311335
} // namespace o2::its

0 commit comments

Comments
 (0)