ATLAS Offline Software
Loading...
Searching...
No Matches
MuonR4::FastReco::GlobalPatternFinder::CandidateHit Struct Reference

Small wrapper for candidate hits used to build patterns. More...

#include <GlobalPatternFinderDefs.h>

Collaboration diagram for MuonR4::FastReco::GlobalPatternFinder::CandidateHit:

Public Member Functions

const HitPayload * operator-> () const
const HitPayload & operator* () const
const SpacePoint * sp () const
bool operator== (const CandidateHit &other) const
bool operator== (const HitPayload &other) const
void print (std::ostream &ostr) const

Public Attributes

const HitPayload * hit {nullptr}
 Pointer to the underlying hit.
uint8_t globLayer {0u}
 Global measurement layer number.

Friends

std::ostream & operator<< (std::ostream &ostr, const CandidateHit &c)

Detailed Description

Small wrapper for candidate hits used to build patterns.

This is needed because the global layer number cannot be defined globally, but it can be computed given a set of hits.

Definition at line 79 of file GlobalPatternFinderDefs.h.

Member Function Documentation

◆ operator*()

const HitPayload & MuonR4::FastReco::GlobalPatternFinder::CandidateHit::operator* ( ) const
inline

Definition at line 86 of file GlobalPatternFinderDefs.h.

86{ return *hit; }
const HitPayload * hit
Pointer to the underlying hit.

◆ operator->()

const HitPayload * MuonR4::FastReco::GlobalPatternFinder::CandidateHit::operator-> ( ) const
inline

Definition at line 85 of file GlobalPatternFinderDefs.h.

85{ return hit; }

◆ operator==() [1/2]

bool MuonR4::FastReco::GlobalPatternFinder::CandidateHit::operator== ( const CandidateHit & other) const
inline

Definition at line 88 of file GlobalPatternFinderDefs.h.

88{ return *hit == *other.hit; }

◆ operator==() [2/2]

bool MuonR4::FastReco::GlobalPatternFinder::CandidateHit::operator== ( const HitPayload & other) const
inline

Definition at line 89 of file GlobalPatternFinderDefs.h.

89{ return *hit == other; }

◆ print()

void MuonR4::FastReco::GlobalPatternFinder::CandidateHit::print ( std::ostream & ostr) const

Definition at line 601 of file GlobalPatternFinderDefs.cxx.

601 {
602 ostr<<*sp()<<", glob Z/R/phi: "<<hit->position.z()<<" / "<<hit->position.perp()<<" / "
603 <<inDeg(hit->position.phi())<< ", st: " << hit->station <<", loc/glob lay: "
604 <<static_cast<int>(hit->locLayer)<<"/"<<static_cast<int>(globLayer);
605 }
constexpr float inDeg(const float rad)
uint8_t globLayer
Global measurement layer number.

◆ sp()

const SpacePoint * MuonR4::FastReco::GlobalPatternFinder::CandidateHit::sp ( ) const
inline

Definition at line 87 of file GlobalPatternFinderDefs.h.

87{ return hit->spacePoint; }

◆ operator<<

std::ostream & operator<< ( std::ostream & ostr,
const CandidateHit & c )
friend

Definition at line 91 of file GlobalPatternFinderDefs.h.

91 {
92 c.print(ostr);
93 return ostr;
94 }

Member Data Documentation

◆ globLayer

uint8_t MuonR4::FastReco::GlobalPatternFinder::CandidateHit::globLayer {0u}

Global measurement layer number.

Definition at line 83 of file GlobalPatternFinderDefs.h.

83{0u};
@ u
Enums for curvilinear frames.
Definition ParamDefs.h:77

◆ hit

const HitPayload* MuonR4::FastReco::GlobalPatternFinder::CandidateHit::hit {nullptr}

Pointer to the underlying hit.

Definition at line 81 of file GlobalPatternFinderDefs.h.

81{nullptr};

The documentation for this struct was generated from the following files: