ATLAS Offline Software
Loading...
Searching...
No Matches
MuonR4::FastReco Namespace Reference

Classes

class  GlobalPatternFinder
 Standalone module to handle global pattern recognition. More...
struct  LineTestRes
 : Small struct to encapsulate the result of the line compatibility test More...

Typedefs

using StIndex = GlobalPatternFinder::StIndex

Enumerations

enum class  LineTestDecision : std::int8_t { eAddHit , eBranchPattern , eRejectHit }
 : Enum for possible outcomes of pattern line compatibility test More...

Functions

const GlobalPattern * getParentPattern (const xAOD::MuonSegment &segment)
 Retrieve the parent global pattern of the segment.
const GlobalPattern * getParentPattern (const xAOD::Muon &muon)
 Retrieve the parent global pattern of the muon.
double getQOverPCov (const xAOD::Muon &muon)
 Retrieve the Q/P covariance of the muon.

Variables

static const SpacePointPerLayerSorter s_spSorter {}

Typedef Documentation

◆ StIndex

Enumeration Type Documentation

◆ LineTestDecision

enum class MuonR4::FastReco::LineTestDecision : std::int8_t
strong

: Enum for possible outcomes of pattern line compatibility test

Enumerator
eAddHit 

Test successfull, add hit to pattern.

eBranchPattern 

Test successfull with multiple pattern hits on same layer, branch the pattern.

eRejectHit 

Test failed, discard the hit.

Definition at line 99 of file GlobalPatternFinderDefs.h.

99 : std::int8_t{
101 eAddHit,
106 };
@ eRejectHit
Test failed, discard the hit.
@ eBranchPattern
Test successfull with multiple pattern hits on same layer, branch the pattern.
@ eAddHit
Test successfull, add hit to pattern.

Function Documentation

◆ getParentPattern() [1/2]

const GlobalPattern * MuonR4::FastReco::getParentPattern ( const xAOD::Muon & muon)

Retrieve the parent global pattern of the muon.

Definition at line 27 of file FastRecoUtils.cxx.

27 {
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 }
const GlobalPattern * getParentPattern(const xAOD::MuonSegment &segment)
Retrieve the parent global pattern of the segment.
std::vector< SegLink_t > SegLinkVec_t
MuonSegment_v1 MuonSegment
Reference the current persistent version:

◆ getParentPattern() [2/2]

const GlobalPattern * MuonR4::FastReco::getParentPattern ( const xAOD::MuonSegment & segment)

Retrieve the parent global pattern of the segment.

Definition at line 20 of file FastRecoUtils.cxx.

20 {
21 const PatternLink patLink = patLinkAcc(segment);
22 if (!patLink.isValid()) {
23 return nullptr;
24 }
25 return *patLink;
26 }

◆ getQOverPCov()

double MuonR4::FastReco::getQOverPCov ( const xAOD::Muon & muon)

Retrieve the Q/P covariance of the muon.

Definition at line 39 of file FastRecoUtils.cxx.

39 {
40 return muonQOverPCovAcc(muon);
41 }

Variable Documentation

◆ s_spSorter

const SpacePointPerLayerSorter MuonR4::FastReco::s_spSorter {}
static

Definition at line 16 of file GlobalPatternFinderDefs.h.

16{};