ATLAS Offline Software
Loading...
Searching...
No Matches
TrkDriftCircleMath::ResidualWithLine Class Reference

#include <ResidualWithLine.h>

Inheritance diagram for TrkDriftCircleMath::ResidualWithLine:
Collaboration diagram for TrkDriftCircleMath::ResidualWithLine:

Public Member Functions

 ResidualWithLine ()=default
 ResidualWithLine (const Line &line)
double residual (const LocVec2D &pos) const
double residual (const DriftCircle &dc) const
double residual (const Cluster &cl) const
void set (const Line &line)

Protected Attributes

TransformToLine m_transToLine

Detailed Description

Definition at line 16 of file ResidualWithLine.h.

Constructor & Destructor Documentation

◆ ResidualWithLine() [1/2]

TrkDriftCircleMath::ResidualWithLine::ResidualWithLine ( )
default

◆ ResidualWithLine() [2/2]

TrkDriftCircleMath::ResidualWithLine::ResidualWithLine ( const Line & line)
inline

Definition at line 19 of file ResidualWithLine.h.

Member Function Documentation

◆ residual() [1/3]

double TrkDriftCircleMath::ResidualWithLine::residual ( const Cluster & cl) const
inline

Definition at line 25 of file ResidualWithLine.h.

25 {
26 // the residual of a cluster is calculated from the point of closest approach and
27 // the angle of the line with the plane
28 double driftRes = residual(cl.position());
29 double sinPhi = m_transToLine.toLineRotation().sinphi();
30 if (sinPhi < 1e-13) sinPhi = 1e-13;
31 return driftRes / sinPhi;
32 }
double residual(const LocVec2D &pos) const
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]

◆ residual() [2/3]

double TrkDriftCircleMath::ResidualWithLine::residual ( const DriftCircle & dc) const
inline

Definition at line 23 of file ResidualWithLine.h.

23{ return std::abs(residual(dc.position())) - std::abs(dc.r()); }

◆ residual() [3/3]

double TrkDriftCircleMath::ResidualWithLine::residual ( const LocVec2D & pos) const
inline

Definition at line 21 of file ResidualWithLine.h.

21{ return m_transToLine.toLineY(pos); }

◆ set()

void TrkDriftCircleMath::ResidualWithLine::set ( const Line & line)
inline

Definition at line 34 of file ResidualWithLine.h.

34{ m_transToLine.set(line); }

Member Data Documentation

◆ m_transToLine

TransformToLine TrkDriftCircleMath::ResidualWithLine::m_transToLine
protected

Definition at line 37 of file ResidualWithLine.h.


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