ATLAS Offline Software
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
MdtChamber Struct Reference

Helper struct to represent a full Mdt chamber. More...

Collaboration diagram for MdtChamber:

Classes

struct  TubePositioning
 

Public Types

using chamberIdentifier = MdtCablingOffData
 Identifier of the mdt chamber. More...
 

Public Member Functions

 MdtChamber ()=default
 Default constructor. More...
 
bool operator< (const MdtChamber &other) const
 Sorting operator to insert the object into std::set. More...
 
const TubePositioninggetTube (unsigned int layer, unsigned int tube) const
 Returns the access to the full tube information Layer : (1 -nLayers), Tube : (1-nTubes) More...
 
void insertTube (TubePositioning &&newTube)
 

Public Attributes

chamberIdentifier id {}
 
std::string design {}
 
Amg::Transform3D geoModelTransform {Amg::Transform3D::Identity()}
 Transformation of the underlying GeoModel element. More...
 
Amg::Transform3D alignableTransform {Amg::Transform3D::Identity()}
 Transformation of the underlying Alignable node. More...
 
unsigned int numLayers {0}
 Number of tube layers. More...
 
unsigned int numTubes {0}
 Number of tubes. More...
 
double tubePitch {0.}
 Pitch between two tubes. More...
 
double tubeRadius {0.}
 Inner tube radius. More...
 
std::vector< TubePositioningtubeInfo {}
 

Detailed Description

Helper struct to represent a full Mdt chamber.

Definition at line 29 of file runMdtGeoComparison.cxx.

Member Typedef Documentation

◆ chamberIdentifier

Identifier of the mdt chamber.

Definition at line 34 of file runMdtGeoComparison.cxx.

Constructor & Destructor Documentation

◆ MdtChamber()

MdtChamber::MdtChamber ( )
default

Default constructor.

Member Function Documentation

◆ getTube()

const TubePositioning& MdtChamber::getTube ( unsigned int  layer,
unsigned int  tube 
) const
inline

Returns the access to the full tube information Layer : (1 -nLayers), Tube : (1-nTubes)

Definition at line 76 of file runMdtGeoComparison.cxx.

76  {
77  static const TubePositioning dummy{};
78  unsigned int idx = (layer -1)*numTubes + (tube -1);
79  return idx < tubeInfo.size() ? tubeInfo[idx] : dummy;
80  }

◆ insertTube()

void MdtChamber::insertTube ( TubePositioning &&  newTube)
inline

Definition at line 81 of file runMdtGeoComparison.cxx.

81  {
82  unsigned int idx = (newTube.layerNum - 1)*numTubes + (newTube.tubeNum -1);
83  if (tubeInfo.size() <= idx) tubeInfo.resize(idx+1);
84  tubeInfo[idx] = std::move(newTube);
85  }

◆ operator<()

bool MdtChamber::operator< ( const MdtChamber other) const
inline

Sorting operator to insert the object into std::set.

Definition at line 39 of file runMdtGeoComparison.cxx.

39  {
40  return id < other.id;
41  }

Member Data Documentation

◆ alignableTransform

Amg::Transform3D MdtChamber::alignableTransform {Amg::Transform3D::Identity()}

Transformation of the underlying Alignable node.

Definition at line 46 of file runMdtGeoComparison.cxx.

◆ design

std::string MdtChamber::design {}

Definition at line 36 of file runMdtGeoComparison.cxx.

◆ geoModelTransform

Amg::Transform3D MdtChamber::geoModelTransform {Amg::Transform3D::Identity()}

Transformation of the underlying GeoModel element.

Definition at line 44 of file runMdtGeoComparison.cxx.

◆ id

chamberIdentifier MdtChamber::id {}

Definition at line 35 of file runMdtGeoComparison.cxx.

◆ numLayers

unsigned int MdtChamber::numLayers {0}

Number of tube layers.

Definition at line 48 of file runMdtGeoComparison.cxx.

◆ numTubes

unsigned int MdtChamber::numTubes {0}

Number of tubes.

Definition at line 50 of file runMdtGeoComparison.cxx.

◆ tubeInfo

std::vector<TubePositioning> MdtChamber::tubeInfo {}

Definition at line 73 of file runMdtGeoComparison.cxx.

◆ tubePitch

double MdtChamber::tubePitch {0.}

Pitch between two tubes.

Definition at line 52 of file runMdtGeoComparison.cxx.

◆ tubeRadius

double MdtChamber::tubeRadius {0.}

Inner tube radius.

Definition at line 54 of file runMdtGeoComparison.cxx.


The documentation for this struct was generated from the following file:
MdtChamber::tubeInfo
std::vector< TubePositioning > tubeInfo
Definition: runMdtGeoComparison.cxx:73
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
python.xAODType.dummy
dummy
Definition: xAODType.py:4
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
MdtChamber::numTubes
unsigned int numTubes
Number of tubes.
Definition: runMdtGeoComparison.cxx:50
calibdata.tube
tube
Definition: calibdata.py:31