ATLAS Offline Software
Loading...
Searching...
No Matches
MuonGMR4::MdtReadoutElement Class Reference

#include <MdtReadoutElement.h>

Inheritance diagram for MuonGMR4::MdtReadoutElement:
Collaboration diagram for MuonGMR4::MdtReadoutElement:

Classes

struct  defineArgs
struct  parameterBook
 Set of parameters to describe a MDT chamber. More...

Public Member Functions

 MdtReadoutElement (defineArgs &&args)
virtual ~MdtReadoutElement ()
const parameterBookgetParameters () const
ActsTrk::DetectorType detectorType () const override final
 Overload from the ActsTrk::IDetectorElement.
double thickness () const override final
 Overload from the Acts::DetectorElement (2 * halfheight)
StatusCode initElement () override final
 Element initialization.
unsigned int multilayer () const
 Returns the multi layer of the MdtReadoutElement.
unsigned int numLayers () const
 Returns the number of tube layer.
unsigned int numTubesInLay () const
 Returns the number of tubes per layer.
IdentifierHash measurementHash (const Identifier &measId) const override final
 Constructs the identifier hash from the full measurement Identifier.
IdentifierHash layerHash (const Identifier &measId) const override final
 Transforms the Identifier into the layer hash.
Identifier measurementId (const IdentifierHash &measHash) const override final
 Converts the measurement hash back to the full Identifier.
bool isValid (const IdentifierHash &measHash) const
bool isBarrel () const
 States whether the chamber is built into the barrel or not.
double tubePitch () const
 Returns the pitch between 2 tubes in a layer.
double innerTubeRadius () const
 Returns the inner tube radius.
double tubeRadius () const
 Adds the thickness of the tube wall onto the radius.
double moduleWidthS () const
 Returns the length of the bottom edge of the chamber (short width)
double moduleWidthL () const
 Returns the length of the top edge of the chamber (top width)
double moduleHeight () const
 Returns the height of the chamber (Distance bottom - topWidth)
double moduleThickness () const
 Returns the thickness of the chamber.
