ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEvent
Root
EnumConversion.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
ActsEvent/EnumConversion.h
"
5
6
#include <format>
7
8
namespace
ActsTrk
{
9
10
DetectorType
toDetType
(
const
xAOD::UncalibMeasType
mType) {
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
}
24
return
DetectorType::UnDefined
;
25
}
26
xAOD::UncalibMeasType
toMeasType
(
const
DetectorType
dType) {
27
switch
(dType) {
28
using
enum
DetectorType
;
29
case
Pixel
:
return
xAOD::UncalibMeasType::PixelClusterType
;
30
case
Sct
:
return
xAOD::UncalibMeasType::StripClusterType
;
31
case
Mdt
:
return
xAOD::UncalibMeasType::MdtDriftCircleType
;
32
case
Rpc
:
return
xAOD::UncalibMeasType::RpcStripType
;
33
case
Tgc
:
return
xAOD::UncalibMeasType::TgcStripType
;
34
case
Mm
:
return
xAOD::UncalibMeasType::MMClusterType
;
35
case
sTgc
:
return
xAOD::UncalibMeasType::sTgcStripType
;
36
case
Hgtd
:
return
xAOD::UncalibMeasType::HGTDClusterType
;
37
38
default
:
39
throw
std::runtime_error(std::format(
"toMeasType() - Unsupported {} type parsed"
, dType));
40
}
41
return
xAOD::UncalibMeasType::nTypes
;
42
}
43
Trk::TrackInfo::TrackFitter
toTrkFitterType
(
const
xAOD::TrackFitter
fType) {
44
switch
(fType) {
45
using
enum
xAOD::TrackFitter
;
46
case
Unknown
:
return
Trk::TrackInfo::TrackFitter::Unknown
;
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
}
EnumConversion.h
OfflineHitType::Other
@ Other
Definition
FPGATrackSimTypes.h:31
Unknown
struct TBPatternUnitContext Unknown
Trk::TrackInfo::TrackFitter
TrackFitter
enums to identify who created this track and what propertis does it have.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:39
Trk::TrackInfo::GaussianSumFilter
@ GaussianSumFilter
Tracks from Gaussian Sum Filter.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:53
Trk::TrackInfo::KalmanDNAFitter
@ KalmanDNAFitter
Kalman DNA Fitter.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:65
Trk::TrackInfo::KalmanFitter
@ KalmanFitter
tracks produced by the Kalman Fitter
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:50
Trk::TrackInfo::MuonboyFitter
@ MuonboyFitter
Track produced with Muonboy's internal fitter.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:68
Trk::TrackInfo::DeterministicAnnealingFilter
@ DeterministicAnnealingFilter
Adpative track fitter with fuzzy hit assignment.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:62
Trk::TrackInfo::xKalman
@ xKalman
tracks produced by xKalman
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:47
Trk::TrackInfo::DistributedKalmanFilter
@ DistributedKalmanFilter
Fast Kalman filter from HLT with simplified material effects.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:59
Trk::TrackInfo::GlobalChi2Fitter
@ GlobalChi2Fitter
Track's from Thijs' global chi^2 fitter.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:56
Trk::TrackInfo::iPatTrackFitter
@ iPatTrackFitter
tracks produced by iPat
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:44
Trk::TrackInfo::Unknown
@ Unknown
Track fitter not defined.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:41
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition
GeometryDefs.h:25
ActsTrk::DetectorType::Mm
@ Mm
Maybe not needed in the migration.
Definition
GeometryDefs.h:36
ActsTrk::DetectorType::Tgc
@ Tgc
Resitive Plate Chambers.
Definition
GeometryDefs.h:34
ActsTrk::DetectorType::Pixel
@ Pixel
Inner detector legacy.
Definition
GeometryDefs.h:27
ActsTrk::DetectorType::Sct
@ Sct
Definition
GeometryDefs.h:28
ActsTrk::DetectorType::sTgc
@ sTgc
Micromegas (NSW).
Definition
GeometryDefs.h:37
ActsTrk::DetectorType::Rpc
@ Rpc
Monitored Drift Tubes.
Definition
GeometryDefs.h:33
ActsTrk::DetectorType::Hgtd
@ Hgtd
Definition
GeometryDefs.h:30
ActsTrk::DetectorType::Mdt
@ Mdt
MuonSpectrometer.
Definition
GeometryDefs.h:32
ActsTrk::DetectorType::UnDefined
@ UnDefined
Small Thing Gap chambers (NSW).
Definition
GeometryDefs.h:38
ActsTrk::toDetType
DetectorType toDetType(const xAOD::UncalibMeasType mType)
Converts the uncalibrated measurement type to a detector type.
Definition
EnumConversion.cxx:10
ActsTrk::toTrkFitterType
Trk::TrackInfo::TrackFitter toTrkFitterType(const xAOD::TrackFitter fType)
Converts xAOD fitter type to Trk fitter type.
Definition
EnumConversion.cxx:43
ActsTrk::toMeasType
xAOD::UncalibMeasType toMeasType(const DetectorType dType)
Conversts the detector type to an uncalibrated measurement type.
Definition
EnumConversion.cxx:26
Hgtd
Definition
HgtdTimedClusteringTool.cxx:11
Pixel
Definition
PixelFEUtils.h:17
xAOD::TrackFitter
TrackFitter
Enums to identify who created this track and which properties does it have.
Definition
TrackingPrimitives.h:40
xAOD::UncalibMeasType
UncalibMeasType
Define the type of the uncalibrated measurement.
Definition
MeasurementDefs.h:24
xAOD::UncalibMeasType::TgcStripType
@ TgcStripType
Definition
MeasurementDefs.h:32
xAOD::UncalibMeasType::MdtDriftCircleType
@ MdtDriftCircleType
Definition
MeasurementDefs.h:30
xAOD::UncalibMeasType::MMClusterType
@ MMClusterType
Definition
MeasurementDefs.h:33
xAOD::UncalibMeasType::RpcStripType
@ RpcStripType
Definition
MeasurementDefs.h:31
xAOD::UncalibMeasType::StripClusterType
@ StripClusterType
Definition
MeasurementDefs.h:28
xAOD::UncalibMeasType::nTypes
@ nTypes
Definition
MeasurementDefs.h:38
xAOD::UncalibMeasType::sTgcStripType
@ sTgcStripType
Definition
MeasurementDefs.h:34
xAOD::UncalibMeasType::PixelClusterType
@ PixelClusterType
Definition
MeasurementDefs.h:27
xAOD::UncalibMeasType::HGTDClusterType
@ HGTDClusterType
Definition
MeasurementDefs.h:36
Generated on
for ATLAS Offline Software by
1.17.0