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

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

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

Public Member Functions

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

Public Attributes

const HitPayloadhit {nullptr}
 Pointer to the underlying hit.
StIndex station {}
 Station index.
uint8_t globLayer {0u}
 Global measurement layer number.
uint8_t sector {0u}
 Sector.
bool isStraw {false}
 Is straw hit.

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. We store locally most frequently accessed data to avoid frequent pointer indirection

Definition at line 149 of file GlobalPatternFinder.h.

Member Function Documentation

◆ operator*()

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

Definition at line 163 of file GlobalPatternFinder.h.

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

◆ operator->()

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

Definition at line 162 of file GlobalPatternFinder.h.

162{ return hit; }

◆ operator==() [1/2]

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

Definition at line 165 of file GlobalPatternFinder.h.

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

◆ operator==() [2/2]

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

Definition at line 166 of file GlobalPatternFinder.h.

166{ return *hit == other; }

◆ print()

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

Definition at line 1262 of file GlobalPatternFinder.cxx.

1262 {
1263 ostr<<**hit<<", glob Z/R/phi: "<<hit->position.z()<<" / "<<hit->position.perp()<<" / "
1264 <<inDeg(hit->position.phi())<< ", st: " << station <<", loc/glob lay: "
1265 <<static_cast<int>(hit->locLayer)<<"/"<<static_cast<int>(globLayer);
1266}
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 164 of file GlobalPatternFinder.h.

164{ return hit->sp(); }

◆ operator<<

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

Definition at line 168 of file GlobalPatternFinder.h.

168 {
169 c.print(ostr);
170 return ostr;
171 }

Member Data Documentation

◆ globLayer

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

Global measurement layer number.

Definition at line 155 of file GlobalPatternFinder.h.

155{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 151 of file GlobalPatternFinder.h.

151{nullptr};

◆ isStraw

bool MuonR4::FastReco::GlobalPatternFinder::CandidateHit::isStraw {false}

Is straw hit.

Definition at line 159 of file GlobalPatternFinder.h.

159{false};

◆ sector

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

Sector.

Definition at line 157 of file GlobalPatternFinder.h.

157{0u};

◆ station

StIndex MuonR4::FastReco::GlobalPatternFinder::CandidateHit::station {}

Station index.

Definition at line 153 of file GlobalPatternFinder.h.

153{};

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