ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
InDetDD::TRT_BarrelDescriptor Class Referencefinal

#include <TRT_BarrelDescriptor.h>

Collaboration diagram for InDetDD::TRT_BarrelDescriptor:

Public Member Functions

 TRT_BarrelDescriptor ()
 Constructor: More...
 
 TRT_BarrelDescriptor (TRT_BarrelDescriptor &&right)=default
 
TRT_BarrelDescriptoroperator= (TRT_BarrelDescriptor &&right)=default
 
 ~TRT_BarrelDescriptor ()=default
 Destructor: More...
 
void addStraw (double xPos, double yPos)
 Add a new straw at position x, y: More...
 
void setStrawTransformField (const GeoXF::Function *xf, size_t offsetInto)
 Sets the transform field for straws and offset. More...
 
double & strawXPos (unsigned int i)
 Get X Position: More...
 
const double & strawXPos (unsigned int i) const
 
double & strawYPos (unsigned int i)
 Get Y Position: More...
 
const double & strawYPos (unsigned int i) const
 
unsigned int nStraws () const
 Get the number of straws: More...
 
const double & strawLength () const
 Get the length of the straws: More...
 
double & strawLength ()
 
void strawLength (double newLength)
 
double innerTubeRadius () const
 Get inner tube radius of the straw. More...
 
const double & strawZDead () const
 Dead part. More...
 
double & strawZDead ()
 
void strawZDead (double zDead)
 
const double & strawZPos () const
 Position of center of active region. More...
 
double & strawZPos ()
 
void strawZPos (double Pos)
 
const GeoXF::Function * getStrawTransform () const
 Get the tranformation field, which we do not own: Does not include the z shift which is different for pos and negative barrel: More...
 
size_t getStrawTransformOffset () const
 Get the offset into the transformation field: More...
 
const Trk::SurfaceBoundsstrawBounds () const
 Get Bounds. More...
 

Private Member Functions

 TRT_BarrelDescriptor (const TRT_BarrelDescriptor &right)=delete
 
TRT_BarrelDescriptoroperator= (const TRT_BarrelDescriptor &right)=delete
 

Private Attributes

std::vector< double > m_x
 
std::vector< double > m_y
 
double m_length
 
double m_zDead
 
double m_zPos
 
double m_innerTubeRadius
 
const GeoXF::Function * m_f
 
size_t m_o
 
CxxUtils::CachedUniquePtr< Trk::CylinderBoundsm_bounds
 

Detailed Description

Local Straw Positions (from the center of the module.)

The center of the module is defined like this:

                 .--------.                       
                / \      /                       
               /   \    /                         
              /  o  \  /                          
             /_______\/                                        

Objects of this class are owned by TRT_DetectorManager.

Definition at line 39 of file TRT_BarrelDescriptor.h.

Constructor & Destructor Documentation

◆ TRT_BarrelDescriptor() [1/3]

InDetDD::TRT_BarrelDescriptor::TRT_BarrelDescriptor ( )

Constructor:

Definition at line 13 of file TRT_BarrelDescriptor.cxx.

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 }

◆ TRT_BarrelDescriptor() [2/3]

InDetDD::TRT_BarrelDescriptor::TRT_BarrelDescriptor ( TRT_BarrelDescriptor &&  right)
default

◆ ~TRT_BarrelDescriptor()

InDetDD::TRT_BarrelDescriptor::~TRT_BarrelDescriptor ( )
default

Destructor:

◆ TRT_BarrelDescriptor() [3/3]

InDetDD::TRT_BarrelDescriptor::TRT_BarrelDescriptor ( const TRT_BarrelDescriptor right)
privatedelete

Member Function Documentation

◆ addStraw()

void InDetDD::TRT_BarrelDescriptor::addStraw ( double  xPos,
double  yPos 
)

Add a new straw at position x, y:

Definition at line 25 of file TRT_BarrelDescriptor.cxx.

25  {
26 
27  m_x.push_back(xPos);
28  m_y.push_back(yPos);
29 
30 }

◆ getStrawTransform()

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

Get the tranformation field, which we do not own: Does not include the z shift which is different for pos and negative barrel:

◆ getStrawTransformOffset()

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

Get the offset into the transformation field:

◆ innerTubeRadius()

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

Get inner tube radius of the straw.

◆ nStraws()

unsigned int InDetDD::TRT_BarrelDescriptor::nStraws ( ) const
inline

Get the number of straws:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setStrawTransformField()

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

Sets the transform field for straws and offset.

Ownership is not passed.

Definition at line 33 of file TRT_BarrelDescriptor.cxx.

33  {
34  m_f=xf;
35  m_o=offsetInto;
36 }