Amg::Vector3D globalTubePos (const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
 Returns the global position of the tube center.
Amg::Vector3D globalTubePos (const ActsTrk::GeometryContext &ctx, const IdentifierHash &hash) const
Amg::Vector3D readOutPos (const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
 Returns the global position of the readout card.
Amg::Vector3D readOutPos (const ActsTrk::GeometryContext &ctx, const IdentifierHash &measId) const
Amg::Vector3D highVoltPos (const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
 Returns the global position of the High Voltage connectors.
Amg::Vector3D highVoltPos (const ActsTrk::GeometryContext &ctx, const IdentifierHash &measId) const
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 readout card in the local tube frame.
double distanceToReadout (const ActsTrk::GeometryContext &ctx, const IdentifierHash &measHash, const Amg::Vector3D &globPoint) const
double distanceToReadout (const IdentifierHash &measHash, const Amg::Vector3D &localPoint) const
 Returns the distance to the readout assuming that the parsed point is expressed in the local coordinate system of the tube.
double activeTubeLength (const IdentifierHash &hash) const
double tubeLength (const IdentifierHash &hash) const
double wireLength (const IdentifierHash &hash) const
double uncutTubeLength (const IdentifierHash &tubeHash) const
 Returns the uncut tube length.
void setComplementaryReadoutEle (const MdtReadoutElement *other)
 Set the link to the second readout element inside the muon station.
Amg::Vector3D bLineReferencePoint () const
 Returns the fixed point of the B-line & as-bult defromation model expressed in the as-built frame.
Amg::Vector3D localTubePos (const IdentifierHash &hash) const
 Returns the tube position in the chamber coordinate frame (Not applying the B-line corrections)
Amg::Transform3D asBuiltRefFrame () const
 Returns the transformation to go into the reference frame of the as-buit & b-line model starting from the readout element frame.
const MdtReadoutElementcomplementaryRE () const
 Returns the pointer to the other readout element inside the muon station.
const GeoAlignableTransform * alignableTransform () const
 Returnsthe alignable transform of the readout element.
Identifier identify () const override final
 Return the athena identifier.
IdentifierHash identHash () const
 Returns the Identifier has of the Element that is Identical to the detElHash from the id_helper class.
int stationName () const
 Returns the stationName (BIS, BOS, etc) encoded into the integer.
int stationEta () const
 Returns the stationEta (positive A site, negative O site)
int stationPhi () const
 Returns the stationPhi (1-8) -> sector (2*phi - (isSmall))
Muon::MuonStationIndex::ChIndex chamberIndex () const
 Returns the chamber index of the Identifier (MMS & STS) have the same chamber Index (EIS)
const std::string & chamberDesign () const
 The chamber design refers to the construction parameters of a readout element.
const Muon::IMuonIdHelperSvcidHelperSvc () const
 Returns the pointer to the muonIdHelperSvc.
Amg::Vector3D center (const ActsTrk::GeometryContext &ctx) const
 Returns the detector center (Which is the same as the detector center of the first measurement layer)
Amg::Vector3D center (const ActsTrk::GeometryContext &ctx, const Identifier &id) const
 Returns the center of a given detector layer using the complete Identifier of the measurement.
Amg::Vector3D center (const ActsTrk::GeometryContext &ctx, const IdentifierHash &hash) const
 Returns the center of a given detector layer using the Identifier hash of the measurement.
Amg::Transform3D globalToLocalTrans (const ActsTrk::GeometryContext &ctx) const
 Transformations to translate between local <-> global coordinates.
Amg::Transform3D globalToLocalTrans (const ActsTrk::GeometryContext &ctx, const Identifier &id) const
 Returns the global to local transformation into the rest frame of a given measurement layer.
Amg::Transform3D globalToLocalTrans (const ActsTrk::GeometryContext &ctx, const IdentifierHash &hash) const
 Returns the global to local transformation into the rest frame of a given measurement layer.
const Amg::Transform3DlocalToGlobalTrans (const ActsTrk::GeometryContext &ctx) const
 Returns the local to global transformation into the ATLAS coordinate system.
const Amg::Transform3DlocalToGlobalTrans (const ActsTrk::GeometryContext &ctx, const Identifier &id) const
const Amg::Transform3DlocalToGlobalTrans (const ActsTrk::GeometryContext &ctx, const IdentifierHash &id) const
const Amg::Transform3Dtransform (const Acts::GeometryContext &gctx) const override final
 Returns the transformation to the origin of the chamber coordinate system.
const Acts::Surface & surface () const override final
 Returns the surface associated to the readout element plane.
Acts::Surface & surface () override final
const Acts::Surface & surface (const IdentifierHash &hash) const
 Returns the sufrface associated to a wire / measurement plane in the detector.
Acts::Surface & surface (const IdentifierHash &hash)
std::shared_ptr< Acts::Surface > surfacePtr (const IdentifierHash &hash) const
 Returns the pointer associated to a certain wire / plane.
void setChamberLink (const Chamber *chamber)
 Sets the link to the enclosing chamber.
void setSectorLink (const SpectrometerSector *envelope)
 Set the link to the enclosing sector envelope.
const SpectrometerSectormsSector () const
 Returns the pointer to the envelope volume enclosing all chambers in the sector.
const Chamberchamber () const
 Returns the pointer to the chamber enclosing this readout element.
std::vector< std::shared_ptr< Acts::Surface > > getSurfaces () const
 Returns all surfaces that are associated with the active readout planes.
void releaseUnAlignedTrfs () const
 Releases all cached transforms that are not connected with alignment.
unsigned int storeAlignedTransforms (const ActsTrk::DetectorAlignStore &store) const override final
 Caches the aligned transformation in the provided store. Returns the number of cached elements.
bool msgLvl (const MSG::Level lvl) const
 Test the output level.
MsgStream & msg () const
 The standard message stream.
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream.
void setLevel (MSG::Level lvl)
 Change the current logging level.

Static Public Member Functions

static unsigned int tubeNumber (const IdentifierHash &hash)
 Transforms the idenfier hash into a tube number ranging from (0- numTubesInLay()-1)
static unsigned int layerNumber (const IdentifierHash &hash)
 Transforms the identifier hash into a layer number ranging from (0-numLayers()-1)
static IdentifierHash measurementHash (unsigned int layerNumber, unsigned int tubeNumber)
 Transform the layer and tube number to the measurementHash.
static IdentifierHash layerHash (const IdentifierHash &measHash)

Protected Member Functions

const Amg::Transform3DtoStation (const ActsTrk::DetectorAlignStore *alignStore) const
 Returns the local -> global transformation to go from the volume center origin.
template<class MuonDetImpl>
StatusCode insertTransform (const IdentifierHash &hash)
 Inserts a transfomration for caching.
StatusCode createGeoTransform ()
StatusCode strawSurfaceFactory (const IdentifierHash &hash, std::shared_ptr< const Acts::LineBounds > lBounds)
StatusCode planeSurfaceFactory (const IdentifierHash &hash, std::shared_ptr< const Acts::PlanarBounds > pBounds)

Static Protected Member Functions

static IdentifierHash geoTransformHash ()
 Returns the hash that is associated with the surface cache holding the transformation that is placing the ReadoutElement inside the ATLAS coordinate system.

Private Types

using tubeSide_t = MdtAsBuiltPar::tubeSide_t
 Moves the wire endpoints according to the as-built model.
using TransformCacheMap = std::unordered_map<IdentifierHash, std::unique_ptr<ActsTrk::TransformCache>>
 Cache all local to global transformations.

Private Member Functions

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-axis: Pointing parallel to the wire layer z-axis: Pointing along the wire.
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-axis: Pointing parallel to the wire layer z-axis: Pointing along the wire.
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.
void initMessaging () const
 Initialize our message level and MessageSvc.

Private Attributes

parameterBook m_pars {}
 defining parameter set
const MdtIdHelperm_idHelper {idHelperSvc()->mdtIdHelper()}
 Detector identifier helper to quickly extract the ID fields.
int m_stML {m_idHelper.multilayer(identify())}
 Identifier index of the multilayer (1-2)
bool m_isBarrel {m_idHelper.isBarrel(identify())}
 Flag defining whether the chamber is barrel or not.
const MdtReadoutElementm_reOtherMl {this}
 Complementary readout element.
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", "MuonReadoutElement"}
const defineArgs m_args {}
IdentifierHash m_detElHash {}
 Cache of the detector element hash.
Muon::MuonStationIndex::ChIndex m_chIdx {Muon::MuonStationIndex::ChIndex::ChUnknown}
 Cache the chamber index of the Identifier.
int m_stName {-1}
 Cache the station name of the identifier.
int m_stEta {-1}
 Cache the station eta of the identifier.
int m_stPhi {-1}
 Cache the station phi of the identifier.
TransformCacheMap m_localToGlobalCaches
ActsTrk::SurfaceCacheSet m_surfaces
 Cache of all associated surfaces.
const SpectrometerSectorm_msSectorLink {}
 Pointer to the associated MS-sector & MuonChamber.
const Chamberm_chambLink {nullptr}
std::string m_nm
 Message source name.
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels)
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer.
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level.
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging)

Detailed Description

Member Typedef Documentation

◆ TransformCacheMap

using MuonGMR4::MuonReadoutElement::TransformCacheMap = std::unordered_map<IdentifierHash, std::unique_ptr<ActsTrk::TransformCache>>
privateinherited

Cache all local to global transformations.

Definition at line 210 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

◆ tubeSide_t

Moves the wire endpoints according to the as-built model.

Parameters
asBuiltAs-built model parameters
tubeHashMeasurement hash of the considered tube
nominalEndTube end of a nominally uncut tube
sideDoes the end represent positive or negative z

Definition at line 211 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h.

Constructor & Destructor Documentation

◆ MdtReadoutElement()

MuonGMR4::MdtReadoutElement::MdtReadoutElement ( defineArgs && args)

◆ ~MdtReadoutElement()

MuonGMR4::MdtReadoutElement::~MdtReadoutElement ( )
virtualdefault

Member Function Documentation

◆ activeTubeLength()

double MuonGMR4::MdtReadoutElement::activeTubeLength ( const IdentifierHash & hash) const

Definition at line 173 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

173 {
174 const unsigned int layer = layerNumber(hash);
175 const unsigned int tube = tubeNumber(hash);
176 const MdtTubeLayer& zeroT{*m_pars.tubeLayers[layer]};
177 return 2. * zeroT.tubeHalfLength(tube);
178}
static unsigned int layerNumber(const IdentifierHash &hash)
Transforms the identifier hash into a layer number ranging from (0-numLayers()-1)
static unsigned int tubeNumber(const IdentifierHash &hash)
Transforms the idenfier hash into a tube number ranging from (0- numTubesInLay()-1)
@ layer
Definition HitInfo.h:79

◆ alignableTransform()

const GeoAlignableTransform * MuonGMR4::MuonReadoutElement::alignableTransform ( ) const
inherited

Returnsthe alignable transform of the readout element.

◆ applyBlineCorrections()

Amg::Vector3D MuonGMR4::MdtReadoutElement::applyBlineCorrections ( const BLinePar & bline,
const Amg::Vector3D & localTubeEndPoint,
const Amg::Vector3D & fixedPoint,
const double thickness ) const
private

Apply the B-line model correction to a tube endpoint.

Parameters
blineSet of b-line parameters
localTubeEndPointEndpoint of the tube to correct
fixedPointPoint in the chamber that's invariant in the b-line model
thicknessThickness of the two multilayers

Definition at line 320 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

323 {
324
325 using Parameter = BLinePar::Parameter;
326 Amg::Vector3D deformedPos{localTubeEndPoint};
327 // MDT deformations like tube bow: bz,bp,bn bend the tube while the wire endpoints are not affected
328 // => the wire keeps it's nominal straight line trajectory but it is not concentric to the tube
329 // ==> in this function bz, bp and bn are ignored or set to 0
330 // MDT deformations that extend/contract the wire longitudinally (while keeping it straight):
331 // delta_s from eg and tr are irrelevant for the tube geometry
332 // and for the wire trajectory => set to 0 here
333 // (should be applied as a correction to the
334 // tube lenght => tube surface bounds
335 // =++>>>> effect in tracking just through the gravitational sagging TOTALLY NEGLIGIBLE=> ignore)
336 // pg is irrelevant for tracking purposes and (at least for the endcaps) is applies to the internal bars only, not to the tubes !!!
337 // =++>>>> IGNORE IT
338 // ep,en: bend the tube by moving (differently) the endplugs ===> the wire straight trajectory is moved w.r.t. the nominal one
339 // in addition the tubes keep their nominal position at the center => the wire is not concentric to
340 // the tube delta_s from ep,en must also be considered for the implementation of the realistic tube
341 // trajectory induced by ep,en
342 // tw,sp,sn,pg (for deltaT and deltaZ) are geometrical effects, that impact on tracking and keep the wire straight.
343 const double chamberHeight = std::max(moduleHeight(), m_reOtherMl->moduleHeight());
344
345
346 // NOTE s0,z0,t0 are the coord. in the amdb frame of this point: the origin of the frame can be different than the fixed point for
347 // deformations s0mdt,z0mdt,t0mdt
348 // (always equal to the point at lowest t,z and s=0 of the MDT stack)
349 ATH_MSG_VERBOSE( "** In "<<__func__<<" - moduleWidthS " << moduleWidthS()<<", moduleWidthL: "
350 <<moduleWidthL() <<", height: "<<chamberHeight<<", thickness: " <<chamberThickness << "." );
351 ATH_MSG_VERBOSE( "** In "<<__func__<<" - going to correct for B-line the position of Point at " << Amg::toString(localTubeEndPoint));
352
353 double s0mdt = localTubeEndPoint.x(); // always I think !
354 if (std::abs(fixedPoint.x()) > 0.01) {
355 s0mdt = localTubeEndPoint.x() - fixedPoint.x();
356 }
357 double z0mdt = localTubeEndPoint.y();
358 // unless in the D section of this station there's a dy diff. from 0 for the innermost MDT multilayer (sometimes
359 // in the barrel)
360 // unless in the D section of this station there's a dz diff. from 0 for the innermost MDT multilayer (often in barrel)
361 if (std::abs(fixedPoint.y()) > 0.01) {
362 z0mdt = localTubeEndPoint.y() - fixedPoint.y();
363 }
364 double t0mdt = localTubeEndPoint.z();
365 if (std::abs(fixedPoint.z()) > 0.01) {
366 t0mdt = localTubeEndPoint.z() - fixedPoint.z();
367 }
368 if (z0mdt < 0 || t0mdt < 0) {
369 ATH_MSG_WARNING(""<<__func__<<": correcting the local position of a point outside the mdt station (2 multilayers) volume -- RE "
370 << idHelperSvc()->toStringDetEl(identify()) << " local point: szt=" <<Amg::toString(localTubeEndPoint)
371 << " fixedPoint " <<Amg::toString(fixedPoint)<<", z0mdt: "<<z0mdt<<", t0mdt"<<t0mdt);
372 }
373 ATH_MSG_VERBOSE( "** In "<<__func__<<" - correct for offset of B-line fixed point " << s0mdt << " " << z0mdt << " " << t0mdt);
374
375 constexpr double amdbMargin = 1.*Gaudi::Units::cm;
376 const double width_actual = moduleWidthS() - amdbMargin + (moduleWidthL() - moduleWidthS()) * (z0mdt / chamberHeight);
377 const double s_rel = s0mdt / (width_actual / 2.);
378 const double z_rel = (z0mdt - chamberHeight / 2.) / (chamberHeight / 2.);
379 const double t_rel = (t0mdt - chamberThickness / 2.) / (chamberThickness / 2.);
380
381 ATH_MSG_VERBOSE( "** In "<<__func__<<" - width_actual: "<<width_actual<<", s_rel: "<<s_rel<<", z_rel: "<<z_rel
382 <<", t_rel:" << t_rel );
383 double ds{0.},dz{0.},dt{0.};
384
385 // sp, sn - cross plate sag out of plane
386 if ( bline.getParameter(Parameter::sp) || bline.getParameter(Parameter::sn)) {
387 double ztmp = z_rel * z_rel - 1;
388 dt += 0.5 * (bline.getParameter(Parameter::sp) + bline.getParameter(Parameter::sn)) * ztmp
389 + 0.5 * (bline.getParameter(Parameter::sp) - bline.getParameter(Parameter::sn)) * ztmp * s_rel;
390 }
391
392 // tw - twist
393 if (bline.getParameter(Parameter::tw)) {
394 dt -= bline.getParameter(Parameter::tw) * s_rel * z_rel;
395 dz += bline.getParameter(Parameter::tw) * s_rel * t_rel * chamberThickness / chamberHeight;
396 ATH_MSG_VERBOSE( "** In "<<__func__<<": tw=" << bline.getParameter(Parameter::tw) << " dt: "<<dt<<", dz: "<< dz );
397 }
398
399 constexpr double expansionScale = BLinePar::expansionScale;
400 // eg - global expansion
401 if (bline.getParameter(Parameter::eg)) {
402 double egppm = bline.getParameter(Parameter::eg) * expansionScale;
403 ds += 0.;
404 dz += z0mdt * egppm;
405 dt += t0mdt * egppm;
406 }
407
408 // ep, en - local expansion
409 //
410 // Imporant note: the chamber height and length, as they denoted in Christoph's talk,
411 // correspond to thickness and height parameters of this function;
412 //
413
414 if (bline.getParameter(Parameter::ep) || bline.getParameter(Parameter::en)) {
415 const double ep = bline.getParameter(Parameter::ep) * expansionScale;
416 const double en = bline.getParameter(Parameter::en) * expansionScale;
417 const double phi = 0.5 * (ep + en) * s_rel * s_rel + 0.5 * (ep - en) * s_rel;
418 const double localDt = phi * (t0mdt - chamberThickness / 2.);
419 const double localDz = phi * (z0mdt - chamberHeight / 2.);
420 dt += localDt;
421 dz += localDz;
422 }
423
424 ATH_MSG_VERBOSE( "posOnDefChamStraighWire: ds="<<ds<<",z="<<dz<<",t="<<dt);
425 deformedPos[0] = localTubeEndPoint[0] + ds;
426 deformedPos[1] = localTubeEndPoint[1] + dz;
427 deformedPos[2] = localTubeEndPoint[2] + dt;
428 return deformedPos;
429}
Scalar phi() const
phi method
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
float getParameter(const Parameter p) const
Returns a given parameter.
Definition BLinePar.h:40
static constexpr double expansionScale
Definition BLinePar.h:35
double moduleWidthL() const
Returns the length of the top edge of the chamber (top width)
double moduleHeight() const
Returns the height of the chamber (Distance bottom - topWidth)
double moduleWidthS() const
Returns the length of the bottom edge of the chamber (short width)
Identifier identify() const override final
Return the athena identifier.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Returns the pointer to the muonIdHelperSvc.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, 3, 1 > Vector3D

◆ asBuiltRefFrame()

Amg::Transform3D MuonGMR4::MdtReadoutElement::asBuiltRefFrame ( ) const

Returns the transformation to go into the reference frame of the as-buit & b-line model starting from the readout element frame.

Definition at line 219 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

219 {
220 return alignableTransform()->getDefTransform().inverse()*
221 getMaterialGeom()->getParent()->getX() *
222 getMaterialGeom()->getX();
223}
const GeoAlignableTransform * alignableTransform() const
Returnsthe alignable transform of the readout element.

◆ bLineReferencePoint()

Amg::Vector3D MuonGMR4::MdtReadoutElement::bLineReferencePoint ( ) const

Returns the fixed point of the B-line & as-bult defromation model expressed in the as-built frame.

Definition at line 233 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

233 {
234 /* The fix point is the point that's closest to the interaction point.
235 / Recall that the readout element origin is expressed in the geometric centre &
236 the x-axis points upwards. The point is then transformed into the Muon station frame */
237 const MdtReadoutElement* refEle{multilayer() == 1 ? this : m_reOtherMl};
238 return refEle->asBuiltRefFrame()*(-0.5*( refEle->moduleThickness() *Amg::Vector3D::UnitX() +
239 (stationEta() >0 || !isBarrel() ? 1. : -1.)*refEle->moduleHeight() * Amg::Vector3D::UnitZ()));
240}
bool isBarrel() const
States whether the chamber is built into the barrel or not.
unsigned int multilayer() const
Returns the multi layer of the MdtReadoutElement.
int stationEta() const
Returns the stationEta (positive A site, negative O site)

◆ center() [1/3]

Amg::Vector3D MuonGMR4::MuonReadoutElement::center ( const ActsTrk::GeometryContext & ctx) const
inherited

Returns the detector center (Which is the same as the detector center of the first measurement layer)

◆ center() [2/3]

Amg::Vector3D MuonGMR4::MuonReadoutElement::center ( const ActsTrk::GeometryContext & ctx,
const Identifier & id ) const
inherited

Returns the center of a given detector layer using the complete Identifier of the measurement.

◆ center() [3/3]

Amg::Vector3D MuonGMR4::MuonReadoutElement::center ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & hash ) const
inherited

Returns the center of a given detector layer using the Identifier hash of the measurement.

◆ chamber()

const Chamber * MuonGMR4::MuonReadoutElement::chamber ( ) const
inherited

Returns the pointer to the chamber enclosing this readout element.

◆ chamberDesign()

const std::string & MuonGMR4::MuonReadoutElement::chamberDesign ( ) const
inherited

The chamber design refers to the construction parameters of a readout element.

Used for the retrieval of the chamber parameters E.g. the chambers BOL1A8 & BOL2A8 are identical in terms of number of tubes, dimensions etc.

◆ chamberIndex()

Muon::MuonStationIndex::ChIndex MuonGMR4::MuonReadoutElement::chamberIndex ( ) const
inherited

Returns the chamber index of the Identifier (MMS & STS) have the same chamber Index (EIS)

◆ complementaryRE()

const MdtReadoutElement * MuonGMR4::MdtReadoutElement::complementaryRE ( ) const

Returns the pointer to the other readout element inside the muon station.

◆ createGeoTransform()

StatusCode MuonGMR4::MuonReadoutElement::createGeoTransform ( )
protectedinherited

Check that the alignable node has been assigned

Definition at line 36 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

36 {
38 if(!alignableTransform()) {
39 ATH_MSG_FATAL("The readout element "<<idHelperSvc()->toStringDetEl(identify())<<" has no assigned alignable node");
40 return StatusCode::FAILURE;
41 }
43}
#define ATH_MSG_FATAL(x)
StatusCode insertTransform(const IdentifierHash &hash)
Inserts a transfomration for caching.
static IdentifierHash geoTransformHash()
Returns the hash that is associated with the surface cache holding the transformation that is placing...

◆ detectorType()

ActsTrk::DetectorType MuonGMR4::MdtReadoutElement::detectorType ( ) const
inlinefinaloverridevirtual

◆ distanceToReadout() [1/3]

double MuonGMR4::MdtReadoutElement::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 readout card in the local tube frame.

◆ distanceToReadout() [2/3]

double MuonGMR4::MdtReadoutElement::distanceToReadout ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & measHash,
const Amg::Vector3D & globPoint ) const

Definition at line 191 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

193 {
194 return distanceToReadout(measHash, globalToLocalTrans(ctx, measHash) * globPoint);
195
196}
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...
Amg::Transform3D globalToLocalTrans(const ActsTrk::GeometryContext &ctx) const
Transformations to translate between local <-> global coordinates.

