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

19 : m_transToLine(line) {}

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  }

◆ 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.

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:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
checkFileSG.line
line
Definition: checkFileSG.py:75
TrkDriftCircleMath::ResidualWithLine::residual
double residual(const LocVec2D &pos) const
Definition: ResidualWithLine.h:21
TrkDriftCircleMath::TransformToLine::set
void set(const Line &line)
Definition: TransformToLine.h:28
TrkDriftCircleMath::RotPhi::sinphi
double sinphi() const
Definition: RotPhi.h:26
TrkDriftCircleMath::TransformToLine::toLineRotation
const RotPhi & toLineRotation() const
rotate local position into line frame
Definition: TransformToLine.h:43
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
TrkDriftCircleMath::TransformToLine::toLineY
double toLineY(const LocVec2D &pos) const
Definition: TransformToLine.h:24
TrkDriftCircleMath::ResidualWithLine::m_transToLine
TransformToLine m_transToLine
Definition: ResidualWithLine.h:37
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26