ATLAS Offline Software
Loading...
Searching...
No Matches
EnumConversion.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
5
6#include <format>
7
8namespace ActsTrk {
9
11 switch (mType) {
12 using enum xAOD::UncalibMeasType;
13 case PixelClusterType: return DetectorType::Pixel;
14 case StripClusterType: return DetectorType::Sct;
15 case MdtDriftCircleType: return DetectorType::Mdt;
16 case RpcStripType: return DetectorType::Rpc;
17 case TgcStripType: return DetectorType::Tgc;
18 case MMClusterType: return DetectorType::Mm;
19 case sTgcStripType: return DetectorType::sTgc;
20 case HGTDClusterType: return DetectorType::Hgtd;
21 case nTypes:
22 case Other: return DetectorType::UnDefined;
23 }
25 }
27 switch (dType) {
28 using enum DetectorType;
37
38 default:
39 throw std::runtime_error(std::format("toMeasType() - Unsupported {} type parsed", dType));
40 }
42 }
43
44}
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ Mm
Maybe not needed in the migration.
@ Tgc
Resitive Plate Chambers.
@ Pixel
Inner detector legacy.
@ sTgc
Micromegas (NSW).
@ Rpc
Monitored Drift Tubes.
@ Mdt
MuonSpectrometer.
@ UnDefined
Small Thing Gap chambers (NSW).
DetectorType toDetType(const xAOD::UncalibMeasType mType)
Converts the uncalibrated measurement type to a detector type.
xAOD::UncalibMeasType toMeasType(const DetectorType dType)
Conversts the detector type to an uncalibrated measurement type.
UncalibMeasType
Define the type of the uncalibrated measurement.