1 #ifndef PixelRecoLineRZ_H
2 #define PixelRecoLineRZ_H
48 {
return (
std::abs(dr) > 1.
e-4
f) ? dz/dr : 99999.f; }
49 static float initTIP2 (
float x1,
float y1,
float x2,
float y2)
51 double l = y1 * (x2 - x1) - x1 * (y2 - y1);
52 return l * l / ( (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1) );
55 inline float addTIP (
float val)
const
57 inline float subTIP (
float val)
const
60 float val2 = val * val;
float transverseIP() const
static float initCot(float dz, float dr)
Point const & origin() const
LineOrigin origin() const
float addTIP(float val) const
SimpleLineRZ(const Point &aOrigin, const Point &aPoint)
float zAtR(float r) const
static float initTIP2(float x1, float y1, float x2, float y2)
float subTIP(float val) const
float transverseIP2() const
Abs< T >::type abs(const T &t)
PixelRecoLineRZ(const LineOrigin &aOrigin, const PixelRecoPointRZ &aPoint, float transverseIP=0.f)
SimpleLineRZ(const Point &aOrigin, float aCotLine)
T perp() const
Magnitude of transverse component.
PixelRecoPointRZ LineOrigin
float rAtZ(float z) const
float rAtZ(float z) const
PixelRecoLineRZ(const LineOrigin &aOrigin, float aCotLine, float transverseIP=0.f)
PixelRecoLineRZ(const GlobalPoint &p1, const GlobalPoint &p2)
float zAtR(float r) const