◆ distanceToReadout() [3/3]

double MuonGMR4::MdtReadoutElement::distanceToReadout ( const IdentifierHash & measHash,
const Amg::Vector3D & localPoint ) const

Returns the distance to the readout assuming that the parsed point is expressed in the local coordinate system of the tube.

I.e. the wire points along the z-axis

Parameters
measHashIdentifierHash of the tube
localPointExternal local point inside the tube (No check is made whether that's the case).

The position of the readout chip is at the negative tube side

Definition at line 197 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

198 {
200 const unsigned int layer = layerNumber(measHash);
201 const unsigned int tube = tubeNumber(measHash);
202 const MdtTubeLayer& zeroT{*m_pars.tubeLayers[layer]};
203 const double readOutPos = m_pars.readoutSide * zeroT.tubeHalfLength(tube);
204 return std::abs(readOutPos - localPoint.z());
205}
Amg::Vector3D readOutPos(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the global position of the readout card.

◆ fromIdealToDeformed()

Amg::Transform3D MuonGMR4::MdtReadoutElement::fromIdealToDeformed ( const IdentifierHash & tubeHash,
const ActsTrk::DetectorAlignStore * store ) const
private

Applies the B & as-built parameters.

No deformation parameters were parsed at all

No deformation parameters were stored for this particular readout element

Relative sign to calculate the thickness. If multilayer == 1, we want the lower point and the upper point otherwise.

Move the tube into the center

Apply as-built correction

Switch tube ends back to MGM coordinates

Definition at line 440 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

441 {
442#ifdef SIMULATIONBASE
443 ATH_MSG_VERBOSE("No deformed transformation available "<<idHelperSvc()->toString(measurementId(tubeHash))
444 <<"store address to make the compiler happy: "<<store);
445 return Amg::Transform3D::Identity();
446#else
448 if (!store || !store->internalAlignment) {
449 ATH_MSG_VERBOSE("No deformed transformation available "<<idHelperSvc()->toString(measurementId(tubeHash)));
450 return Amg::Transform3D::Identity();
451 }
452 using ChamberDistortions = MdtAlignmentStore::chamberDistortions;
453
455 const ChamberDistortions distortPars = static_cast<const MdtAlignmentStore&>(*store->internalAlignment).getDistortion(identify());
456 if (!distortPars) {
457 ATH_MSG_VERBOSE("No set of deformation parameters is in the DB for "<<idHelperSvc()->toString(measurementId(tubeHash)));
458 return Amg::Transform3D::Identity();
459 }
460
461 const Amg::Vector3D fixedPoint{bLineReferencePoint()};
462
463
464 const double height = std::max(moduleHeight(), m_reOtherMl->moduleHeight()) -
465 (tubePitch() - 2. * tubeRadius());
466
467 const Amg::Transform3D toAMDB{asBuiltRefFrame()};
470 const double relSign = (multilayer() == 1 ? -1. : 1.);
471
472 const double modHalfThick{0.5*relSign*moduleThickness()},
473 modHalTHickO{-0.5*relSign*m_reOtherMl->moduleThickness()};
474
475 const double thickness = relSign*( (toAMDB* (modHalfThick*Amg::Vector3D::UnitX())) -
476 (m_reOtherMl->asBuiltRefFrame()*(modHalTHickO* Amg::Vector3D::UnitX()))).z();
477
478
479 Amg::Vector3D idealTube = localTubePos(tubeHash);
481 idealTube[Amg::y] = 0.;
482
483 Amg::Vector3D positiveEnd = toAMDB * (idealTube + 0.5 * uncutTubeLength(tubeHash) * Amg::Vector3D::UnitY());
484 Amg::Vector3D negativeEnd = toAMDB * (idealTube - 0.5 * uncutTubeLength(tubeHash) * Amg::Vector3D::UnitY());
486 if (distortPars.asBuilt) {
487 positiveEnd = wireEndpointAsBuilt(*distortPars.asBuilt, tubeHash, positiveEnd, tubeSide_t::POS);
488 negativeEnd = wireEndpointAsBuilt(*distortPars.asBuilt, tubeHash, negativeEnd, tubeSide_t::NEG);
489 }
490 Amg::Vector3D positiveEndBline{positiveEnd};
491 Amg::Vector3D negativeEndBline{negativeEnd};
492 if (distortPars.bLine) {
493 positiveEndBline = applyBlineCorrections(*distortPars.bLine, positiveEndBline, fixedPoint, thickness);
494 negativeEndBline = applyBlineCorrections(*distortPars.bLine, negativeEndBline, fixedPoint, thickness);
495 }
496
497 ATH_MSG_VERBOSE("Calculate the deformation parameters of "<<idHelperSvc()->toString(measurementId(tubeHash))
498 <<", ideal tube "<<Amg::toString(idealTube)
499 <<", fixed point "<<Amg::toString(fixedPoint)
500 <<"/ "<<Amg::toString(alignableTransform()->getDefTransform() * fixedPoint)
501 <<", thickness: "<<thickness<<", height: "<<height);
502
503 const Amg::Transform3D fromAMDB{toAMDB.inverse()};
505 positiveEnd = fromAMDB * positiveEnd;
506 negativeEnd = fromAMDB * negativeEnd;
507 positiveEndBline = fromAMDB * positiveEndBline;
508 negativeEndBline = fromAMDB * negativeEndBline;
509
510 // Calculate deformation. Make sure that the wire length stays the same.
511 // Code in positionOnDeformedChamber does not provide this by default.
512 // Break transformation into translation of the wire center and the rotation of the wire
513 // Move to the coordinate system originated at the wire center, then rotate the wire, then
514 // move wire center to the new position
515 const Amg::Transform3D to_center{Amg::getTranslate3D(-idealTube)};
516 const Amg::Transform3D from_center{Amg::getTranslate3D( 0.5 * (positiveEndBline + negativeEndBline))};
517 const Amg::Vector3D old_direction = (positiveEnd - negativeEnd).unit();
518 const Amg::Vector3D new_direction = (positiveEndBline - negativeEndBline).unit();
519 const Amg::Vector3D rotation_vector = old_direction.cross(new_direction);
520
521 Amg::Transform3D deformedTransform{Amg::Transform3D::Identity()};
522 if (rotation_vector.mag() > 10. * std::numeric_limits<double>::epsilon()) {
523 const Amg::AngleAxis3D wire_rotation(std::asin(rotation_vector.mag()), rotation_vector.unit());
524 deformedTransform = from_center * wire_rotation * to_center;
525 } else {
526 deformedTransform = from_center * to_center;
527 }
528 ATH_MSG_VERBOSE("To center "<<GeoTrf::toString(to_center)<<" from: "<<GeoTrf::toString(from_center)<<
529 " -- direction: "<<GeoTrf::toString(old_direction)<<" vs. "<<GeoTrf::toString(new_direction)
530 <<" --> rot: "<<GeoTrf::toString(rotation_vector)<<" ==> "<<GeoTrf::toString(deformedTransform,true));
531 return deformedTransform;
532#endif
533}
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
double thickness() const override final
Overload from the Acts::DetectorElement (2 * halfheight)
Amg::Vector3D localTubePos(const IdentifierHash &hash) const
Returns the tube position in the chamber coordinate frame (Not applying the B-line corrections)
Amg::Vector3D bLineReferencePoint() const
Returns the fixed point of the B-line & as-bult defromation model expressed in the as-built frame.
double tubeRadius() const
Adds the thickness of the tube wall onto the radius.
Amg::Transform3D asBuiltRefFrame() const
Returns the transformation to go into the reference frame of the as-buit & b-line model starting from...
double moduleThickness() const
Returns the thickness of the chamber.
double uncutTubeLength(const IdentifierHash &tubeHash) const
Returns the uncut tube length.
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.
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.
Amg::Transform3D getTranslate3D(const double X, const double Y, const double Z)
: Returns a shift transformation along an arbitrary axis
Eigen::AngleAxisd AngleAxis3D
Eigen::Affine3d Transform3D
std::string toString(const MuonGMR4::MuonReadoutElement *re)
TestStore store
Definition TestStore.cxx:23

◆ geoTransformHash()

IdentifierHash MuonGMR4::MuonReadoutElement::geoTransformHash ( )
staticprotectedinherited

Returns the hash that is associated with the surface cache holding the transformation that is placing the ReadoutElement inside the ATLAS coordinate system.

Definition at line 44 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

44 {
45 static const IdentifierHash hash{static_cast<unsigned>(~0)-1};
46 return hash;
47}

◆ getParameters()

const MdtReadoutElement::parameterBook & MuonGMR4::MdtReadoutElement::getParameters ( ) const

◆ getSurfaces()

std::vector< std::shared_ptr< Acts::Surface > > MuonGMR4::MuonReadoutElement::getSurfaces ( ) const
inherited

Returns all surfaces that are associated with the active readout planes.

Definition at line 153 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

153 {
154 std::vector<std::shared_ptr<Acts::Surface>> surfaces{};
155 surfaces.reserve(m_surfaces.size());
156 for (const std::unique_ptr<SurfaceCache>& cache : m_surfaces) {
157 if (cache->hash() != geoTransformHash()) {
158 surfaces.push_back(cache->getSurface());
159 ATH_MSG_VERBOSE("Add surface "<<idHelperSvc()->toString(cache->identify())
160 <<std::endl<<(surfaces.back()->bounds()));
161 }
162 }
163 return surfaces;
164}

◆ globalToLocalTrans() [1/3]

Amg::Transform3D MuonGMR4::MuonReadoutElement::globalToLocalTrans ( const ActsTrk::GeometryContext & ctx) const
inherited

Transformations to translate between local <-> global coordinates.

They follow the common ATLAS conventations that the origin is located in the center of the detector layer x-axis: Points towards the sky y-axis: Points towards the edges of ATLAS z-axis: Points along the beamline The transformations always include the corrections from the A-Lines of the alignment system Returns the global to local transformation into the rest frame of the detector (Coincides with the first measurement layer)

Definition at line 78 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

78 {
80}

◆ globalToLocalTrans() [2/3]

Amg::Transform3D MuonGMR4::MuonReadoutElement::globalToLocalTrans ( const ActsTrk::GeometryContext & ctx,
const Identifier & id ) const
inherited

Returns the global to local transformation into the rest frame of a given measurement layer.

◆ globalToLocalTrans() [3/3]

Amg::Transform3D MuonGMR4::MuonReadoutElement::globalToLocalTrans ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & hash ) const
inherited

Returns the global to local transformation into the rest frame of a given measurement layer.

◆ globalTubePos() [1/2]

Amg::Vector3D MuonGMR4::MdtReadoutElement::globalTubePos ( const ActsTrk::GeometryContext & ctx,
const Identifier & measId ) const

Returns the global position of the tube center.

◆ globalTubePos() [2/2]

Amg::Vector3D MuonGMR4::MdtReadoutElement::globalTubePos ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & hash ) const

