ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace InDetDD {
12
13
14
16 m_nStraws(0),
17 m_strawPitch(0),
18 m_startPhi(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
28void 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
40
42 return m_startPhi;
43}
44
48
52
53const 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}
const Trk::SurfaceBounds & strawBounds() const
Get Bounds.
double & strawPitch()
The straw pitch (angular!
void setStrawTransformField(const GeoXF::Function *xf, size_t offsetInto)
Sets the transform field for straws and offset.
double & startPhi()
The starting phi (angular!
CxxUtils::CachedUniquePtr< Trk::CylinderBounds > m_bounds
unsigned int & nStraws()
The number of straws in a module:
double & innerRadius()
The inner radius:
Abstract base class for surface bounds to be specified.
Message Stream Member.