ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
Event
MuonFastRecoEvent
src
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
5
#include "
MuonFastRecoEvent/FastRecoUtils.h
"
6
7
#include "
xAODMuon/MuonSegmentContainer.h
"
8
9
namespace
{
11
using
PatternLink =
ElementLink<MuonR4::GlobalPatternContainer>
;
12
static
const
SG::ConstAccessor<PatternLink>
patLinkAcc{
"GlobalPatternLink"
};
13
15
static
const
SG::Accessor<float>
muonQOverPCovAcc{
"QOverPCov"
};
16
}
17
18
namespace
MuonR4::FastReco
{
19
20
const
GlobalPattern
*
getParentPattern
(
const
xAOD::MuonSegment
& segment) {
21
const
PatternLink patLink = patLinkAcc(segment);
22
if
(!patLink.isValid()) {
23
return
nullptr
;
24
}
25
return
*patLink;
26
}
27
const
GlobalPattern
*
getParentPattern
(
const
xAOD::Muon
& muon) {
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
}
FastRecoUtils.h
MuonSegmentContainer.h
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
MuonR4::GlobalPattern
Data class to represent an eta maximum in hough space.
Definition
GlobalPattern.h:15
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition
Control/AthContainers/AthContainers/Accessor.h:68
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
MuonR4::FastReco
Definition
FastRecoUtils.h:12
MuonR4::FastReco::getParentPattern
const GlobalPattern * getParentPattern(const xAOD::MuonSegment &segment)
Retrieve the parent global pattern of the segment.
Definition
FastRecoUtils.cxx:20
MuonR4::FastReco::getQOverPCov
double getQOverPCov(const xAOD::Muon &muon)
Retrieve the Q/P covariance of the muon.
Definition
FastRecoUtils.cxx:39
MuonR4::SegLinkVec_t
std::vector< SegLink_t > SegLinkVec_t
Definition
MeasurementMarkerAlg.cxx:15
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
xAOD::MuonSegment
MuonSegment_v1 MuonSegment
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonSegment.h:13
Generated on
for ATLAS Offline Software by
1.17.0