ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::TRT_EndcapDescriptor Class Referencefinal

class TRT_EndcapDescriptor More...

#include <TRT_EndcapDescriptor.h>

Collaboration diagram for InDetDD::TRT_EndcapDescriptor:

Public Member Functions

 TRT_EndcapDescriptor ()
 Constructor.
 TRT_EndcapDescriptor (TRT_EndcapDescriptor &&right)=default
TRT_EndcapDescriptoroperator= (TRT_EndcapDescriptor &&right)=default
 ~TRT_EndcapDescriptor ()=default
 Destructor.
void setStrawTransformField (const GeoXF::Function *xf, size_t offsetInto)
 Sets the transform field for straws and offset.
unsigned int & nStraws ()
 The number of straws in a module:
const unsigned int & nStraws () const
double & strawPitch ()
 The straw pitch (angular!
const double & strawPitch () const
double & startPhi ()
 The starting phi (angular!
const double & startPhi () const
double & strawLength ()
const double & strawLength () const
double & innerRadius ()
 The inner radius:
const double & innerRadius () const
double innerTubeRadius () const
 Get inner tube radius of the straw.
const GeoXF::Function * getStrawTransform () const
 Get the tranformation field, which we do not own:
size_t getStrawTransformOffset () const
 Get the offset into the transformation field:
const Trk::SurfaceBoundsstrawBounds () const
 Get Bounds.

Private Member Functions

 TRT_EndcapDescriptor (const TRT_EndcapDescriptor &right)=delete
TRT_EndcapDescriptoroperator= (const TRT_EndcapDescriptor &right)=delete

Private Attributes

unsigned int m_nStraws
double m_strawPitch
double m_startPhi
double m_strawLength
double m_innerRadius
double m_innerTubeRadius
const GeoXF::Function * m_f
size_t m_o
CxxUtils::CachedUniquePtr< Trk::CylinderBoundsm_bounds

Detailed Description

class TRT_EndcapDescriptor

Helper class to access GeoModel infromation and calculation for straws. Objects of this class are owned by TRT_DetectorManager.

Definition at line 28 of file TRT_EndcapDescriptor.h.

Constructor & Destructor Documentation

◆ TRT_EndcapDescriptor() [1/3]

InDetDD::TRT_EndcapDescriptor::TRT_EndcapDescriptor ( )

Constructor.

Definition at line 15 of file TRT_EndcapDescriptor.cxx.

◆ TRT_EndcapDescriptor() [2/3]

InDetDD::TRT_EndcapDescriptor::TRT_EndcapDescriptor ( TRT_EndcapDescriptor && right)
default

◆ ~TRT_EndcapDescriptor()

InDetDD::TRT_EndcapDescriptor::~TRT_EndcapDescriptor ( )
default

Destructor.

◆ TRT_EndcapDescriptor() [3/3]

InDetDD::TRT_EndcapDescriptor::TRT_EndcapDescriptor ( const TRT_EndcapDescriptor & right)
privatedelete

Member Function Documentation

◆ getStrawTransform()

const GeoXF::Function * InDetDD::TRT_EndcapDescriptor::getStrawTransform ( ) const
inline

Get the tranformation field, which we do not own:

◆ getStrawTransformOffset()

size_t InDetDD::TRT_EndcapDescriptor::getStrawTransformOffset ( ) const
inline

Get the offset into the transformation field:

◆ innerRadius() [1/2]

double & InDetDD::TRT_EndcapDescriptor::innerRadius ( )

The inner radius:

Definition at line 49 of file TRT_EndcapDescriptor.cxx.

49 {
50 return m_innerRadius;
51}

◆ innerRadius() [2/2]

const double & InDetDD::TRT_EndcapDescriptor::innerRadius ( ) const
inline

◆ innerTubeRadius()

double InDetDD::TRT_EndcapDescriptor::innerTubeRadius ( ) const
inline

Get inner tube radius of the straw.

◆ nStraws() [1/2]

unsigned int & InDetDD::TRT_EndcapDescriptor::nStraws ( )

The number of straws in a module:

Definition at line 33 of file TRT_EndcapDescriptor.cxx.

33 {
34 return m_nStraws;
35}

◆ nStraws() [2/2]

const unsigned int & InDetDD::TRT_EndcapDescriptor::nStraws ( ) const
inline

◆ operator=() [1/2]

TRT_EndcapDescriptor & InDetDD::TRT_EndcapDescriptor::operator= ( const TRT_EndcapDescriptor & right)
privatedelete

◆ operator=() [2/2]

TRT_EndcapDescriptor & InDetDD::TRT_EndcapDescriptor::operator= ( TRT_EndcapDescriptor && right)
default

◆ setStrawTransformField()

void InDetDD::TRT_EndcapDescriptor::setStrawTransformField ( const GeoXF::Function * xf,
size_t offsetInto )

Sets the transform field for straws and offset.

We do not own the function:

Definition at line 28 of file TRT_EndcapDescriptor.cxx.

28 {
29 m_f=xf;
30 m_o=offsetInto;
31}

◆ startPhi() [1/2]

double & InDetDD::TRT_EndcapDescriptor::startPhi ( )

The starting phi (angular!

!)

Definition at line 41 of file TRT_EndcapDescriptor.cxx.

41 {
42 return m_startPhi;
43}

◆ startPhi() [2/2]

const double & InDetDD::TRT_EndcapDescriptor::startPhi ( ) const
inline

◆ strawBounds()

const Trk::SurfaceBounds & InDetDD::TRT_EndcapDescriptor::strawBounds ( ) const

Get Bounds.

Definition at line 54 of file TRT_EndcapDescriptor.cxx.

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}

◆ strawLength() [1/2]

double & InDetDD::TRT_EndcapDescriptor::strawLength ( )

Definition at line 45 of file TRT_EndcapDescriptor.cxx.

45 {
46 return m_strawLength;
47}

◆ strawLength() [2/2]

const double & InDetDD::TRT_EndcapDescriptor::strawLength ( ) const
inline

◆ strawPitch() [1/2]

double & InDetDD::TRT_EndcapDescriptor::strawPitch ( )

The straw pitch (angular!

!)

Definition at line 37 of file TRT_EndcapDescriptor.cxx.

37 {
38 return m_strawPitch;
39}

◆ strawPitch() [2/2]

const double & InDetDD::TRT_EndcapDescriptor::strawPitch ( ) const
inline

Member Data Documentation

◆ m_bounds

CxxUtils::CachedUniquePtr<Trk::CylinderBounds> InDetDD::TRT_EndcapDescriptor::m_bounds
private

Definition at line 110 of file TRT_EndcapDescriptor.h.

◆ m_f

const GeoXF::Function* InDetDD::TRT_EndcapDescriptor::m_f
private

Definition at line 104 of file TRT_EndcapDescriptor.h.

◆ m_innerRadius

double InDetDD::TRT_EndcapDescriptor::m_innerRadius
private

Definition at line 98 of file TRT_EndcapDescriptor.h.

◆ m_innerTubeRadius

double InDetDD::TRT_EndcapDescriptor::m_innerTubeRadius
private

Definition at line 101 of file TRT_EndcapDescriptor.h.

◆ m_nStraws

unsigned int InDetDD::TRT_EndcapDescriptor::m_nStraws
private

Definition at line 86 of file TRT_EndcapDescriptor.h.

◆ m_o

size_t InDetDD::TRT_EndcapDescriptor::m_o
private

Definition at line 107 of file TRT_EndcapDescriptor.h.

◆ m_startPhi

double InDetDD::TRT_EndcapDescriptor::m_startPhi
private

Definition at line 92 of file TRT_EndcapDescriptor.h.

◆ m_strawLength

double InDetDD::TRT_EndcapDescriptor::m_strawLength
private

Definition at line 95 of file TRT_EndcapDescriptor.h.

◆ m_strawPitch

double InDetDD::TRT_EndcapDescriptor::m_strawPitch
private

Definition at line 89 of file TRT_EndcapDescriptor.h.


The documentation for this class was generated from the following files: