Helper struct to retrieve the tube lengths and the tube centers directly from the GeoModel tree.
More...
#include <MdtTubeLayer.h>
Helper struct to retrieve the tube lengths and the tube centers directly from the GeoModel tree.
Definition at line 28 of file MdtTubeLayer.h.
◆ CutTubeSet
◆ TubePositionerSet
◆ MdtTubeLayer()
Standard constructor of a MdtTube layer.
Taking a GeoVPhysVol which is usually shared across multiple layers & chambers
- Parameters
-
layer | GeoVPhysVol representing this layer |
toLayTrf | Transformation to reach the layer |
cutTubes | List of tubes that are cut |
Definition at line 47 of file MdtTubeLayer.cxx.
55 unsigned int firstTube{0};
56 bool firstTubeSet{
false};
57 for (
const GeoChildNodeWithTrf& child :
children) {
58 TubePositioner positioner{};
59 positioner.firstTube = firstTube;
60 positioner.lastTube = firstTube + child.nCopies -1;
61 positioner.firstTubePos = child.transform.translation();
62 positioner.tubeVol = child.volume;
63 if (!firstTubeSet && child.nCopies>1) {
67 firstTube = positioner.lastTube + 1;
◆ getTubeNode()
PVConstLink MuonGMR4::MdtTubeLayer::getTubeNode |
( |
unsigned int |
tube | ) |
const |
returns the PVConst link to the n-th tube [0 - nTubes() -1]
Definition at line 74 of file MdtTubeLayer.cxx.
75 TubePositionerSet::const_iterator tube_itr =
m_tubePos.find(
tube);
78 <<
tube<<
" is requested. Please check.");
80 return tube_itr->tubeVol;
◆ layerTransform()
: Returns the transformation from the layer to the muon station
Definition at line 71 of file MdtTubeLayer.cxx.
◆ nTubes()
unsigned int MuonGMR4::MdtTubeLayer::nTubes |
( |
| ) |
const |
◆ tubeHalfLength()
double MuonGMR4::MdtTubeLayer::tubeHalfLength |
( |
const unsigned int |
tube | ) |
const |
Returns the half-length of the given tube.
Definition at line 97 of file MdtTubeLayer.cxx.
98 TubePositionerSet::const_iterator tube_itr =
m_tubePos.find(
tube);
101 <<
tube<<
" is requested. Please check.");
103 const GeoShape* shape = tube_itr->tubeVol->getLogVol()->getShape();
104 const GeoTube* tubeShape =
static_cast<const GeoTube*
>(shape);
105 return tubeShape->getZHalfLength();
◆ tubePosInLayer()
Returns the tube position within the given tube layer.
Definition at line 91 of file MdtTubeLayer.cxx.
◆ tubeTransform()
Returns the transformation of the tube to the muon station Index counting [0 - nTubes()-1].
Definition at line 82 of file MdtTubeLayer.cxx.
83 TubePositionerSet::const_iterator tube_itr =
m_tubePos.find(
tube);
86 <<
tube<<
" is requested. Please check.");
◆ uncutHalfLength()
double MuonGMR4::MdtTubeLayer::uncutHalfLength |
( |
const unsigned int |
tube | ) |
const |
Returns the uncut-half length of the given tube.
Definition at line 107 of file MdtTubeLayer.cxx.
110 return itr->unCutHalfLength;
◆ m_cutTubes
◆ m_layerNode
PVConstLink MuonGMR4::MdtTubeLayer::m_layerNode {nullptr} |
|
private |
◆ m_layTrf
GeoIntrusivePtr<const GeoTransform> MuonGMR4::MdtTubeLayer::m_layTrf {nullptr} |
|
private |
◆ m_tubePitch
Amg::Vector3D MuonGMR4::MdtTubeLayer::m_tubePitch {Amg::Vector3D::Zero()} |
|
private |
◆ m_tubePos
◆ MdtTubeLayerSorter
friend MuonGMR4::MdtTubeLayer::MdtTubeLayerSorter |
The documentation for this class was generated from the following files: