ATLAS Offline Software
Loading...
Searching...
No Matches
GeometryDefs.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef ACTSGEOMETRYINTERFACES_GEOMETRYDEFS_H
5#define ACTSGEOMETRYINTERFACES_GEOMETRYDEFS_H
6
10#include <string>
11#include <ostream>
12#ifndef SIMULATIONBASE
14# include "Acts/Utilities/OstreamFormatter.hpp"
15#endif
16namespace ActsTrk {
35
36 inline std::string to_string(const DetectorType& type) {
37 switch (type) {
38 using enum DetectorType;
39 case Pixel: return "Pixel";
40 case Sct: return "Sct";
41 case Trt: return "Trt";
42 case Hgtd: return "Hgtd";
43 case Mdt: return "Mdt";
44 case Rpc: return "Rpc";
45 case Tgc: return "Tgc";
46 case Mm: return "Mm";
47 case sTgc: return "sTgc";
48 case Csc: return "Csc";
49 case UnDefined: return "UnDefined";
50 }
51 return "Unknown";
52 }
53
54 inline std::ostream& operator<<(std::ostream& ostr, const DetectorType type) {
55 return (ostr<<to_string(type));
56 }
57
58} // namespace ActsTrk
59
60#ifndef SIMULATIONBASE
62#endif
63#endif
ACTS_OSTREAM_FORMATTER(ActsTrk::DetectorType)
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::ostream & operator<<(std::ostream &ostr, const DetectorType type)
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ Mm
Maybe not needed in the migration.
@ Tgc
Resitive Plate Chambers.
@ sTgc
Micromegas (NSW).
@ Rpc
Monitored Drift Tubes.
@ Csc
Thin gap champers.
@ Trt
Maybe the Sct / Pixel for Itk become seperate entries?
@ Mdt
MuonSpectrometer.
@ UnDefined
Small Thing Gap chambers (NSW).
std::string to_string(const DetectorType &type)