 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #include "GeoModelKernel/throwExcept.h"
29 auto castedM =
static_cast<const MeasType*
>(meas);
31 if constexpr(std::is_same_v<xAOD::MdtDriftCircle, MeasType>) {
32 hash = castedM->measurementHash();
34 hash = castedM->layerHash();
36 return castedM->readoutElement()->surface(
hash);
42 if (!meas)
return nullptr;
48 switch (meas->
type()) {
55 return static_cast<const TgcStrip*
>(meas)->readoutElement();
59 return static_cast<const MMCluster*
>(meas)->readoutElement();
62 THROW_EXCEPTION(
"Unsupported measurement given "<<
typeid(*meas).name());
77 switch (meas->
type()) {
80 return fetchSurface<MdtDriftCircle>(meas);
82 return fetchSurface<RpcMeasurement>(meas);
84 return fetchSurface<TgcStrip>(meas);
86 return fetchSurface<sTgcMeasurement>(meas);
88 return fetchSurface<MMCluster>(meas);
90 THROW_EXCEPTION(
"Unsupported measurement given "<<
typeid(*meas).name());
105 switch (meas->
type()) {
120 THROW_EXCEPTION(
"Unsupported measurement given "<<
typeid(*meas).name());
135 switch (meas->
type()) {
138 return static_cast<const MdtDriftCircle*
>(meas)->measurementHash();
150 THROW_EXCEPTION(
"Unsupported measurement given "<<
typeid(*meas).name());
RpcMeasurement_v1: Class storing the geneic.
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
@ u
Enums for curvilinear frames.
virtual xAOD::UncalibMeasType type() const =0
Returns the type of the measurement type as a simple enumeration.
virtual unsigned int numDimensions() const =0
Returns the number of dimensions of the measurement.
const Acts::Surface & muonSurface(const UncalibratedMeasurement *meas)
Returns the associated Acts surface to the measurement.
#define THROW_EXCEPTION(MESSAGE)
The Acts fitters running on the Uncalibrated measurements are uncapable of producing two track states...
UncalibMeasType
Define the type of the uncalibrated measurement.
https://gitlab.cern.ch/atlas/athena/-/blob/master/MuonSpectrometer/MuonReconstruction/MuonRecEvent/Mu...
const MuonGMR4::MuonReadoutElement * muonReadoutElement(const UncalibratedMeasurement *meas)
Returns the associated readout element to the measurement.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
IdentifierHash layerHash(const UncalibratedMeasurement *meas)
Returns the layer hash from an uncalibrated meaurement.