Definition at line 144 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

145 {
146 return localToGlobalTrans(ctx, hash).translation();
147}
const Amg::Transform3D & localToGlobalTrans(const ActsTrk::GeometryContext &ctx) const
Returns the local to global transformation into the ATLAS coordinate system.

◆ highVoltPos() [1/2]

Amg::Vector3D MuonGMR4::MdtReadoutElement::highVoltPos ( const ActsTrk::GeometryContext & ctx,
const Identifier & measId ) const

Returns the global position of the High Voltage connectors.

◆ highVoltPos() [2/2]

Amg::Vector3D MuonGMR4::MdtReadoutElement::highVoltPos ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & measId ) const

Definition at line 157 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

158 {
159 return localToGlobalTrans(ctx, hash) *
160 (-0.5*activeTubeLength(hash) * m_pars.readoutSide * Amg::Vector3D::UnitZ());
161}

◆ identHash()

IdentifierHash MuonGMR4::MuonReadoutElement::identHash ( ) const
inherited

Returns the Identifier has of the Element that is Identical to the detElHash from the id_helper class.

◆ identify()

Identifier MuonGMR4::MuonReadoutElement::identify ( ) const
finaloverridevirtualinherited

Return the athena identifier.

The Identifier is identical with the first measurment channel in readout element (E.g. Strip 1 in Layer 1 in the NSW)

Implements ActsTrk::IDetectorElementBase.

◆ idHelperSvc()

const Muon::IMuonIdHelperSvc * MuonGMR4::MuonReadoutElement::idHelperSvc ( ) const
inherited

Returns the pointer to the muonIdHelperSvc.

◆ initElement()

StatusCode MuonGMR4::MdtReadoutElement::initElement ( )
finaloverridevirtual

Element initialization.

First check whether we're having tubes

Create bounds that are representing the surface planes of each tube layer & the readout element itself

Coordinate system of the trapezoid is in the center while the tubes are defined w.r.t. to the chamber edge. Move first tube into the proper position

Cache the transformations to the chamber layers

Cache the transformations to the tube layers

Ensure that all linear transformations are rotations

Ensure that all tubes have the same pitch

Implements MuonGMR4::MuonReadoutElement.

Definition at line 51 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

51 {
54 if (!numLayers() || !numTubesInLay()) {
55 ATH_MSG_FATAL("The readout element "<< idHelperSvc()->toStringDetEl(identify())<<" has no tubes. Please check "<<std::endl<<m_pars);
56 return StatusCode::FAILURE;
57 }
58 if (m_pars.tubePitch<=tubeRadius()) {
59 ATH_MSG_FATAL("The tubes of "<<idHelperSvc()->toStringDetEl(identify())<<" will fall together on a single point. Please check "<<std::endl<<m_pars);
60 return StatusCode::FAILURE;
61 }
62#ifndef SIMULATIONBASE
64 ATH_CHECK(planeSurfaceFactory(geoTransformHash(), m_pars.boundFactory->makeBounds<Acts::TrapezoidBounds>(m_pars.shortHalfX,
65 m_pars.longHalfX,
66 m_pars.halfY)));
67#endif
70
71 std::optional<Amg::Vector3D> prevLayPos{std::nullopt};
72
73 for (unsigned int lay =1 ; lay <= numLayers() ; ++lay) {
75 const IdentifierHash layHash = measurementHash(lay,0);
77#ifdef SIMULATIONBASE_REMOVEPLANESURFACE
78 ATH_CHECK(planeSurfaceFactory(layHash, m_pars.boundFactory->makeBounds<Acts::TrapezoidBounds>(m_pars.shortHalfX,
79 m_pars.longHalfX,
80 m_pars.halfY)));
81#endif
83 std::optional<Amg::Vector3D> prevTubePos{std::nullopt};
84 MdtTubeLayer& layer = *m_pars.tubeLayers[lay-1];
85
86 for (unsigned int tube = 1; tube <= numTubesInLay(); ++ tube) {
87 const IdentifierHash idHash = measurementHash(lay,tube);
88 if (m_pars.removedTubes.count(idHash)) {
89 prevTubePos = std::nullopt;
90 continue;
91 }
93#ifndef SIMULATIONBASE
94 ATH_CHECK(strawSurfaceFactory(idHash, m_pars.boundFactory->
95 makeBounds<Acts::LineBounds>(tubeRadius(),
96 0.5*tubeLength(idHash))));
97#endif
99 GeoTrf::Transform3D tubeFrame = layer.tubeTransform(tubeNumber(idHash));
100 const AmgSymMatrix(3) tubeRot = tubeFrame.linear();
101 if (std::abs(tubeRot.determinant()- 1.) > std::numeric_limits<float>::epsilon()){
102 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" Transformation matrix is not a pure rotation for "<<
103 idHelperSvc()->toStringDetEl(identify())<<" in layer: "<<lay<<", tube: "<<tube
104 <<Amg::toString(tubeFrame));
105 return StatusCode::FAILURE;
106 }
108 const Amg::Vector3D tubePos = tubeFrame.translation();
109
110 constexpr double pitchTolerance = 20. * Gaudi::Units::micrometer;
111 if (prevTubePos) {
112 const double dR = std::abs((tubePos - (*prevTubePos)).z());
113 if (std::abs(dR - tubePitch()) > pitchTolerance) {
114 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" Detected irregular tube in "<<
115 idHelperSvc()->toStringDetEl(identify())<<" in layer: "<<lay<<", tube: "<<tube
116 <<". Expected tube pitch: "<<tubePitch()<<" measured tube pitch: "
117 <<dR<<" tube position: "<<Amg::toString(tubePos,2)
118 <<" previous: "<<Amg::toString((*prevTubePos), 2));
119 return StatusCode::FAILURE;
120 }
121 }
122 if (prevLayPos && tube == 1) {
123 const double dR = (tubePos - (*prevLayPos)).mag();
124 if (std::abs(dR - tubePitch()) > pitchTolerance) {
125 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" Detected irregular layer pitch in "<<
126 idHelperSvc()->toStringDetEl(identify())<<" for layer "<<lay
127 <<". Expected tube pitch: "<<tubePitch()<<" measured tube pitch: "
128 <<dR<<" tube position: "<<Amg::toString(tubePos,2)
129 <<" previous:"<<Amg::toString((*prevLayPos), 2));
130 }
131 }
132 if (tube == 1) {
133 prevLayPos = std::make_optional<Amg::Vector3D>(tubePos);
134 }
135 prevTubePos = std::make_optional<Amg::Vector3D>(tubePos);
136 }
137 }
138#ifndef SIMULATIONBASE
139 m_pars.boundFactory.reset();
140#endif
141 return StatusCode::SUCCESS;
142}
Scalar mag() const
mag method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define AmgSymMatrix(dim)
if(febId1==febId2)
double tubeLength
#define z
static IdentifierHash measurementHash(unsigned int layerNumber, unsigned int tubeNumber)
Transform the layer and tube number to the measurementHash.
unsigned int numTubesInLay() const
Returns the number of tubes per layer.
unsigned int numLayers() const
Returns the number of tube layer.
StatusCode strawSurfaceFactory(const IdentifierHash &hash, std::shared_ptr< const Acts::LineBounds > lBounds)
StatusCode planeSurfaceFactory(const IdentifierHash &hash, std::shared_ptr< const Acts::PlanarBounds > pBounds)

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40{
42 // If user did not set an explicit level, set a default
43 if (m_lvl == MSG::NIL) {
44 m_lvl = m_imsg ?
45 static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
46 MSG::INFO;
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)

◆ innerTubeRadius()

double MuonGMR4::MdtReadoutElement::innerTubeRadius ( ) const

Returns the inner tube radius.

◆ insertTransform()

template<class MuonDetImpl>
StatusCode MuonGMR4::MuonReadoutElement::insertTransform ( const IdentifierHash & hash)
protectedinherited

Inserts a transfomration for caching.

◆ isBarrel()

bool MuonGMR4::MdtReadoutElement::isBarrel ( ) const

States whether the chamber is built into the barrel or not.

◆ isValid()

bool MuonGMR4::MdtReadoutElement::isValid ( const IdentifierHash & measHash) const

◆ layerHash() [1/2]

IdentifierHash MuonGMR4::MdtReadoutElement::layerHash ( const Identifier & measId) const
finaloverridevirtual

Transforms the Identifier into the layer hash.

Implements MuonGMR4::MuonReadoutElement.

◆ layerHash() [2/2]

IdentifierHash MuonGMR4::MdtReadoutElement::layerHash ( const IdentifierHash & measHash)
static

◆ layerNumber()

unsigned int MuonGMR4::MdtReadoutElement::layerNumber ( const IdentifierHash & hash)
static

Transforms the identifier hash into a layer number ranging from (0-numLayers()-1)

◆ localToGlobalTrans() [1/3]

const Amg::Transform3D & MuonGMR4::MuonReadoutElement::localToGlobalTrans ( const ActsTrk::GeometryContext & ctx) const
inherited

Returns the local to global transformation into the ATLAS coordinate system.

Definition at line 81 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

81 {
83}

◆ localToGlobalTrans() [2/3]

const Amg::Transform3D & MuonGMR4::MuonReadoutElement::localToGlobalTrans ( const ActsTrk::GeometryContext & ctx,
const Identifier & id ) const
inherited

◆ localToGlobalTrans() [3/3]

const Amg::Transform3D & MuonGMR4::MuonReadoutElement::localToGlobalTrans ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & id ) const
inherited

