ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_BaseElement.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5namespace InDetDD {
6
7// Get the number of straws:
8inline unsigned int
9TRT_BaseElement::nStraws() const
10{
11 return m_nstraws;
12}
13
14inline const GeoTrf::Transform3D&
15TRT_BaseElement::defTransform() const
16{
17 return getMaterialGeom()->getDefAbsoluteTransform();
18}
19
20inline const Trk::Surface&
21TRT_BaseElement::surface() const
22{
23 return elementSurface();
24}
25
26inline const Trk::SurfaceBounds&
27TRT_BaseElement::bounds() const
28{
29 if (!m_surfaceCache.isValid()) {
30 createSurfaceCache();
31 }
32 return *(m_surfaceCache.ptr()->bounds());
33}
34
35inline const Amg::Transform3D&
36TRT_BaseElement::transform() const
37{
38 if (!m_surfaceCache.isValid()) {
39 createSurfaceCache();
40 }
41 return m_surfaceCache.ptr()->transform();
42}
43
44inline const Amg::Vector3D&
45TRT_BaseElement::center() const
46{
47 if (!m_surfaceCache.isValid()) {
48 createSurfaceCache();
49 }
50 return m_surfaceCache.ptr()->center();
51}
52
53inline const Amg::Vector3D&
54TRT_BaseElement::normal() const
55{
56 if (!m_surfaceCache.isValid()) {
57 createSurfaceCache();
58 }
59 return m_surfaceCache.ptr()->normal();
60}
61
62inline Trk::DetectorElemType
63TRT_BaseElement::detectorType() const
64{
65 return Trk::DetectorElemType::TRT;
66}
67
68inline Identifier
69TRT_BaseElement::identify() const
70{
71 return m_id;
72}
73
74inline IdentifierHash
75TRT_BaseElement::identifyHash() const
76{
77 return m_idHash;
78}
79
80inline const TRT_Conditions*
81TRT_BaseElement::conditions() const
82{
83 return m_conditions;
84}
85
86}