4#ifndef MUONREADOUTGEOMETRYR4_MDTTUBELAYER_H
5#define MUONREADOUTGEOMETRYR4_MDTTUBELAYER_H
8#include <GeoModelKernel/GeoVPhysVol.h>
9#include <GeoModelKernel/GeoTransform.h>
10#include <GeoModelKernel/GeoVolumeCursor.h>
74 const GeoIntrusivePtr<const GeoTransform> toLayTrf,
77 unsigned int nTubes()
const;
95 GeoIntrusivePtr<const GeoTransform>
m_layTrf{
nullptr};
101 bool operator<(
const MdtTubeLayer::CutTubes&
a,
const unsigned int tube);
102 bool operator<(
const unsigned int tube,
const MdtTubeLayer::CutTubes&
a);
104 bool operator<(
const MdtTubeLayer::TubePositioner&
a,
const unsigned int tube);
105 bool operator<(
const unsigned int tube,
const MdtTubeLayer::TubePositioner&
a);
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the con...
Helper struct to retrieve the tube lengths and the tube centers directly from the GeoModel tree.
std::set< TubePositioner, std::less<> > TubePositionerSet
Amg::Vector3D m_tubePitch
MdtTubeLayer(const PVConstLink layer, const GeoIntrusivePtr< const GeoTransform > toLayTrf, const CutTubeSet &cutTubes)
Standard constructor of a MdtTube layer.
PVConstLink getTubeNode(unsigned int tube) const
returns the PVConst link to the n-th tube [0 - nTubes() -1]
const Amg::Transform3D & layerTransform() const
: Returns the transformation from the layer to the muon station
friend MdtTubeLayerSorter
std::set< CutTubes, std::less<> > CutTubeSet
unsigned int nTubes() const
Returns the number of tubes in the layer.
const Amg::Vector3D tubePosInLayer(const unsigned int tube) const
Returns the tube position within the given tube layer.
const Amg::Transform3D tubeTransform(const unsigned int tube) const
Returns the transformation of the tube to the muon station Index counting [0 - nTubes()-1].
TubePositionerSet m_tubePos
double tubeHalfLength(const unsigned int tube) const
Returns the half-length of the given tube.
double uncutHalfLength(const unsigned int tube) const
Returns the uncut-half length of the given tube.
GeoIntrusivePtr< const GeoTransform > m_layTrf
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
bool operator<(const MdtTubeLayer::CutTubes &a, const unsigned int tube)
GeoModel::TransientConstSharedPtr< MdtTubeLayer > MdtTubeLayerPtr
std::set< MdtTubeLayerPtr, MdtTubeLayerSorter > MdtTubeLayerSet
Helper struct to sort equivalent MdtTubeLayers into a std::set.
bool operator()(const MdtTubeLayer &a, const MdtTubeLayer &b) const
Constructor taking the GeoModel parent node of the tube nodes.
unsigned int firstTube
First tube of the cut.
double unCutHalfLength
Tube length before cut.
unsigned int lastTube
Last tube of the cut.
bool operator<(const CutTubes &other) const
ordering operator for set look up
Helper struct to avoid browsing with the serial transformer.
unsigned int firstTube
First tube of the positioning.
bool operator<(const TubePositioner &other) const
ordering operator for set look up
unsigned int lastTube
Last tube of the positioning.
Amg::Vector3D firstTubePos
Transform to reach the first tube.
PVConstLink tubeVol
Underlying physical volume of the tube.