Calculates an approximate crossing of a helix and a barrel plane. The helix circle is approximated with a parabola. The current class name is misleading, since it does not have the HelixPlaneCrossing interface.
Definition at line 12 of file HelixBarrelPlaneCrossing2OrderLocal.h.
HelixBarrelPlaneCrossing2OrderLocal::HelixBarrelPlaneCrossing2OrderLocal |
( |
const GlobalPoint & |
startingPos, |
|
|
const GlobalVector & |
startingDir, |
|
|
float |
rho, |
|
|
const Plane & |
plane |
|
) |
| |
Definition at line 5 of file HelixBarrelPlaneCrossing2OrderLocal.cc.
19 float sinPhi = 0, cosPhi = 0;
38 pos =
Vector2D(lPos.
x() * cosPhi + lPos.
y() * sinPhi, -lPos.
x() * sinPhi + lPos.
y() * cosPhi);
39 dir =
Vector2D(lDir.
x() * cosPhi + lDir.
y() * sinPhi, -lDir.
x() * sinPhi + lDir.
y() * cosPhi);
45 float y =
pos.y() +
dir.y() / lDir.
z() *
d;
References funct::abs(), ztail::d, DeadROC_duringRun::dir, f, multPhiCorr_741_25nsDY_cfi::px, rho, theDir, thePos, toLocal(), x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Definition at line 61 of file HelixBarrelPlaneCrossing2OrderLocal.cc.
75 float sinPhi = 0, cosPhi = 0;
94 pos =
Vector2D(lPos.
x() * cosPhi + lPos.
y() * sinPhi, -lPos.
x() * sinPhi + lPos.
y() * cosPhi);
95 dir =
Vector2D(lDir.
x() * cosPhi + lDir.
y() * sinPhi, -lDir.
x() * sinPhi + lDir.
y() * cosPhi);
101 float y =
pos.y() +
dir.y() / lDir.
z() *
d;
References funct::abs(), ztail::d, DeadROC_duringRun::dir, f, rho, toLocal(), x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().