ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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
 

Private Attributes

bool m_reverse
 

Detailed Description

Definition at line 220 of file FPGATrackSimGenScanTool.h.

Constructor & Destructor Documentation

◆ HitPair()

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

Definition at line 223 of file FPGATrackSimGenScanTool.h.

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

Member Function Documentation

◆ dEta()

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

Definition at line 225 of file FPGATrackSimGenScanTool.h.

225 { return this->second->etaShift - this->first->etaShift; }

◆ dPhi()

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

Definition at line 224 of file FPGATrackSimGenScanTool.h.

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

◆ dR()

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

Definition at line 226 of file FPGATrackSimGenScanTool.h.

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

◆ EtaInExtrap()

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

Definition at line 244 of file FPGATrackSimGenScanTool.h.

244  {
245  if (m_reverse) return Reversed().EtaInExtrap(r_in);
246  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 241 of file FPGATrackSimGenScanTool.h.

241  {
242  if (m_reverse) return Reversed().EtaOutExtrap(r_out);
243  return this->second->etaShift + this->dEta() / this->dR() * (r_out - this->second->hitptr->getR()); }

◆ PhiInExtrap()

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

Definition at line 238 of file FPGATrackSimGenScanTool.h.

238  {
239  if (m_reverse) return Reversed().PhiInExtrap(r_in);
240  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 234 of file FPGATrackSimGenScanTool.h.

234  {
235  if (m_reverse)
236  return Reversed().PhiOutExtrap(r_out);
237  return this->second->phiShift + this->dPhi() / this->dR() * (r_out - this->second->hitptr->getR()); }

◆ Reversed()

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

Definition at line 230 of file FPGATrackSimGenScanTool.h.

230  {
231  return HitPair(this->second, this->first, false);
232  }

Member Data Documentation

◆ m_reverse

bool FPGATrackSimGenScanTool::HitPair::m_reverse
private

Definition at line 249 of file FPGATrackSimGenScanTool.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
FPGATrackSimGenScanTool::HitPair::PhiInExtrap
double PhiInExtrap(double r_in) const
Definition: FPGATrackSimGenScanTool.h:238
FPGATrackSimGenScanTool::HitPair::m_reverse
bool m_reverse
Definition: FPGATrackSimGenScanTool.h:249
FPGATrackSimGenScanTool::HitPair::EtaOutExtrap
double EtaOutExtrap(double r_out) const
Definition: FPGATrackSimGenScanTool.h:241
DeMoUpdate.reverse
reverse
Definition: DeMoUpdate.py:563
FPGATrackSimGenScanTool::HitPair::dR
double dR() const
Definition: FPGATrackSimGenScanTool.h:226
FPGATrackSimGenScanTool::HitPair::Reversed
const HitPair Reversed() const
Definition: FPGATrackSimGenScanTool.h:230
FPGATrackSimGenScanTool::HitPair::dPhi
double dPhi() const
Definition: FPGATrackSimGenScanTool.h:224
FPGATrackSimGenScanTool::HitPair::HitPair
HitPair(const StoredHit *first, const StoredHit *second, bool reverse)
Definition: FPGATrackSimGenScanTool.h:223
FPGATrackSimGenScanTool::HitPair::dEta
double dEta() const
Definition: FPGATrackSimGenScanTool.h:225
DeMoScan.first
bool first
Definition: DeMoScan.py:536
FPGATrackSimGenScanTool::HitPair::EtaInExtrap
double EtaInExtrap(double r_in) const
Definition: FPGATrackSimGenScanTool.h:244
FPGATrackSimGenScanTool::HitPair::PhiOutExtrap
double PhiOutExtrap(double r_out) const
Definition: FPGATrackSimGenScanTool.h:234