Skip to content

Commit 8694ae3

Browse files
committed
Throw if svertexing with global tracks requested w/o asking TPC tracks.
1 parent 7a78c78 commit 8694ae3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Detectors/GlobalTrackingWorkflow/src/SecondaryVertexingSpec.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ DataProcessorSpec getSecondaryVertexingSpec(GTrackID::mask_t src, bool enableCas
226226
if (enableStrangenesTracking) {
227227
src |= (srcClus = GTrackID::getSourceMask(GTrackID::ITS));
228228
}
229+
if (GTrackID::includesDet(o2::detectors::DetID::TPC, src) && !src[GTrackID::TPC]) {
230+
throw std::runtime_error("Tracks involving TPC were requested w/o requesting TPC-only tracks");
231+
}
229232
if (src[GTrackID::TPC]) {
230233
srcClus |= GTrackID::getSourceMask(GTrackID::TPC);
231234
}

0 commit comments

Comments
 (0)