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 28 of file runMdtGeoComparison.cxx.

Member Typedef Documentation

◆ chamberIdentifier

Identifier of the mdt chamber.

Definition at line 33 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 75 of file runMdtGeoComparison.cxx.

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

◆ insertTube()

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

Definition at line 80 of file runMdtGeoComparison.cxx.

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

◆ operator<()

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

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

Definition at line 38 of file runMdtGeoComparison.cxx.

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

Member Data Documentation

◆ alignableTransform

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

Transformation of the underlying Alignable node.

Definition at line 45 of file runMdtGeoComparison.cxx.

◆ design

std::string MdtChamber::design {}

Definition at line 35 of file runMdtGeoComparison.cxx.

◆ geoModelTransform

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

Transformation of the underlying GeoModel element.

Definition at line 43 of file runMdtGeoComparison.cxx.

◆ id

chamberIdentifier MdtChamber::id {}

Definition at line 34 of file runMdtGeoComparison.cxx.

◆ numLayers

unsigned int MdtChamber::numLayers {0}

Number of tube layers.

Definition at line 47 of file runMdtGeoComparison.cxx.

◆ numTubes

unsigned int MdtChamber::numTubes {0}

Number of tubes.

Definition at line 49 of file runMdtGeoComparison.cxx.

◆ tubeInfo

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

Definition at line 72 of file runMdtGeoComparison.cxx.

◆ tubePitch

double MdtChamber::tubePitch {0.}

Pitch between two tubes.

Definition at line 51 of file runMdtGeoComparison.cxx.

◆ tubeRadius

double MdtChamber::tubeRadius {0.}

Inner tube radius.

Definition at line 53 of file runMdtGeoComparison.cxx.


The documentation for this struct was generated from the following file:
MdtChamber::tubeInfo
std::vector< TubePositioning > tubeInfo
Definition: runMdtGeoComparison.cxx:72
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:49
calibdata.tube
tube
Definition: calibdata.py:31