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
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;
22 if (hit.type() == xAOD::UncalibMeasType::Other){
23 return false;
24 }
25 return isGoodHit(hit) && isPrecisionHit(*hit.spacePoint());
26}
27
28}
bool hit(const Container &ids, int pdgId)
The calibrated Space point is created during the calibration process.
State
State flag to distinguish different space point states.
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
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