◆ strawBounds()

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

Get Bounds.

Definition at line 39 of file TRT_BarrelDescriptor.cxx.

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 }

◆ strawLength() [1/3]

double& InDetDD::TRT_BarrelDescriptor::strawLength ( )
inline

◆ strawLength() [2/3]

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

Get the length of the straws:

◆ strawLength() [3/3]

void InDetDD::TRT_BarrelDescriptor::strawLength ( double  newLength)
inline

◆ strawXPos() [1/2]

double& InDetDD::TRT_BarrelDescriptor::strawXPos ( unsigned int  i)
inline

Get X Position:

◆ strawXPos() [2/2]

const double& InDetDD::TRT_BarrelDescriptor::strawXPos ( unsigned int  i) const
inline

◆ strawYPos() [1/2]

double& InDetDD::TRT_BarrelDescriptor::strawYPos ( unsigned int  i)
inline

Get Y Position:

◆ strawYPos() [2/2]

const double& InDetDD::TRT_BarrelDescriptor::strawYPos ( unsigned int  i) const
inline

◆ strawZDead() [1/3]

double& InDetDD::TRT_BarrelDescriptor::strawZDead ( )
inline

◆ strawZDead() [2/3]

const double& InDetDD::TRT_BarrelDescriptor::strawZDead ( ) const
inline

Dead part.

◆ strawZDead() [3/3]

void InDetDD::TRT_BarrelDescriptor::strawZDead ( double  zDead)
inline

◆ strawZPos() [1/3]

double& InDetDD::TRT_BarrelDescriptor::strawZPos ( )
inline

◆ strawZPos() [2/3]

const double& InDetDD::TRT_BarrelDescriptor::strawZPos ( ) const
inline

Position of center of active region.

◆ strawZPos() [3/3]

void InDetDD::TRT_BarrelDescriptor::strawZPos ( double  Pos)
inline

Member Data Documentation

◆ m_bounds

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

Definition at line 112 of file TRT_BarrelDescriptor.h.

◆ m_f

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

Definition at line 109 of file TRT_BarrelDescriptor.h.

◆ m_innerTubeRadius

double InDetDD::TRT_BarrelDescriptor::m_innerTubeRadius
private

Definition at line 108 of file TRT_BarrelDescriptor.h.

◆ m_length

double InDetDD::TRT_BarrelDescriptor::m_length
private

Definition at line 105 of file TRT_BarrelDescriptor.h.

◆ m_o

size_t InDetDD::TRT_BarrelDescriptor::m_o
private

Definition at line 110 of file TRT_BarrelDescriptor.h.

◆ m_x

std::vector<double> InDetDD::TRT_BarrelDescriptor::m_x
private

Definition at line 103 of file TRT_BarrelDescriptor.h.

◆ m_y

std::vector<double> InDetDD::TRT_BarrelDescriptor::m_y
private

Definition at line 104 of file TRT_BarrelDescriptor.h.

◆ m_zDead

double InDetDD::TRT_BarrelDescriptor::m_zDead
private

Definition at line 106 of file TRT_BarrelDescriptor.h.

◆ m_zPos

double InDetDD::TRT_BarrelDescriptor::m_zPos
private

Definition at line 107 of file TRT_BarrelDescriptor.h.


The documentation for this class was generated from the following files:
InDetDD::TRT_BarrelDescriptor::m_zPos
double m_zPos
Definition: TRT_BarrelDescriptor.h:107
InDetDD::TRT_BarrelDescriptor::m_length
double m_length
Definition: TRT_BarrelDescriptor.h:105
InDetDD::TRT_BarrelDescriptor::m_zDead
double m_zDead
Definition: TRT_BarrelDescriptor.h:106
InDetDD::TRT_BarrelDescriptor::m_x
std::vector< double > m_x
Definition: TRT_BarrelDescriptor.h:103
InDetDD::TRT_BarrelDescriptor::m_bounds
CxxUtils::CachedUniquePtr< Trk::CylinderBounds > m_bounds
Definition: TRT_BarrelDescriptor.h:112
InDetDD::TRT_BarrelDescriptor::m_o
size_t m_o
Definition: TRT_BarrelDescriptor.h:110
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
InDetDD::TRT_BarrelDescriptor::m_y
std::vector< double > m_y
Definition: TRT_BarrelDescriptor.h:104
InDetDD::TRT_BarrelDescriptor::m_innerTubeRadius
double m_innerTubeRadius
Definition: TRT_BarrelDescriptor.h:108
InDetDD::TRT_BarrelDescriptor::m_f
const GeoXF::Function * m_f
Definition: TRT_BarrelDescriptor.h:109