CMS 3D CMS Logo

List of all members | Public Member Functions
PropagationDirectionFromPath Class Reference

#include <PropagationDirectionFromPath.h>

Public Member Functions

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

Detailed Description

Converts sign of path to propagation direction.

Definition at line 8 of file PropagationDirectionFromPath.h.

Member Function Documentation

◆ operator()() [1/2]

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

Direction from sign of path length.

Definition at line 11 of file PropagationDirectionFromPath.h.

11 { return s >= 0 ? alongMomentum : oppositeToMomentum; }

References alongMomentum, oppositeToMomentum, and alignCSCRings::s.

◆ operator()() [2/2]

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

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

Definition at line 13 of file PropagationDirectionFromPath.h.

13  {
14  if (propDir != anyDirection)
15  return propDir;
16  return (*this)(s);
17  }

References anyDirection, and alignCSCRings::s.

anyDirection
Definition: PropagationDirection.h:4
oppositeToMomentum
Definition: PropagationDirection.h:4
alignCSCRings.s
s
Definition: alignCSCRings.py:92
alongMomentum
Definition: PropagationDirection.h:4