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 }
44 switch (fType) {
45 using enum xAOD::TrackFitter;
47 case iPatTrackFitter: return Trk::TrackInfo::TrackFitter::iPatTrackFitter;
48 case xKalman: return Trk::TrackInfo::TrackFitter::xKalman;
49 case GaussianSumFilter: return Trk::TrackInfo::TrackFitter::GaussianSumFilter;
50 case GlobalChi2Fitter: return Trk::TrackInfo::TrackFitter::GlobalChi2Fitter;
51 case DistributedKalmanFilter: return Trk::TrackInfo::TrackFitter::DistributedKalmanFilter;
52 case DeterministicAnnealingFilter: return Trk::TrackInfo::TrackFitter::DeterministicAnnealingFilter;
53 case KalmanFitter: return Trk::TrackInfo::TrackFitter::KalmanFitter;
54 case KalmanDNAFitter: return Trk::TrackInfo::TrackFitter::KalmanDNAFitter;
55 case MuonboyFitter: return Trk::TrackInfo::TrackFitter::MuonboyFitter;
56
57 default:
58 throw std::runtime_error("toTrkFitterType() - Unsupported type parsed");
59 }
60 }
61
62}
@ Unknown
Definition TruthClasses.h:9
TrackFitter
enums to identify who created this track and what propertis does it have.
@ GaussianSumFilter
Tracks from Gaussian Sum Filter.
@ KalmanFitter
tracks produced by the Kalman Fitter
@ MuonboyFitter
Track produced with Muonboy's internal fitter.
@ DeterministicAnnealingFilter
Adpative track fitter with fuzzy hit assignment.
@ DistributedKalmanFilter
Fast Kalman filter from HLT with simplified material effects.
@ GlobalChi2Fitter
Track's from Thijs' global chi^2 fitter.
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.
Trk::TrackInfo::TrackFitter toTrkFitterType(const xAOD::TrackFitter fType)
Converts xAOD fitter type to Trk fitter type.
xAOD::UncalibMeasType toMeasType(const DetectorType dType)
Conversts the detector type to an uncalibrated measurement type.
TrackFitter
Enums to identify who created this track and which properties does it have.
UncalibMeasType
Define the type of the uncalibrated measurement.