15 LocalPoint lPos = toLocal.toLocal(startingPos);
21 float sinPhi=0, cosPhi=0;
42 pos =
Vector2D( lPos.
x()*cosPhi + lPos.
y()*sinPhi,
43 -lPos.
x()*sinPhi + lPos.
y()*cosPhi);
44 dir =
Vector2D( lDir.
x()*cosPhi + lDir.
y()*sinPhi,
45 -lDir.
x()*sinPhi + lDir.
y()*cosPhi);
50 float x = pos.x() + dir.x()/lDir.
z()*d - 0.5f*rho*d*
d;
51 float y = pos.y() + dir.y()/lDir.
z()*
d;
63 x*sinPhi + y*cosPhi, 0);
64 float px = dir.x()+rho*
d;
66 px*sinPhi + dir.y()*cosPhi, lDir.
z());
80 LocalPoint lPos = toLocal.toLocal(startingPos);
86 float sinPhi=0, cosPhi=0;
106 pos =
Vector2D( lPos.
x()*cosPhi + lPos.
y()*sinPhi,
107 -lPos.
x()*sinPhi + lPos.
y()*cosPhi);
108 dir =
Vector2D( lDir.
x()*cosPhi + lDir.
y()*sinPhi,
109 -lDir.
x()*sinPhi + lDir.
y()*cosPhi);
114 float x = pos.x() + dir.x()/lDir.
z()*d - 0.5f*rho*d*
d;
115 float y = pos.y() + dir.y()/lDir.
z()*
d;
123 x*sinPhi + y*cosPhi, 0);
static LocalPoint positionOnly(const GlobalPoint &startingPos, const GlobalVector &startingDir, float rho, const Plane &plane)
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
Surface::GlobalVector GlobalVector
Basic2DVector< double >::MathVector Vector2D
Abs< T >::type abs(const T &t)
Surface::LocalVector LocalVector
HelixBarrelPlaneCrossing2OrderLocal(const GlobalPoint &startingPos, const GlobalVector &startingDir, float rho, const Plane &plane)
Surface::LocalPoint LocalPoint