#include <StraightLineBarrelCylinderCrossing.h>
Public Member Functions | |
std::pair< bool, double > | pathLength (const Cylinder &cyl) const |
GlobalPoint | position (const double s) const |
StraightLineBarrelCylinderCrossing (const GlobalPoint &startingPos, const GlobalVector &startingDir, const PropagationDirection propDir) | |
Private Types | |
typedef GlobalVector | DirectionType |
typedef Basic2DVector< float > | DirectionType2D |
typedef GlobalPoint | PositionType |
typedef Basic2DVector< float > | PositionType2D |
Private Member Functions | |
std::pair< bool, double > | chooseSolution (const double s1, const double s2) const |
Chooses the right solution w.r.t. the propagation direction. More... | |
Private Attributes | |
const DirectionType | theP0 |
const PropagationDirection | thePropDir |
const PositionType | theX0 |
Calculates the intersection of a straight line with a barrel cylinder.
Definition at line 17 of file StraightLineBarrelCylinderCrossing.h.
|
private |
Definition at line 47 of file StraightLineBarrelCylinderCrossing.h.
|
private |
Definition at line 49 of file StraightLineBarrelCylinderCrossing.h.
|
private |
Definition at line 46 of file StraightLineBarrelCylinderCrossing.h.
|
private |
Definition at line 48 of file StraightLineBarrelCylinderCrossing.h.
StraightLineBarrelCylinderCrossing::StraightLineBarrelCylinderCrossing | ( | const GlobalPoint & | startingPos, |
const GlobalVector & | startingDir, | ||
const PropagationDirection | propDir | ||
) |
Constructor uses global frame (barrel cylinders are by definition in global co-ordinates)
Definition at line 7 of file StraightLineBarrelCylinderCrossing.cc.
|
private |
Chooses the right solution w.r.t. the propagation direction.
Definition at line 35 of file StraightLineBarrelCylinderCrossing.cc.
References alongMomentum, anyDirection, indexGen::s2, and thePropDir.
Referenced by pathLength().
std::pair< bool, double > StraightLineBarrelCylinderCrossing::pathLength | ( | const Cylinder & | cyl | ) | const |
Propagation status (true if valid) and (signed) path length along the line from the starting point to the cylinder.
Definition at line 12 of file StraightLineBarrelCylinderCrossing.cc.
References chooseSolution(), dttmaxenums::R, Cylinder::radius(), theP0, theX0, Surface::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by RKPropagatorInS::propagateParametersOnCylinder().
|
inline |
Returns the position along the line that corresponds to path length "s" from the starting point. If s is obtained from the pathLength method the position is the intersection point with the cylinder.
Definition at line 36 of file StraightLineBarrelCylinderCrossing.h.
References alignCSCRings::s, theP0, and theX0.
Referenced by RKPropagatorInS::propagateParametersOnCylinder().
|
private |
Definition at line 52 of file StraightLineBarrelCylinderCrossing.h.
Referenced by pathLength(), and position().
|
private |
Definition at line 53 of file StraightLineBarrelCylinderCrossing.h.
Referenced by chooseSolution().
|
private |
Definition at line 51 of file StraightLineBarrelCylinderCrossing.h.
Referenced by pathLength(), and position().