ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimGenScanTool::HitPair Class Reference

#include <FPGATrackSimGenScanTool.h>

Inheritance diagram for FPGATrackSimGenScanTool::HitPair:
Collaboration diagram for FPGATrackSimGenScanTool::HitPair:

Public Member Functions

 HitPair (const StoredHit *first, const StoredHit *second, bool reverse)
double dPhi () const
double dEta () const
double dR () const
const HitPair Reversed () const
double PhiOutExtrap (double r_out) const
double PhiInExtrap (double r_in) const
double EtaOutExtrap (double r_out) const
double EtaInExtrap (double r_in) const

Public Attributes

T1 first_type
 STL member.
T2 second_type
 STL member.

Private Attributes

bool m_reverse

Detailed Description

Definition at line 182 of file FPGATrackSimGenScanTool.h.

Constructor & Destructor Documentation

◆ HitPair()

FPGATrackSimGenScanTool::HitPair::HitPair ( const StoredHit * first,
const StoredHit * second,
bool reverse )
inline

Definition at line 185 of file FPGATrackSimGenScanTool.h.

185: std::pair<const StoredHit *, const StoredHit *>(first, second), m_reverse(reverse) {}

Member Function Documentation

◆ dEta()

double FPGATrackSimGenScanTool::HitPair::dEta ( ) const
inline

Definition at line 187 of file FPGATrackSimGenScanTool.h.

187{ return this->second->etaShift - this->first->etaShift; }
bool first
Definition DeMoScan.py:534

◆ dPhi()

double FPGATrackSimGenScanTool::HitPair::dPhi ( ) const
inline

Definition at line 186 of file FPGATrackSimGenScanTool.h.

186{ return this->second->phiShift - this->first->phiShift; }

◆ dR()

double FPGATrackSimGenScanTool::HitPair::dR ( ) const
inline

Definition at line 188 of file FPGATrackSimGenScanTool.h.

188{ return this->second->hitptr->getR() - this->first->hitptr->getR(); }

◆ EtaInExtrap()

double FPGATrackSimGenScanTool::HitPair::EtaInExtrap ( double r_in) const
inline

Definition at line 206 of file FPGATrackSimGenScanTool.h.

206 {
207 if (m_reverse) return Reversed().EtaInExtrap(r_in);
208 return this->first->etaShift + this->dEta() / this->dR() * (r_in - this->first->hitptr->getR()); }

◆ EtaOutExtrap()

double FPGATrackSimGenScanTool::HitPair::EtaOutExtrap ( double r_out) const
inline

Definition at line 203 of file FPGATrackSimGenScanTool.h.

203 {
204 if (m_reverse) return Reversed().EtaOutExtrap(r_out);
205 return this->second->etaShift + this->dEta() / this->dR() * (r_out - this->second->hitptr->getR()); }
double EtaOutExtrap(double r_out) const

◆ PhiInExtrap()

double FPGATrackSimGenScanTool::HitPair::PhiInExtrap ( double r_in) const
inline

Definition at line 200 of file FPGATrackSimGenScanTool.h.

200 {
201 if (m_reverse) return Reversed().PhiInExtrap(r_in);
202 return this->first->phiShift + this->dPhi() / this->dR() * (r_in - this->first->hitptr->getR()); }

◆ PhiOutExtrap()

double FPGATrackSimGenScanTool::HitPair::PhiOutExtrap ( double r_out) const
inline

Definition at line 196 of file FPGATrackSimGenScanTool.h.

196 {
197 if (m_reverse)
198 return Reversed().PhiOutExtrap(r_out);
199 return this->second->phiShift + this->dPhi() / this->dR() * (r_out - this->second->hitptr->getR()); }
double PhiOutExtrap(double r_out) const

◆ Reversed()

const HitPair FPGATrackSimGenScanTool::HitPair::Reversed ( ) const
inline

Definition at line 192 of file FPGATrackSimGenScanTool.h.

192 {
193 return HitPair(this->second, this->first, false);
194 }
HitPair(const StoredHit *first, const StoredHit *second, bool reverse)

Member Data Documentation

◆ first_type

T1 std::pair< T1, T2 >::first_type
inherited

STL member.

◆ m_reverse

bool FPGATrackSimGenScanTool::HitPair::m_reverse
private

Definition at line 211 of file FPGATrackSimGenScanTool.h.

◆ second_type

T2 std::pair< T1, T2 >::second_type
inherited

STL member.


The documentation for this class was generated from the following file: