ATLAS Offline Software
GeometryDefs.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef ACTSGEOMETRYINTERFACES_GEOMETRYDEFS_H
5 #define ACTSGEOMETRYINTERFACES_GEOMETRYDEFS_H
6 
10 #include <string>
11 #ifndef SIMULATIONBASE
12 # include "Acts/Definitions/Algebra.hpp"
13 #endif
14 namespace ActsTrk {
17  enum class DetectorType: unsigned short {
19  Pixel,
20  Sct,
22  Trt,
23  Hgtd,
25  Mdt,
26  Rpc,
27  Tgc,
28  Csc,
29  Mm,
30  sTgc,
31  UnDefined
32  };
33 
34  inline std::string to_string(const DetectorType& type) {
36  return "Pixel";
37  else if (type == DetectorType::Sct)
38  return "Sct";
39  else if (type == DetectorType::Trt)
40  return "Trt";
41  else if (type == DetectorType::Hgtd)
42  return "Hgtd";
43  else if (type == DetectorType::Mdt)
44  return "Mdt";
45  else if (type == DetectorType::Rpc)
46  return "Rpc";
47  else if (type == DetectorType::Tgc)
48  return "Tgc";
49  else if (type == DetectorType::Csc)
50  return "Csc";
51  else if (type == DetectorType::Mm)
52  return "Mm";
53  else if (type == DetectorType::sTgc)
54  return "sTgc";
55  return "Unknown";
56  }
57 
58 } // namespace ActsTrk
59 #endif
xAOD::short
short
Definition: Vertex_v1.cxx:165
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition: GeometryDefs.h:17
ActsTrk::DetectorType::UnDefined
@ UnDefined
Small Thing Gap chambers (NSW)
ActsTrk::DetectorType::Tgc
@ Tgc
Resitive Plate Chambers.
ActsTrk::DetectorType::Sct
@ Sct
ActsTrk::DetectorType::sTgc
@ sTgc
Micromegas (NSW)
xAOD::unsigned
unsigned
Definition: RingSetConf_v1.cxx:662
GeoPrimitives.h
ActsTrk::DetectorType::Pixel
@ Pixel
Inner detector legacy.
ActsTrk::DetectorType::Mm
@ Mm
Maybe not needed in the migration.
ActsTrk::DetectorType::Csc
@ Csc
Thin gap champers.
ActsTrk::DetectorType::Trt
@ Trt
Maybe the Sct / Pixel for Itk become seperate entries?
ActsTrk::DetectorType::Mdt
@ Mdt
MuonSpectrometer.
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
ActsTrk::DetectorType::Hgtd
@ Hgtd
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ActsTrk::DetectorType::Rpc
@ Rpc
Monitored Drift Tubes.
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:49