ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_BarrelDescriptor.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
14 : m_length(0),
15 m_zDead(0),
16 m_zPos(0),
17 m_innerTubeRadius(2*CLHEP::mm), // FIXME: Hardwired for now!!
18 m_f(nullptr),
19 m_o(0),
20 m_bounds()
21{
22}
23
24
25void TRT_BarrelDescriptor::addStraw(double xPos, double yPos) {
26
27 m_x.push_back(xPos);
28 m_y.push_back(yPos);
29
30}
31
32
33void TRT_BarrelDescriptor::setStrawTransformField(const GeoXF::Function *xf, size_t offsetInto) {
34 m_f=xf;
35 m_o=offsetInto;
36}
37
38const Trk::SurfaceBounds &
40{
41 if (not m_bounds) m_bounds.set(std::make_unique<Trk::CylinderBounds>(m_innerTubeRadius, 0.5*m_length));
42 return *m_bounds;
43}
44
45
46}
void setStrawTransformField(const GeoXF::Function *xf, size_t offsetInto)
Sets the transform field for straws and offset.
void addStraw(double xPos, double yPos)
Add a new straw at position x, y:
CxxUtils::CachedUniquePtr< Trk::CylinderBounds > m_bounds
const Trk::SurfaceBounds & strawBounds() const
Get Bounds.
Abstract base class for surface bounds to be specified.
Message Stream Member.