Definition at line 50 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

51 {
52 TransformCacheMap::const_iterator cache = m_localToGlobalCaches.find(hash);
53 if (cache != m_localToGlobalCaches.end()) return cache->second->getTransform(ctx.getStore(detectorType()).get());
54 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<"() -- "
55 <<idHelperSvc()->toStringDetEl(identify())<<" hash: "<<hash<<" is unknown.");
56 return dummyTrans;
57}
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.)
virtual DetectorType detectorType() const =0
Returns the detector element type.
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130

◆ localTubePos()

Amg::Vector3D MuonGMR4::MdtReadoutElement::localTubePos ( const IdentifierHash & hash) const

Returns the tube position in the chamber coordinate frame (Not applying the B-line corrections)

Definition at line 149 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

149 {
150 return toTubeFrame(hash).translation();
151}
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-...

◆ measurementHash() [1/2]

IdentifierHash MuonGMR4::MdtReadoutElement::measurementHash ( const Identifier & measId) const
finaloverridevirtual

Constructs the identifier hash from the full measurement Identifier.

The hash is always defined w.r.t the specific detector element and used to access the information in memory quickly

Implements MuonGMR4::MuonReadoutElement.

◆ measurementHash() [2/2]

IdentifierHash MuonGMR4::MdtReadoutElement::measurementHash ( unsigned int layerNumber,
unsigned int tubeNumber )
static

Transform the layer and tube number to the measurementHash.

◆ measurementId()

Identifier MuonGMR4::MdtReadoutElement::measurementId ( const IdentifierHash & measHash) const
finaloverridevirtual

Converts the measurement hash back to the full Identifier.

Implements MuonGMR4::MuonReadoutElement.

Definition at line 46 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

46 {
47 return m_idHelper.channelID(identify(), multilayer(),
48 layerNumber(measHash) + 1,
49 tubeNumber(measHash) + 1);
50}
const MdtIdHelper & m_idHelper
Detector identifier helper to quickly extract the ID fields.

◆ moduleHeight()

double MuonGMR4::MdtReadoutElement::moduleHeight ( ) const

Returns the height of the chamber (Distance bottom - topWidth)

◆ moduleThickness()

double MuonGMR4::MdtReadoutElement::moduleThickness ( ) const

Returns the thickness of the chamber.

◆ moduleWidthL()

double MuonGMR4::MdtReadoutElement::moduleWidthL ( ) const

Returns the length of the top edge of the chamber (top width)

◆ moduleWidthS()

double MuonGMR4::MdtReadoutElement::moduleWidthS ( ) const

Returns the length of the bottom edge of the chamber (short width)

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 163 of file AthMessaging.h.

164{
165 MsgStream* ms = m_msg_tls.get();
166 if (!ms) {
167 if (!m_initialized.test_and_set()) initMessaging();
168 ms = new MsgStream(m_imsg,m_nm);
169 m_msg_tls.reset( ms );
170 }
171
172 ms->setLevel (m_lvl);
173 return *ms;
174}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 178 of file AthMessaging.h.

179{ return msg() << lvl; }
MsgStream & msg() const
The standard message stream.

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152{
153 if (m_lvl <= lvl) {
154 msg() << lvl;
155 return true;
156 } else {
157 return false;
158 }
159}

◆ msSector()

const SpectrometerSector * MuonGMR4::MuonReadoutElement::msSector ( ) const
inherited

Returns the pointer to the envelope volume enclosing all chambers in the sector.

◆ multilayer()

unsigned int MuonGMR4::MdtReadoutElement::multilayer ( ) const

Returns the multi layer of the MdtReadoutElement.

◆ numLayers()

unsigned int MuonGMR4::MdtReadoutElement::numLayers ( ) const

Returns the number of tube layer.

◆ numTubesInLay()

unsigned int MuonGMR4::MdtReadoutElement::numTubesInLay ( ) const

Returns the number of tubes per layer.

◆ planeSurfaceFactory()

StatusCode MuonGMR4::MuonReadoutElement::planeSurfaceFactory ( const IdentifierHash & hash,
std::shared_ptr< const Acts::PlanarBounds > pBounds )
protectedinherited

Definition at line 125 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

126 {
127
128 //get the local to global transform cache
129 TransformCacheMap::const_iterator transformCache = m_localToGlobalCaches.find(hash);
130 if (transformCache == m_localToGlobalCaches.end()) {
131 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" - "<<idHelperSvc()->toString(identify())
132 <<" no transform cache available for hash "<<hash);
133 return StatusCode::FAILURE;
134 }
135 auto insert_itr = m_surfaces.insert(std::make_unique<ActsTrk::SurfaceCache>(transformCache->second.get()));
136 if(!insert_itr.second){
137 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" - "<<idHelperSvc()->toString(identify())
138 <<" Insertion to muon surface cache failed for hash "<<hash);
139 return StatusCode::FAILURE;
140 }
141 //Create a plane surface for the surface cache
142 (*insert_itr.first)->setSurface(Acts::Surface::makeShared<Acts::PlaneSurface>(pBounds, **insert_itr.first));
143 return StatusCode::SUCCESS;
144}

◆ readOutPos() [1/2]

Amg::Vector3D MuonGMR4::MdtReadoutElement::readOutPos ( const ActsTrk::GeometryContext & ctx,
const Identifier & measId ) const

