#include <PropagationDirectionFromPath.h>
Public Member Functions | |
PropagationDirection | operator() (const double &s) const |
Direction from sign of path length. | |
PropagationDirection | operator() (const double &s, const PropagationDirection propDir) const |
Direction from second argument, from sign of path length,. |
Converts sign of path to propagation direction.
Definition at line 8 of file PropagationDirectionFromPath.h.
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.
{ return s>=0 ? alongMomentum : oppositeToMomentum; }
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, and alignCSCRings::s.
{ if ( propDir!=anyDirection ) return propDir; return (*this)(s); }