ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Muon::DistanceToPars Class Reference

#include <SortMeasurementsByPosition.h>

Collaboration diagram for Muon::DistanceToPars:

Public Member Functions

 DistanceToPars (const Trk::TrackParameters *pars)
 
double operator() (const Amg::Vector3D &pos) const
 

Private Attributes

const Trk::TrackParametersm_pars
 

Detailed Description

Definition at line 20 of file SortMeasurementsByPosition.h.

Constructor & Destructor Documentation

◆ DistanceToPars()

Muon::DistanceToPars::DistanceToPars ( const Trk::TrackParameters pars)
inline

Definition at line 22 of file SortMeasurementsByPosition.h.

22 : m_pars(pars) {}

Member Function Documentation

◆ operator()()

double Muon::DistanceToPars::operator() ( const Amg::Vector3D pos) const
inline

Definition at line 23 of file SortMeasurementsByPosition.h.

23  {
24  Amg::Vector3D difPos = pos - m_pars->position();
25  double sign = difPos.dot(m_pars->momentum()) < 0 ? -1. : 1.;
26  return difPos.mag() * sign;
27  }

Member Data Documentation

◆ m_pars

const Trk::TrackParameters* Muon::DistanceToPars::m_pars
private

Definition at line 30 of file SortMeasurementsByPosition.h.


The documentation for this class was generated from the following file:
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
Trk::ParametersBase::position
const Amg::Vector3D & position() const
Access method for the position.
sign
int sign(int a)
Definition: TRT_StrawNeighbourSvc.h:107
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Trk::ParametersBase::momentum
const Amg::Vector3D & momentum() const
Access method for the momentum.
Muon::DistanceToPars::m_pars
const Trk::TrackParameters * m_pars
Definition: SortMeasurementsByPosition.h:30