From 6579588ddda6b4fbd428d1b896a13d0871616de3 Mon Sep 17 00:00:00 2001 From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de> Date: Mon, 10 Jul 2023 13:59:45 +0000 Subject: [PATCH] algo::Reco: Allow more detectors. --- algo/global/Reco.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/algo/global/Reco.cxx b/algo/global/Reco.cxx index 835e25b503..aee8e12cef 100644 --- a/algo/global/Reco.cxx +++ b/algo/global/Reco.cxx @@ -26,10 +26,9 @@ void Reco::Validate(const Options& opts) for (auto detector : opts.Detectors()) { switch (detector) { - case fles::Subsystem::STS: break; - case fles::Subsystem::TOF: break; - case fles::Subsystem::BMON: break; - default: throw std::runtime_error(fmt::format("Unsupported system: {}", ToString(detector))); + case fles::Subsystem::TRD: + case fles::Subsystem::TRD2D: throw std::runtime_error(fmt::format("Unsupported system: {}", ToString(detector))); + default: break; } } } -- GitLab