Returns the global position of the readout card.

◆ readOutPos() [2/2]

Amg::Vector3D MuonGMR4::MdtReadoutElement::readOutPos ( const ActsTrk::GeometryContext & ctx,
const IdentifierHash & measId ) const

Definition at line 152 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

153 {
154 return localToGlobalTrans(ctx, hash) *
155 (0.5*activeTubeLength(hash) * m_pars.readoutSide * Amg::Vector3D::UnitZ());
156}

◆ releaseUnAlignedTrfs()

void MuonGMR4::MuonReadoutElement::releaseUnAlignedTrfs ( ) const
inherited

Releases all cached transforms that are not connected with alignment.

Definition at line 62 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

62 {
63 for (const auto& cache : m_localToGlobalCaches) {
64 cache.second->releaseNominalCache();
65 }
66}

◆ setChamberLink()

void MuonGMR4::MuonReadoutElement::setChamberLink ( const Chamber * chamber)
inherited

Sets the link to the enclosing chamber.

Definition at line 146 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

146 {
148}
const Chamber * chamber() const
Returns the pointer to the chamber enclosing this readout element.

◆ setComplementaryReadoutEle()

void MuonGMR4::MdtReadoutElement::setComplementaryReadoutEle ( const MdtReadoutElement * other)

Set the link to the second readout element inside the muon station.

Parameters
other pointer to the readoutElement

Definition at line 207 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

207 {
209}

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29{
30 m_lvl = lvl;
31}

◆ setSectorLink()

void MuonGMR4::MuonReadoutElement::setSectorLink ( const SpectrometerSector * envelope)
inherited

Set the link to the enclosing sector envelope.

Definition at line 149 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

149 {
150 m_msSectorLink = envelope;
151}
const SpectrometerSector * m_msSectorLink
Pointer to the associated MS-sector & MuonChamber.

◆ stationEta()

int MuonGMR4::MuonReadoutElement::stationEta ( ) const
inherited

Returns the stationEta (positive A site, negative O site)

◆ stationName()

int MuonGMR4::MuonReadoutElement::stationName ( ) const
inherited

Returns the stationName (BIS, BOS, etc) encoded into the integer.

◆ stationPhi()

int MuonGMR4::MuonReadoutElement::stationPhi ( ) const
inherited

Returns the stationPhi (1-8) -> sector (2*phi - (isSmall))

◆ storeAlignedTransforms()

unsigned int MuonGMR4::MuonReadoutElement::storeAlignedTransforms ( const ActsTrk::DetectorAlignStore & store) const
finaloverridevirtualinherited

Caches the aligned transformation in the provided store. Returns the number of cached elements.

Implements ActsTrk::IDetectorElement.

Definition at line 68 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

68 {
69 if (store.detType != detectorType()) return 0;
70 unsigned int aligned{0};
71 for (const auto& cache : m_localToGlobalCaches) {
72 cache.second->getTransform(&store);
73 ++aligned;
74 }
75 return aligned;
76}

◆ strawSurfaceFactory()

StatusCode MuonGMR4::MuonReadoutElement::strawSurfaceFactory ( const IdentifierHash & hash,
std::shared_ptr< const Acts::LineBounds > lBounds )
protectedinherited

Definition at line 102 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

103 {
104
105 //get the local to global transform cache
106 TransformCacheMap::const_iterator transformCache = m_localToGlobalCaches.find(hash);
107 if (transformCache == m_localToGlobalCaches.end()) {
108 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" - "<<idHelperSvc()->toString(identify())
109 <<" no transform cache available for hash "<<hash);
110 return StatusCode::FAILURE;
111 }
112
113 auto insert_itr = m_surfaces.insert(std::make_unique<ActsTrk::SurfaceCache>(transformCache->second.get()));
114 if(!insert_itr.second){
115 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" - "<<idHelperSvc()->toString(identify())
116 <<" Insertion to muon surface cache failed for hash "<<hash);
117 return StatusCode::FAILURE;
118 }
119 //Create straw surface for the surface cache
120 (*insert_itr.first)->setSurface(Acts::Surface::makeShared<Acts::StrawSurface>(lBounds, **insert_itr.first));
121 return StatusCode::SUCCESS;
122
123}

◆ surface() [1/4]

const Acts::Surface & MuonGMR4::MuonReadoutElement::surface ( ) const
finaloverrideinherited

Returns the surface associated to the readout element plane.

Definition at line 97 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

97{ return surface(geoTransformHash()); }
const Acts::Surface & surface() const override final
Returns the surface associated to the readout element plane.

◆ surface() [2/4]

Acts::Surface & MuonGMR4::MuonReadoutElement::surface ( )
finaloverrideinherited

◆ surface() [3/4]

Acts::Surface & MuonGMR4::MuonReadoutElement::surface ( const IdentifierHash & hash)
inherited

Definition at line 100 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

100{ return *surfacePtr(hash); }
std::shared_ptr< Acts::Surface > surfacePtr

◆ surface() [4/4]

const Acts::Surface & MuonGMR4::MuonReadoutElement::surface ( const IdentifierHash & hash) const
inherited

Returns the sufrface associated to a wire / measurement plane in the detector.

Definition at line 99 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

99{ return *surfacePtr(hash); }

◆ surfacePtr()

std::shared_ptr< Acts::Surface > MuonGMR4::MuonReadoutElement::surfacePtr ( const IdentifierHash & hash) const
inherited

Returns the pointer associated to a certain wire / plane.

Definition at line 89 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

89 {
90 ActsTrk::SurfaceCacheSet::const_iterator cache = m_surfaces.find(hash);
91 if(cache != m_surfaces.end()) return (*cache)->getSurface();
92 ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<"() -- Hash "<<hash
93 <<" is unknown to "<<idHelperSvc()->toStringDetEl(identify()));
94 return nullptr;
95}

◆ thickness()

double MuonGMR4::MdtReadoutElement::thickness ( ) const
finaloverride

Overload from the Acts::DetectorElement (2 * halfheight)

◆ toChamberLayer()

Amg::Transform3D MuonGMR4::MdtReadoutElement::toChamberLayer ( const IdentifierHash & hash) const
private

Returns the transformation into the rest frame of the tube x-axis: Pointing towards the next layer y-axis: Pointing parallel to the wire layer z-axis: Pointing along the wire.

Definition at line 162 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

162 {
163 const unsigned int layer = layerNumber(hash);
164 const MdtTubeLayer& zeroT{*m_pars.tubeLayers[layer]};
165 return zeroT.layerTransform();
166}

◆ toStation()

const Amg::Transform3D & MuonGMR4::MuonReadoutElement::toStation ( const ActsTrk::DetectorAlignStore * alignStore) const
protectedinherited

Returns the local -> global transformation to go from the volume center origin.

Definition at line 59 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

59 {
60 return getMaterialGeom()->getAbsoluteTransform(alignStore ? alignStore->geoModelAlignment.get() : nullptr);
61}
std::shared_ptr< GeoAlignmentStore > geoModelAlignment
Store containing the aligned GeoModel nodes.

◆ toTubeFrame()

Amg::Transform3D MuonGMR4::MdtReadoutElement::toTubeFrame ( const IdentifierHash & hash) const
private

Returns the transformation into the rest frame of the tube x-axis: Pointing towards the next layer y-axis: Pointing parallel to the wire layer z-axis: Pointing along the wire.

Definition at line 167 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

167 {
168 const unsigned int layer = layerNumber(hash);
169 const unsigned int tube = tubeNumber(hash);
170 const MdtTubeLayer& zeroT{*m_pars.tubeLayers[layer]};
171 return zeroT.tubeTransform(tube);
172}

◆ transform()

const Acts::Transform3 & MuonGMR4::MuonReadoutElement::transform ( const Acts::GeometryContext & gctx) const
finaloverrideinherited

Returns the transformation to the origin of the chamber coordinate system.

Definition at line 85 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx.

85 {
86 const ActsTrk::GeometryContext *gctx = anygctx.get<const ActsTrk::GeometryContext *>();
87 return localToGlobalTrans(*gctx, geoTransformHash());
88}

◆ tubeLength()

double MuonGMR4::MdtReadoutElement::tubeLength ( const IdentifierHash & hash) const

Definition at line 185 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

185 {
186 return activeTubeLength(hash) + 2.*m_pars.deadLength;
187}

◆ tubeNumber()

unsigned int MuonGMR4::MdtReadoutElement::tubeNumber ( const IdentifierHash & hash)
static

Transforms the idenfier hash into a tube number ranging from (0- numTubesInLay()-1)

