CMS 3D CMS Logo

PropagationDirectionFromPath Class Reference

Converts sign of path to propagation direction. More...

#include <TrackingTools/GeomPropagators/interface/PropagationDirectionFromPath.h>

List of all members.

Public Member Functions

PropagationDirection operator() (const double &s, const PropagationDirection propDir) const
 Direction from second argument, from sign of path length,.
PropagationDirection operator() (const double &s) const
 Direction from sign of path length.


Detailed Description

Converts sign of path to propagation direction.

Definition at line 8 of file PropagationDirectionFromPath.h.


Member Function Documentation

PropagationDirection PropagationDirectionFromPath::operator() ( const double &  s,
const PropagationDirection  propDir 
) const [inline]

Direction from second argument, from sign of path length,.

Definition at line 17 of file PropagationDirectionFromPath.h.

References anyDirection.

00019   {
00020     if ( propDir!=anyDirection )  return propDir;
00021     return (*this)(s);
00022   }

PropagationDirection PropagationDirectionFromPath::operator() ( const double &  s  )  const [inline]

Direction from sign of path length.

Definition at line 11 of file PropagationDirectionFromPath.h.

References alongMomentum, and oppositeToMomentum.

00012   {
00013     return s>=0 ? alongMomentum : oppositeToMomentum;
00014   }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:30:19 2009 for CMSSW by  doxygen 1.5.4