ATLAS Offline Software
TRT_BarrelElement.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "InDetIdentifier/TRT_ID.h"
6 
7 namespace InDetDD {
8 
9 /** Type information */
10 inline TRT_BaseElement::Type
11 TRT_BarrelElement::type() const
12 {
13  return TRT_BaseElement::BARREL;
14 }
15 
16 inline const TRT_BarrelElement*
17 TRT_BarrelElement::nextInPhi() const
18 {
19  return m_nextInPhi;
20 }
21 
22 inline const TRT_BarrelElement*
23 TRT_BarrelElement::previousInPhi() const
24 {
25  return m_previousInPhi;
26 }
27 
28 inline const TRT_BarrelElement*
29 TRT_BarrelElement::nextInR() const
30 {
31  return m_nextInR;
32 }
33 
34 inline const TRT_BarrelElement*
35 TRT_BarrelElement::previousInR() const
36 {
37  return m_previousInR;
38 }
39 
40 inline const TRT_BarrelCode&
41 TRT_BarrelElement::getCode() const
42 {
43  return m_code;
44 }
45 
46 // Get X Position - should not be used anymore
47 inline double
48 TRT_BarrelElement::strawXPos(unsigned int straw) const
49 {
50  return strawCenter(straw).x();
51 }
52 
53 // Get Y Position - should not be used anymore
54 inline double
55 TRT_BarrelElement::strawYPos(unsigned int straw) const
56 {
57  return strawCenter(straw).y();
58 }
59 
60 // Get Z Position - should not be used anymore
61 inline double
62 TRT_BarrelElement::strawZPos(unsigned int straw) const
63 {
64  return strawCenter(straw).z();
65 }
66 
67 // Get the length of the straws:
68 inline const double&
69 TRT_BarrelElement::strawLength() const
70 {
71  return m_descriptor->strawLength();
72 }
73 }