#include <HelixBarrelCylinderCrossing.h>
Public Types | |
typedef GlobalVector | DirectionType |
typedef GlobalPoint | PositionType |
Public Member Functions | |
DirectionType | direction () const |
bool | hasSolution () const |
HelixBarrelCylinderCrossing (const GlobalPoint &startingPos, const GlobalVector &startingDir, double rho, PropagationDirection propDir, const Cylinder &cyl) | |
double | pathLength () const |
PositionType | position () const |
PositionType | position1 () const |
Method to access separately each solution of the helix-cylinder crossing equations. More... | |
PositionType | position2 () const |
Method to access separately each solution of the helix-cylinder crossing equations. More... | |
Private Types | |
typedef Basic2DVector< TmpType > | Point |
typedef double | TmpType |
typedef Basic2DVector< TmpType > | Vector |
Private Member Functions | |
void | chooseSolution (const Point &p1, const Point &p2, const PositionType &startingPos, const DirectionType &startingDir, PropagationDirection propDir) dso_internal |
Private Attributes | |
int | theActualDir |
Vector | theD |
DirectionType | theDir |
PositionType | thePos |
PositionType | thePos1 |
PositionType | thePos2 |
double | theS |
bool | theSolExists |
Calculates the crossing of a helix with a barrel cylinder.
Definition at line 16 of file HelixBarrelCylinderCrossing.h.
Definition at line 25 of file HelixBarrelCylinderCrossing.h.
|
private |
Definition at line 19 of file HelixBarrelCylinderCrossing.h.
Definition at line 24 of file HelixBarrelCylinderCrossing.h.
|
private |
Definition at line 18 of file HelixBarrelCylinderCrossing.h.
|
private |
Definition at line 20 of file HelixBarrelCylinderCrossing.h.
HelixBarrelCylinderCrossing::HelixBarrelCylinderCrossing | ( | const GlobalPoint & | startingPos, |
const GlobalVector & | startingDir, | ||
double | rho, | ||
PropagationDirection | propDir, | ||
const Cylinder & | cyl | ||
) |
Definition at line 14 of file HelixBarrelCylinderCrossing.cc.
References abs, alongMomentum, funct::C, chooseSolution(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), F(), RealQuadEquation::first, RealQuadEquation::hasSolution, PV3DBase< T, PVType, FrameType >::mag(), Basic2DVector< T >::mag(), p2, StraightLineCylinderCrossing::pathLength(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::perp2(), dttmaxenums::R, rho, RealQuadEquation::second, mathSSE::sqrt(), theActualDir, theD, theDir, thePos, thePos1, thePos2, theS, theSolExists, tmp, PV3DBase< T, PVType, FrameType >::x(), Basic2DVector< T >::x(), PV3DBase< T, PVType, FrameType >::y(), Basic2DVector< T >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 129 of file HelixBarrelCylinderCrossing.cc.
References alongMomentum, anyDirection, Basic2DVector< T >::mag2(), theActualDir, theD, theSolExists, PV3DBase< T, PVType, FrameType >::x(), Basic2DVector< T >::x(), PV3DBase< T, PVType, FrameType >::y(), and Basic2DVector< T >::y().
Referenced by HelixBarrelCylinderCrossing().
|
inline |
Returns the direction along the helix that corresponds to path length "s" from the starting point. As for position, the direction of the crossing with a cylinder (if it exists!) is given by direction( pathLength( cylinder)).
Definition at line 60 of file HelixBarrelCylinderCrossing.h.
References theDir.
|
inline |
Definition at line 32 of file HelixBarrelCylinderCrossing.h.
References theSolExists.
|
inline |
Propagation status (true if valid) and (signed) path length along the helix from the starting point to the cylinder. The starting point and the cylinder are given in the constructor.
Definition at line 38 of file HelixBarrelCylinderCrossing.h.
References theS.
|
inline |
Returns the position along the helix that corresponds to path length "s" from the starting point. If s is obtained from the pathLength method the position is the destination point, i.e. the position of the crossing with a cylinder (if it exists!) is given by position( pathLength( cylinder)).
Definition at line 46 of file HelixBarrelCylinderCrossing.h.
References thePos.
|
inline |
Method to access separately each solution of the helix-cylinder crossing equations.
Definition at line 49 of file HelixBarrelCylinderCrossing.h.
References thePos1.
|
inline |
Method to access separately each solution of the helix-cylinder crossing equations.
Definition at line 52 of file HelixBarrelCylinderCrossing.h.
References thePos2.
|
private |
Definition at line 69 of file HelixBarrelCylinderCrossing.h.
Referenced by chooseSolution(), and HelixBarrelCylinderCrossing().
|
private |
Definition at line 68 of file HelixBarrelCylinderCrossing.h.
Referenced by chooseSolution(), and HelixBarrelCylinderCrossing().
|
private |
Definition at line 67 of file HelixBarrelCylinderCrossing.h.
Referenced by direction(), and HelixBarrelCylinderCrossing().
|
private |
Definition at line 66 of file HelixBarrelCylinderCrossing.h.
Referenced by HelixBarrelCylinderCrossing(), and position().
|
private |
Definition at line 71 of file HelixBarrelCylinderCrossing.h.
Referenced by HelixBarrelCylinderCrossing(), and position1().
|
private |
Definition at line 72 of file HelixBarrelCylinderCrossing.h.
Referenced by HelixBarrelCylinderCrossing(), and position2().
|
private |
Definition at line 65 of file HelixBarrelCylinderCrossing.h.
Referenced by HelixBarrelCylinderCrossing(), and pathLength().
|
private |
Definition at line 64 of file HelixBarrelCylinderCrossing.h.
Referenced by chooseSolution(), hasSolution(), and HelixBarrelCylinderCrossing().