ATLAS Offline Software
Loading...
Searching...
No Matches
SpacePointHelpers.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
6
7namespace MuonR4 {
8
9bool isPrecisionHit(const SpacePoint& hit) {
10 using enum xAOD::UncalibMeasType;
11 return hit.type() == MdtDriftCircleType || hit.type() == MMClusterType ||
12 (hit.type() == sTgcStripType &&
13 static_cast<const xAOD::sTgcMeasurement*>(hit.primaryMeasurement())->channelType() ==
15}
18 return hit.fitState() == Valid;
19}
21 using enum xAOD::UncalibMeasType;
23 return false;
24 }
25 return isGoodHit(hit) && isPrecisionHit(*hit.spacePoint());
26}
27
28}
The calibrated Space point is created during the calibration process.
const SpacePoint * spacePoint() const
The pointer to the space point out of which this space point has been built.
xAOD::UncalibMeasType type() const
Returns the space point type.
State
State flag to distinguish different space point states.
State fitState() const
Returns the state of the calibrated space point.
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
const xAOD::UncalibratedMeasurement * primaryMeasurement() const
This header ties the generic definitions in this package.
bool isPrecisionHit(const SpacePoint &hit)
Returns whether the uncalibrated spacepoint is a precision hit (Mdt, micromegas, stgc strips)
bool isGoodHit(const CalibratedSpacePoint &hit)
Returns whether the calibrated spacepoint is valid and therefore suitable to be used in the segment f...
UncalibMeasType
Define the type of the uncalibrated measurement.
sTgcMeasurement_v1 sTgcMeasurement