ATLAS Offline Software
Loading...
Searching...
No Matches
SurfaceOfMeasurementUtil.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4/* Dear emacs, this is -*-c++-*- */
5#ifndef ACTSTRK_SURFACEOFMEASUREMENTHELPER_H
6#define ACTSTRK_SURFACEOFMEASUREMENTHELPER_H
7
8#include "Acts/Geometry/TrackingGeometry.hpp"
11
12namespace ActsTrk {
13 inline Acts::GeometryIdentifier getSurfaceGeometryIdOfMeasurement(
14 const DetectorElementToActsGeometryIdMap &detector_element_to_geoid,
15 const xAOD::UncalibratedMeasurement &measurement)
16 {
17 DetectorElementToActsGeometryIdMap::const_iterator
18 geoid_iter = detector_element_to_geoid.find( makeDetectorElementKey(measurement.type(), measurement.identifierHash()) );
19 return geoid_iter != detector_element_to_geoid.end()
21 : Acts::GeometryIdentifier{};
22 }
23}
24
25#endif
DetectorIDHashType identifierHash() const
Returns the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash)
virtual xAOD::UncalibMeasType type() const =0
Returns the type of the measurement type as a simple enumeration.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Acts::GeometryIdentifier getSurfaceGeometryIdOfMeasurement(const DetectorElementToActsGeometryIdMap &detector_element_to_geoid, const xAOD::UncalibratedMeasurement &measurement)
DetectorElementKey makeDetectorElementKey(xAOD::UncalibMeasType meas_type, unsigned int identifier_hash)
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
static const Acts::GeometryIdentifier & getValue(const value_type &element)