4#ifndef MUONREADOUTGEOMETRYR4_MDTREADOUTELEMENT_H
5#define MUONREADOUTGEOMETRYR4_MDTREADOUTELEMENT_H
13# include "Acts/Utilities/BoundFactory.hpp"
63 #ifndef SIMULATIONBASE
204 #ifndef SIMULATIONBASE
241std::ostream&
operator<<(std::ostream& ostr,
const MdtReadoutElement::parameterBook& pars);
Eigen::Affine3d Transform3D
This is a "hash" representation of an Identifier.
Container classifier the MDT as-built parameters See parameter description in http://atlas-muon-align...
double thickness() const override final
Overload from the Acts::DetectorElement (2 * halfheight)
bool isBarrel() const
States whether the chamber is built into the barrel or not.
double moduleWidthL() const
Returns the length of the top edge of the chamber (top width)
Amg::Vector3D highVoltPos(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the global position of the High Voltage connectors.
Amg::Vector3D localTubePos(const IdentifierHash &hash) const
Returns the tube position in the chamber coordinate frame (Not applying the B-line corrections)
Amg::Transform3D toTubeFrame(const IdentifierHash &hash) const
Returns the transformation into the rest frame of the tube x-axis: Pointing towards the next layer y-...
double wireLength(const IdentifierHash &hash) const
static IdentifierHash measurementHash(unsigned int layerNumber, unsigned int tubeNumber)
Transform the layer and tube number to the measurementHash.
double activeTubeLength(const IdentifierHash &hash) const
double tubeLength(const IdentifierHash &hash) const
virtual ~MdtReadoutElement()
Amg::Vector3D bLineReferencePoint() const
Returns the fixed point of the B-line & as-bult defromation model expressed in the as-built frame.
bool m_isBarrel
Flag defining whether the chamber is barrel or not.
double tubeRadius() const
Adds the thickness of the tube wall onto the radius.
double distanceToReadout(const ActsTrk::GeometryContext &ctx, const Identifier &measId, const Amg::Vector3D &globPoint) const
Returns the distance along the wire from the readout card The distance is given as the delta z of the...
bool isValid(const IdentifierHash &measHash) const
const MdtReadoutElement * m_reOtherMl
Complementary readout element.
StatusCode initElement() override final
Element initialization.
Amg::Vector3D readOutPos(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the global position of the readout card.
const MdtIdHelper & m_idHelper
Detector identifier helper to quickly extract the ID fields.
const parameterBook & getParameters() const
static unsigned int layerNumber(const IdentifierHash &hash)
Transforms the identifier hash into a layer number ranging from (0-numLayers()-1)
double moduleHeight() const
Returns the height of the chamber (Distance bottom - topWidth)
Amg::Transform3D asBuiltRefFrame() const
Returns the transformation to go into the reference frame of the as-buit & b-line model starting from...
Amg::Vector3D globalTubePos(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the global position of the tube center.
MdtReadoutElement(defineArgs &&args)
unsigned int numTubesInLay() const
Returns the number of tubes per layer.
double innerTubeRadius() const
Returns the inner tube radius.
void setComplementaryReadoutEle(const MdtReadoutElement *other)
Set the link to the second readout element inside the muon station.
ActsTrk::DetectorType detectorType() const override final
Overload from the ActsTrk::IDetectorElement.
int m_stML
Identifier index of the multilayer (1-2)
double moduleThickness() const
Returns the thickness of the chamber.
double moduleWidthS() const
Returns the length of the bottom edge of the chamber (short width)
static unsigned int tubeNumber(const IdentifierHash &hash)
Transforms the idenfier hash into a tube number ranging from (0- numTubesInLay()-1)
double uncutTubeLength(const IdentifierHash &tubeHash) const
Returns the uncut tube length.
Amg::Transform3D fromIdealToDeformed(const IdentifierHash &tubeHash, const ActsTrk::DetectorAlignStore *store) const
Applies the B & as-built parameters.
Amg::Vector3D wireEndpointAsBuilt(const MdtAsBuiltPar &asBuilt, const IdentifierHash &tubeHash, const Amg::Vector3D &nominalEnd, const tubeSide_t side) const
Amg::Vector3D applyBlineCorrections(const BLinePar &bline, const Amg::Vector3D &localTubeEndPoint, const Amg::Vector3D &fixedPoint, const double thickness) const
Apply the B-line model correction to a tube endpoint.
IdentifierHash layerHash(const Identifier &measId) const override final
Transforms the Identifier into the layer hash.
const MdtReadoutElement * complementaryRE() const
Returns the pointer to the other readout element inside the muon station.
Amg::Transform3D toChamberLayer(const IdentifierHash &hash) const
Returns the transformation into the rest frame of the tube x-axis: Pointing towards the next layer y-...
MdtAsBuiltPar::tubeSide_t tubeSide_t
Moves the wire endpoints according to the as-built model.
parameterBook m_pars
defining parameter set
unsigned int multilayer() const
Returns the multi layer of the MdtReadoutElement.
Identifier measurementId(const IdentifierHash &measHash) const override final
Converts the measurement hash back to the full Identifier.
double tubePitch() const
Returns the pitch between 2 tubes in a layer.
unsigned int numLayers() const
Returns the number of tube layer.
Identifier identify() const override final
Return the athena identifier.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Returns the pointer to the muonIdHelperSvc.
MuonReadoutElement(const defineArgs &args)
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
std::ostream & operator<<(std::ostream &ostr, const Chamber::defineArgs &args)
Set of parameters to describe a MDT chamber.
double halfY
Length ~ number of tubes.
double radLengthX0
Radiadtion length.
double tubePitch
Distance between 2 tubes in the layer.
double endPlugLength
Depth of the endplug into the active tube volume.
double halfHeight
Height of the chamber ~ number of layers.
double shortHalfX
The chambers have either a rectangular or a trapezoidal shape to first approximation.
std::shared_ptr< Acts::SurfaceBoundFactory > boundFactory
Sets of surface bounds which is shared amongst all readout elements used to assign the same bound obj...
double readoutSide
Is the readout chip at positive or negative Z?
std::vector< MdtTubeLayerPtr > tubeLayers
Vector defining the position of all tubes in each tube layer.
double wireTension
Tension parameter Used in the SaggedLine surfaces.
double tubeWall
Thickness of the tube walls.
std::set< IdentifierHash > removedTubes
List of tube places without tubes.
double tubeInnerRad
Inner radius of the tubes.
Helper struct to ship the defining arguments of the detector element around.