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