◆ tubePitch()

double MuonGMR4::MdtReadoutElement::tubePitch ( ) const

Returns the pitch between 2 tubes in a layer.

◆ tubeRadius()

double MuonGMR4::MdtReadoutElement::tubeRadius ( ) const

Adds the thickness of the tube wall onto the radius.

◆ uncutTubeLength()

double MuonGMR4::MdtReadoutElement::uncutTubeLength ( const IdentifierHash & tubeHash) const

Returns the uncut tube length.

Definition at line 179 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

179 {
180 const unsigned int layer = layerNumber(tubeHash);
181 const unsigned int tube = tubeNumber(tubeHash);
182 const MdtTubeLayer& zeroT{*m_pars.tubeLayers[layer]};
183 return 2.*zeroT.uncutHalfLength(tube);
184}

◆ wireEndpointAsBuilt()

Amg::Vector3D MuonGMR4::MdtReadoutElement::wireEndpointAsBuilt ( const MdtAsBuiltPar & asBuilt,
const IdentifierHash & tubeHash,
const Amg::Vector3D & nominalEnd,
const tubeSide_t side ) const
private

Definition at line 250 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

253 {
254
255
256 ATH_MSG_VERBOSE( "Applying as-built parameters for chamber " << idHelperSvc()->toString(measurementId(tubeHash)));
257
258
260 using multilayer_t = MdtAsBuiltPar::multilayer_t;
261 const multilayer_t ml = (multilayer() == 1) ? multilayer_t::ML1 : multilayer_t::ML2;
262
263 const IdentifierHash refLayer{measurementHash((ml == multilayer_t::ML1) ? numLayers() : 1, 1)};
264 const Amg::Vector3D refTube{localTubePos(refLayer)};
265
266
267 const double sideSign = 0.5*(1.- 2.*(side ==tubeSide_t::NEG));
268 // Compute the reference for the as-built parameters
269 const Amg::Vector3D reference_point = asBuiltRefFrame() *
270 Amg::Vector3D {refTube.x() + (1. - 2.*(ml == multilayer_t::ML2)) * tubeRadius(),
271 sideSign*uncutTubeLength(refLayer),
272 -0.5*moduleHeight()};
273 ATH_MSG_VERBOSE("AMDB transform "<<" "<<idHelperSvc()->toStringDetEl(identify())<<
274 " "<<GeoTrf::toString(asBuiltRefFrame(), true)<<", reference point: "<<Amg::toString(reference_point));
275
276
277 const int tubeLayer = layerNumber(tubeHash);
278 const int tube = tubeNumber(tubeHash);
279 const int layer_delta = ml == multilayer_t::ML1 ? numLayers() - tubeLayer : tubeLayer +1;
280
281
282 // Get the As-Built parameters for this ML and side of the chamber
283 const double zpitch = params.zpitch(ml, side);
284 const double ypitch = params.ypitch(ml, side);
285 const double stagg = params.stagg(ml, side);
286 const double alpha = params.alpha(ml, side);
287 const double y0 = params.y0(ml, side);
288 const double z0 = params.z0(ml, side);
289
290 const Amg::Transform3D planeRot{Amg::getRotateX3D(-alpha)};
291 ATH_MSG_VERBOSE("Rotation angle "<<(alpha/Gaudi::Units::deg));
292
293 // Find the vector from the reference_point to the endplug
294 // 0 for layer 1 and 3, 1 for layer 2 and 4
295 const double offset_stagg = 0.5 * zpitch * stagg * ( (layer_delta-1) % 2);
296 const Amg::Vector3D endPlug = planeRot * Amg::Vector3D{0.,
297 tube* zpitch + offset_stagg,
298 (layer_delta-1) * ypitch};
299
300 // Calculate x position, which varies for endcap chambers
301 const double xshift = sideSign*(uncutTubeLength(tubeHash) - uncutTubeLength(refLayer));
302 ATH_MSG_VERBOSE("Off set staggering "<<offset_stagg<<", layer_delta: "<<layer_delta<<", zpitch: "<<zpitch<<", ypitch: "<<ypitch
303 <<", xshift: "<<xshift);
304
305 Amg::Vector3D ret(reference_point.x() + xshift,
306 reference_point.y() + z0 + endPlug.y(),
307 reference_point.z() + y0 + endPlug.z());
308
309
310 if ((ret - wireEnd).mag() > 3. * Gaudi::Units::mm) {
311 ATH_MSG_WARNING("Large as-built correction for chamber " << idHelperSvc()->toString(measurementId(tubeHash))
312 << ", side "<< (side == tubeSide_t::POS ? "positive" : "negative")
313 << ", endpoint "<<Amg::toString(wireEnd)<<", return: "<<Amg::toString(ret));
314 }
315 ATH_MSG_VERBOSE((side == tubeSide_t::POS ? "positive" : "negative")<<" wire end has moved from "
316 <<Amg::toString(wireEnd)<<" to "<<Amg::toString(ret)<<" End plug: "<<Amg::toString(endPlug));
317 return ret;
318}
multilayer_t
MDT multi-layer index.
tubeSide_t
MDT tube side.
MdtAsBuiltPar::tubeSide_t tubeSide_t
Moves the wire endpoints according to the as-built model.
Amg::Transform3D getRotateX3D(double angle)
get a rotation transformation around X-axis

◆ wireLength()

double MuonGMR4::MdtReadoutElement::wireLength ( const IdentifierHash & hash) const

Definition at line 188 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MdtReadoutElement.cxx.

188 {
189 return tubeLength(hash) - 2.*m_pars.endPlugLength;
190}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_args

const defineArgs MuonGMR4::MuonReadoutElement::m_args {}
privateinherited

◆ m_chambLink

const Chamber* MuonGMR4::MuonReadoutElement::m_chambLink {nullptr}
privateinherited

◆ m_chIdx

◆ m_detElHash

IdentifierHash MuonGMR4::MuonReadoutElement::m_detElHash {}
privateinherited

Cache of the detector element hash.

Definition at line 200 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

200{};

◆ m_idHelper

const MdtIdHelper& MuonGMR4::MdtReadoutElement::m_idHelper {idHelperSvc()->mdtIdHelper()}
private

Detector identifier helper to quickly extract the ID fields.

Definition at line 232 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h.

virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> MuonGMR4::MuonReadoutElement::m_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", "MuonReadoutElement"}
privateinherited

Definition at line 196 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

196{"Muon::MuonIdHelperSvc/MuonIdHelperSvc", "MuonReadoutElement"};

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

135{ nullptr };

◆ m_isBarrel

bool MuonGMR4::MdtReadoutElement::m_isBarrel {m_idHelper.isBarrel(identify())}
private

Flag defining whether the chamber is barrel or not.

Definition at line 236 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h.

236{m_idHelper.isBarrel(identify())};

◆ m_localToGlobalCaches

TransformCacheMap MuonGMR4::MuonReadoutElement::m_localToGlobalCaches
privateinherited

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

138{ MSG::NIL };

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_msSectorLink

const SpectrometerSector* MuonGMR4::MuonReadoutElement::m_msSectorLink {}
privateinherited

Pointer to the associated MS-sector & MuonChamber.

Definition at line 216 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

216{};

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_pars

parameterBook MuonGMR4::MdtReadoutElement::m_pars {}
private

defining parameter set

Definition at line 230 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h.

230{};

◆ m_reOtherMl

const MdtReadoutElement* MuonGMR4::MdtReadoutElement::m_reOtherMl {this}
private

Complementary readout element.

Definition at line 238 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h.

238{this};

◆ m_stEta

int MuonGMR4::MuonReadoutElement::m_stEta {-1}
privateinherited

Cache the station eta of the identifier.

Definition at line 206 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

206{-1};

◆ m_stML

int MuonGMR4::MdtReadoutElement::m_stML {m_idHelper.multilayer(identify())}
private

Identifier index of the multilayer (1-2)

Definition at line 234 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h.

234{m_idHelper.multilayer(identify())};

◆ m_stName

int MuonGMR4::MuonReadoutElement::m_stName {-1}
privateinherited

Cache the station name of the identifier.

Definition at line 204 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

204{-1};

◆ m_stPhi

int MuonGMR4::MuonReadoutElement::m_stPhi {-1}
privateinherited

Cache the station phi of the identifier.

Definition at line 208 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.

208{-1};

◆ m_surfaces

ActsTrk::SurfaceCacheSet MuonGMR4::MuonReadoutElement::m_surfaces
privateinherited

Cache of all associated surfaces.

Definition at line 214 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h.


The documentation for this class was generated from the following files: