ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGeometryInterfaces
ActsGeometryInterfaces
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
8
#include "
GeoPrimitives/GeoPrimitives.h
"
10
#include <string>
11
#include <string_view>
12
#include <ostream>
13
#ifndef SIMULATIONBASE
14
# include "
ActsInterop/UnitConverters.h
"
15
# include "Acts/Utilities/OstreamFormatter.hpp"
16
#endif
17
18
#define ENUM_ITEM_STR(item) \
19
case item: return #item;
20
21
22
namespace
ActsTrk
{
25
enum class
DetectorType
: std::uint8_t {
27
Pixel
,
28
Sct
,
29
Trt
,
30
Hgtd
,
32
Mdt
,
33
Rpc
,
34
Tgc
,
35
Csc
,
36
Mm
,
37
sTgc
,
38
UnDefined
39
};
40
42
enum class
SystemEnvelope
: std::uint8_t {
43
ITkExit
,
// Envelope volume of the ITk
44
CaloExit
,
// Enevelope volume of the Calorimeter / Ms entrance
45
MsExit
// Envelope around the Muon system
46
};
47
51
namespace
detail::GeoVolIds
{
53
constexpr
std::size_t
s_stripVolumeId
= 20;
54
constexpr
std::size_t
s_innerPixelVolumeId
= 5;
55
constexpr
std::size_t
s_outerPixelVolumeId
= 10;
56
constexpr
std::size_t
s_beamPipeVolumeId
= 1;
58
constexpr
std::size_t
s_hgtdPosVolumeId
= 30;
59
constexpr
std::size_t
s_hgtdNegVolumeId
= 31;
61
constexpr
std::size_t
s_caloEnvelopeID
= 39;
62
constexpr
std::size_t
s_caloBarrelId
= 40;
63
/* Volume Ids used within the muon system */
64
constexpr
std::size_t
s_muonBarrelId
= 80;
65
constexpr
std::size_t
s_muonEndcapAId
= 81;
66
constexpr
std::size_t
s_muonEndcapCId
= 82;
67
constexpr
std::size_t
s_muonEndcapMiddleAId
= 83;
68
constexpr
std::size_t
s_muonEndcapMiddleCId
= 84;
69
}
70
namespace
detail
{
72
inline
std::string
toString
(
const
DetectorType
type
) {
73
switch
(
type
) {
74
using
enum
DetectorType
;
75
ENUM_ITEM_STR
(
Pixel
);
76
ENUM_ITEM_STR
(
Sct
);
77
ENUM_ITEM_STR
(
Trt
);
78
ENUM_ITEM_STR
(
Hgtd
);
79
ENUM_ITEM_STR
(
Mdt
);
80
ENUM_ITEM_STR
(
Rpc
);
81
ENUM_ITEM_STR
(
Tgc
);
82
ENUM_ITEM_STR
(
Csc
);
83
ENUM_ITEM_STR
(
Mm
);
84
ENUM_ITEM_STR
(
sTgc
);
85
ENUM_ITEM_STR
(
UnDefined
);
86
}
87
return
"Unknown"
;
88
}
89
inline
std::string
toString
(
const
SystemEnvelope
type
) {
90
switch
(
type
) {
91
using
enum
SystemEnvelope
;
92
ENUM_ITEM_STR
(
ITkExit
);
93
ENUM_ITEM_STR
(
CaloExit
);
94
ENUM_ITEM_STR
(
MsExit
);
95
}
96
return
"Unknown"
;
97
}
98
}
100
inline
std::ostream&
operator<<
(std::ostream& ostr,
const
DetectorType
type
) {
101
return
(ostr<<
detail::toString
(
type
));
102
}
103
104
inline
std::ostream&
operator<<
(std::ostream& ostr,
const
SystemEnvelope
type
) {
105
return
(ostr<<
detail::toString
(
type
));
106
}
107
108
}
// namespace ActsTrk
109
110
#ifndef SIMULATIONBASE
111
ACTS_OSTREAM_FORMATTER
(
ActsTrk::DetectorType
);
112
ACTS_OSTREAM_FORMATTER
(
ActsTrk::SystemEnvelope
);
113
#endif
114
115
#undef ENUM_ITEM_STR
116
#endif
GeoPrimitives.h
ACTS_OSTREAM_FORMATTER
ACTS_OSTREAM_FORMATTER(ActsTrk::DetectorType)
ENUM_ITEM_STR
#define ENUM_ITEM_STR(item)
Load ATLAS Eigen library with custom geometry functions.
Definition
GeometryDefs.h:18
UnitConverters.h
ActsTrk::detail::GeoVolIds
Define the volume parts of the GeometryIdentifier for each ATLAS subsystem centrally.
Definition
GeometryDefs.h:51
ActsTrk::detail::GeoVolIds::s_outerPixelVolumeId
constexpr std::size_t s_outerPixelVolumeId
Definition
GeometryDefs.h:55
ActsTrk::detail::GeoVolIds::s_muonEndcapAId
constexpr std::size_t s_muonEndcapAId
Definition
GeometryDefs.h:65
ActsTrk::detail::GeoVolIds::s_muonEndcapCId
constexpr std::size_t s_muonEndcapCId
Definition
GeometryDefs.h:66
ActsTrk::detail::GeoVolIds::s_muonEndcapMiddleCId
constexpr std::size_t s_muonEndcapMiddleCId
Definition
GeometryDefs.h:68
ActsTrk::detail::GeoVolIds::s_hgtdNegVolumeId
constexpr std::size_t s_hgtdNegVolumeId
Definition
GeometryDefs.h:59
ActsTrk::detail::GeoVolIds::s_caloEnvelopeID
constexpr std::size_t s_caloEnvelopeID
Volume Ids ofthe Calorimeter.
Definition
GeometryDefs.h:61
ActsTrk::detail::GeoVolIds::s_caloBarrelId
constexpr std::size_t s_caloBarrelId
Definition
GeometryDefs.h:62
ActsTrk::detail::GeoVolIds::s_hgtdPosVolumeId
constexpr std::size_t s_hgtdPosVolumeId
HGTD volume IDs.
Definition
GeometryDefs.h:58
ActsTrk::detail::GeoVolIds::s_beamPipeVolumeId
constexpr std::size_t s_beamPipeVolumeId
Definition
GeometryDefs.h:56
ActsTrk::detail::GeoVolIds::s_stripVolumeId
constexpr std::size_t s_stripVolumeId
Volume Ids used within the ITk.
Definition
GeometryDefs.h:53
ActsTrk::detail::GeoVolIds::s_muonBarrelId
constexpr std::size_t s_muonBarrelId
Definition
GeometryDefs.h:64
ActsTrk::detail::GeoVolIds::s_muonEndcapMiddleAId
constexpr std::size_t s_muonEndcapMiddleAId
Definition
GeometryDefs.h:67
ActsTrk::detail::GeoVolIds::s_innerPixelVolumeId
constexpr std::size_t s_innerPixelVolumeId
Definition
GeometryDefs.h:54
ActsTrk::detail::toString
std::string toString(const DetectorType type)
Definition
GeometryDefs.h:72
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::operator<<
std::ostream & operator<<(std::ostream &ostr, const DetectorType type)
Pipe the detector type to an outstream object.
Definition
GeometryDefs.h:100
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::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::Csc
@ Csc
Thin gap champers.
Definition
GeometryDefs.h:35
ActsTrk::DetectorType::Trt
@ Trt
Definition
GeometryDefs.h:29
ActsTrk::DetectorType::Mdt
@ Mdt
MuonSpectrometer.
Definition
GeometryDefs.h:32
ActsTrk::DetectorType::UnDefined
@ UnDefined
Small Thing Gap chambers (NSW).
Definition
GeometryDefs.h:38
ActsTrk::SystemEnvelope
SystemEnvelope
Define an enumeration to retrieve the envelope tracking volume from.
Definition
GeometryDefs.h:42
ActsTrk::SystemEnvelope::CaloExit
@ CaloExit
Definition
GeometryDefs.h:44
ActsTrk::SystemEnvelope::ITkExit
@ ITkExit
Definition
GeometryDefs.h:43
ActsTrk::SystemEnvelope::MsExit
@ MsExit
Definition
GeometryDefs.h:45
Hgtd
Definition
HgtdTimedClusteringTool.cxx:11
Pixel
Definition
PixelFEUtils.h:17
detail
Definition
extract_histogram_tag.cxx:14
type
Generated on
for ATLAS Offline Software by
1.17.0