ATLAS Offline Software
TRT_EndcapDescriptor.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
9 #include "CLHEP/Units/SystemOfUnits.h"
10 
11 namespace InDetDD {
12 
13 
14 
16  m_nStraws(0),
17  m_strawPitch(0),
18  m_startPhi(0),
19  m_strawLength(0),
20  m_innerRadius(0),
21  m_innerTubeRadius(2*CLHEP::mm), // FIXME: Hardwired for now!!
22  m_f(nullptr),
23  m_o(0),
24  m_bounds()
25 {
26 }
27 
28 void TRT_EndcapDescriptor::setStrawTransformField(const GeoXF::Function *xf, size_t offsetInto) {
29  m_f=xf;
30  m_o=offsetInto;
31 }
32 
34  return m_nStraws;
35 }
36 
38  return m_strawPitch;
39 }
40 
42  return m_startPhi;
43 }
44 
46  return m_strawLength;
47 }
48 
50  return m_innerRadius;
51 }
52 
53 const Trk::SurfaceBounds &
55 {
56  if (not m_bounds) m_bounds.set(std::make_unique<Trk::CylinderBounds>(m_innerTubeRadius, 0.5*m_strawLength));
57  return *m_bounds;
58 }
59 
60 }
InDetDD::TRT_EndcapDescriptor::m_startPhi
double m_startPhi
Definition: TRT_EndcapDescriptor.h:92
InDetDD::TRT_EndcapDescriptor::m_innerTubeRadius
double m_innerTubeRadius
Definition: TRT_EndcapDescriptor.h:101
InDetDD::TRT_EndcapDescriptor::innerRadius
double & innerRadius()
The inner radius:
Definition: TRT_EndcapDescriptor.cxx:49
Trk::SurfaceBounds
Definition: SurfaceBounds.h:47
InDetDD::TRT_EndcapDescriptor::strawBounds
const Trk::SurfaceBounds & strawBounds() const
Get Bounds.
Definition: TRT_EndcapDescriptor.cxx:54
InDetDD::TRT_EndcapDescriptor::nStraws
unsigned int & nStraws()
The number of straws in a module:
Definition: TRT_EndcapDescriptor.cxx:33
InDetDD::TRT_EndcapDescriptor::setStrawTransformField
void setStrawTransformField(const GeoXF::Function *xf, size_t offsetInto)
Sets the transform field for straws and offset.
Definition: TRT_EndcapDescriptor.cxx:28
InDetDD::TRT_EndcapDescriptor::m_strawPitch
double m_strawPitch
Definition: TRT_EndcapDescriptor.h:89
TRT_EndcapDescriptor.h
InDetDD::TRT_EndcapDescriptor::m_o
size_t m_o
Definition: TRT_EndcapDescriptor.h:107
CLHEP
STD'S.
Definition: IAtRndmGenSvc.h:19
InDetDD::TRT_EndcapDescriptor::m_f
const GeoXF::Function * m_f
Definition: TRT_EndcapDescriptor.h:104
InDetDD::TRT_EndcapDescriptor::m_nStraws
unsigned int m_nStraws
Definition: TRT_EndcapDescriptor.h:86
InDetDD::TRT_EndcapDescriptor::startPhi
double & startPhi()
The starting phi (angular!!)
Definition: TRT_EndcapDescriptor.cxx:41
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
CylinderBounds.h
InDetDD::TRT_EndcapDescriptor::strawPitch
double & strawPitch()
The straw pitch (angular!!)
Definition: TRT_EndcapDescriptor.cxx:37
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
InDetDD::TRT_EndcapDescriptor::strawLength
double & strawLength()
Definition: TRT_EndcapDescriptor.cxx:45
InDetDD::TRT_EndcapDescriptor::m_strawLength
double m_strawLength
Definition: TRT_EndcapDescriptor.h:95
InDetDD::TRT_EndcapDescriptor::m_innerRadius
double m_innerRadius
Definition: TRT_EndcapDescriptor.h:98
InDetDD::TRT_EndcapDescriptor::m_bounds
CxxUtils::CachedUniquePtr< Trk::CylinderBounds > m_bounds
Definition: TRT_EndcapDescriptor.h:110
InDetDD::TRT_EndcapDescriptor::TRT_EndcapDescriptor
TRT_EndcapDescriptor()
Constructor.
Definition: TRT_EndcapDescriptor.cxx:15