ATLAS Offline Software
Loading...
Searching...
No Matches
FastRecoUtils.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9namespace {
12 static const SG::ConstAccessor<PatternLink> patLinkAcc{"GlobalPatternLink"};
13
15 static const SG::Accessor<float> muonQOverPCovAcc{"QOverPCov"};
16}
17
18namespace MuonR4::FastReco {
19
21 const PatternLink patLink = patLinkAcc(segment);
22 if (!patLink.isValid()) {
23 return nullptr;
24 }
25 return *patLink;
26 }
28 using SegLinkVec_t = std::vector<ElementLink<xAOD::MuonSegmentContainer>>;
29 const SegLinkVec_t& segLinks = muon.muonSegmentLinks();
30 if (segLinks.empty() || !segLinks.front().isValid()) {
31 return nullptr;
32 }
33 const xAOD::MuonSegment* segment = *segLinks.front();
34 if (!segment) {
35 return nullptr;
36 }
37 return getParentPattern(*segment);
38 }
39 double getQOverPCov(const xAOD::Muon& muon) {
40 return muonQOverPCovAcc(muon);
41 }
42}
Data class to represent an eta maximum in hough space.
Helper class to provide type-safe access to aux data.
Helper class to provide constant type-safe access to aux data.
const GlobalPattern * getParentPattern(const xAOD::MuonSegment &segment)
Retrieve the parent global pattern of the segment.
double getQOverPCov(const xAOD::Muon &muon)
Retrieve the Q/P covariance of the muon.
std::vector< SegLink_t > SegLinkVec_t
Muon_v1 Muon
Reference the current persistent version:
MuonSegment_v1 MuonSegment
Reference the current persistent version: