CMS 3D CMS Logo

Public Member Functions | Private Attributes

RKTestPropagator Class Reference

#include <RKTestPropagator.h>

Inheritance diagram for RKTestPropagator:
Propagator

List of all members.

Public Member Functions

Propagatorclone () const
virtual const MagneticFieldmagneticField () const
virtual TrajectoryStateOnSurface propagate (const FreeTrajectoryState &state, const Plane &plane) const
virtual TrajectoryStateOnSurface propagate (const FreeTrajectoryState &state, const Cylinder &cyl) const
TrajectoryStateOnSurface propagate (const TrajectoryStateOnSurface &ts, const Plane &plane) const
virtual std::pair
< TrajectoryStateOnSurface,
double > 
propagateWithPath (const FreeTrajectoryState &state, const Plane &plane) const
virtual std::pair
< TrajectoryStateOnSurface,
double > 
propagateWithPath (const FreeTrajectoryState &state, const Cylinder &cyl) const
virtual PropagationDirection propagationDirection () const
 RKTestPropagator (const MagneticField *field, PropagationDirection dir=alongMomentum, double tolerance=5.e-5)
virtual void setPropagationDirection (PropagationDirection dir) const

Private Attributes

RKTestFieldProvider RKField
RKTestMagVolume RKVol
const MagneticFieldtheRealField
DeepCopyPointerByClone
< Propagator
theRKProp
float theTolerance

Detailed Description

Definition at line 65 of file RKTestPropagator.h.


Constructor & Destructor Documentation

RKTestPropagator::RKTestPropagator ( const MagneticField field,
PropagationDirection  dir = alongMomentum,
double  tolerance = 5.e-5 
) [inline, explicit]

Definition at line 70 of file RKTestPropagator.h.

Referenced by clone().


Member Function Documentation

Propagator* RKTestPropagator::clone ( void  ) const [inline, virtual]
virtual const MagneticField* RKTestPropagator::magneticField ( ) const [inline, virtual]

Implements Propagator.

Definition at line 111 of file RKTestPropagator.h.

References theRealField.

Referenced by clone().

{ return theRealField;}
virtual TrajectoryStateOnSurface RKTestPropagator::propagate ( const FreeTrajectoryState state,
const Cylinder cyl 
) const [inline, virtual]

Implements Propagator.

Definition at line 82 of file RKTestPropagator.h.

References theRKProp.

                                                                            {
    return theRKProp->propagate(state,cyl);}
virtual TrajectoryStateOnSurface RKTestPropagator::propagate ( const FreeTrajectoryState state,
const Plane plane 
) const [inline, virtual]

Implements Propagator.

Definition at line 79 of file RKTestPropagator.h.

References theRKProp.

{return theRKProp->propagate(state,plane);}
TrajectoryStateOnSurface RKTestPropagator::propagate ( const TrajectoryStateOnSurface ts,
const Plane plane 
) const [inline, virtual]

Reimplemented from Propagator.

Definition at line 92 of file RKTestPropagator.h.

References theRKProp.

                                                               {return theRKProp->propagate(ts,plane);}
virtual std::pair< TrajectoryStateOnSurface, double> RKTestPropagator::propagateWithPath ( const FreeTrajectoryState state,
const Cylinder cyl 
) const [inline, virtual]

Implements Propagator.

Definition at line 90 of file RKTestPropagator.h.

References theRKProp.

{return theRKProp->propagateWithPath(state,cyl);}
virtual std::pair< TrajectoryStateOnSurface, double> RKTestPropagator::propagateWithPath ( const FreeTrajectoryState state,
const Plane plane 
) const [inline, virtual]

Implements Propagator.

Definition at line 86 of file RKTestPropagator.h.

References theRKProp.

                                                                                   {
    return theRKProp->propagateWithPath(state,plane);}
virtual PropagationDirection RKTestPropagator::propagationDirection ( void  ) const [inline, virtual]

Returns the current value of the propagation direction. If you need to know the actual direction used for a given propagation in case "propagationDirection() == anyDirection", you should use propagateWithPath. A positive sign of path lengt means "alongMomentum", an egeative sign means "oppositeToMomentum".

Reimplemented from Propagator.

Definition at line 99 of file RKTestPropagator.h.

References theRKProp.

Referenced by clone().

                                                            {
    return theRKProp->propagationDirection();
  }
virtual void RKTestPropagator::setPropagationDirection ( PropagationDirection  dir) const [inline, virtual]

The propagation direction can now be set for every propagator. There is no more distinction between unidirectional and bidirectional at class level. The value "anyDiriction" for PropagationDirection provides the functionality of the ex-BidirectionalPropagator. The values "alongMomentum" and "oppositeToMomentum" provide the functionality of the ex-UnidirectionalPropagator.

Reimplemented from Propagator.

Definition at line 95 of file RKTestPropagator.h.

References theRKProp.

                                                                       {
    theRKProp->setPropagationDirection(dir);
  }

Member Data Documentation

Definition at line 117 of file RKTestPropagator.h.

Definition at line 118 of file RKTestPropagator.h.

Definition at line 116 of file RKTestPropagator.h.

Referenced by magneticField().

Definition at line 115 of file RKTestPropagator.h.

Referenced by clone().