9#include "AthLinks/ElementLink.h"
19 if (
const auto* prim =
primaryStrip(); prim !=
nullptr) {
23 return second->type();
28 if (acc_primLink.isAvailable(*
this) && acc_primLink(*this).isValid()) {
29 return *acc_primLink(*
this);
35 if (acc_secondLink.isAvailable(*
this) && acc_secondLink(*this).isValid()) {
36 return *acc_secondLink(*
this);
42 assert(meas !=
nullptr);
44 acc_primLink(*
this) = Link_t{*cont, meas->index()};
47 assert(meas !=
nullptr);
49 acc_secondLink(*
this) = Link_t{*cont, meas->index()};
54 return strip ?
strip->readoutElement() :
nullptr;
ElementLink implementation for ROOT usage.
This is a "hash" representation of an Identifier.
MuonReadoutElement is an abstract class representing the geometry of a muon detector.
Helper class to provide type-safe access to aux data.
const xAOD::MuonMeasurement * primaryStrip() const
Returns the primary associated measurement.
void setSecondaryStrip(const xAOD::MuonMeasurement *meas)
Linkt a prd measurement as secondary measurement.
Amg::Vector3D localMeasurementPos() const override final
Returns the local measurement position in the layer frame.
virtual IdentifierHash layerHash() const override final
Returns the hash of the associated layer (Needed for surface retrieval).
virtual IdentifierHash measurementHash() const override final
Returns the hash of the measurement channel.
const MuonGMR4::MuonReadoutElement * readoutElement() const override final
Returns the associated readout element.
virtual std::uint8_t measuresPhi() const override final
Returns whether the phi coordinate is measured.
const xAOD::MuonMeasurement * secondaryStrip() const
Returns the secondary associated measurement.
virtual xAOD::UncalibMeasType type() const override final
Returns the type of the measurement type as a simple enumeration.
void setPrimaryStrip(const xAOD::MuonMeasurement *meas)
Links a prd measurement as primary meaurement.
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
Eigen::Matrix< double, 3, 1 > Vector3D
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
MuonMeasurement_v1 MuonMeasurement
UncalibMeasType
Define the type of the uncalibrated measurement.
MuonMeasurementContainer_v1 MuonMeasurementContainer