5#ifndef DCMATH_RESIDUALWITHSEGMENT_H
6#define DCMATH_RESIDUALWITHSEGMENT_H
36 double yDistToSegment = cl.position().y() -
m_line.position().y();
39 if (sinPhi < 1e-13) sinPhi = 1e-13;
40 double invSinPhi2 = sinPhi * sinPhi;
41 invSinPhi2 = 1. / invSinPhi2;
class representing a cluster meaurement
This class represents a drift time measurement.
const LocVec2D & position() const
access to local position
Implementation of 2 dimensional vector class.
double x() const
Returns the x coordinate of the vector.
TransformToLine m_transToLine
ResidualWithLine()=default
ResidualWithSegment(const Segment &segment)
double trackError2(const DriftCircle &dc) const
calculate the track error at the position of a drift circle
double trackError2(const Cluster &cl) const
calculate the track error at the position of a cluster
Function object to check whether two Segments are sub/super sets or different.