ATLAS Offline Software
Loading...
Searching...
No Matches
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
7namespace InDetDD {
8
9/** Type information */
10inline TRT_BaseElement::Type
11TRT_BarrelElement::type() const
12{
13 return TRT_BaseElement::BARREL;
14}
15
16inline const TRT_BarrelElement*
17TRT_BarrelElement::nextInPhi() const
18{
19 return m_nextInPhi;
20}
21
22inline const TRT_BarrelElement*
23TRT_BarrelElement::previousInPhi() const
24{
25 return m_previousInPhi;
26}
27
28inline const TRT_BarrelElement*
29TRT_BarrelElement::nextInR() const
30{
31 return m_nextInR;
32}
33
34inline const TRT_BarrelElement*
35TRT_BarrelElement::previousInR() const
36{
37 return m_previousInR;
38}
39
40inline const TRT_BarrelCode&
41TRT_BarrelElement::getCode() const
42{
43 return m_code;
44}
45
46// Get X Position - should not be used anymore
47inline double
48TRT_BarrelElement::strawXPos(unsigned int straw) const
49{
50 return strawCenter(straw).x();
51}
52
53// Get Y Position - should not be used anymore
54inline double
55TRT_BarrelElement::strawYPos(unsigned int straw) const
56{
57 return strawCenter(straw).y();
58}
59
60// Get Z Position - should not be used anymore
61inline double
62TRT_BarrelElement::strawZPos(unsigned int straw) const
63{
64 return strawCenter(straw).z();
65}
66
67// Get the length of the straws:
68inline const double&
69TRT_BarrelElement::strawLength() const
70{
71 return m_descriptor->strawLength();
72}
73}