CMS 3D CMS Logo

PropagationDirectionFromPath.h
Go to the documentation of this file.
1 #ifndef _CR_PropagationDirectionFromPath
2 #define _CR_PropagationDirectionFromPath
3 
9 public:
11  inline PropagationDirection operator()(const double& s) const { return s >= 0 ? alongMomentum : oppositeToMomentum; }
13  inline PropagationDirection operator()(const double& s, const PropagationDirection propDir) const {
14  if (propDir != anyDirection)
15  return propDir;
16  return (*this)(s);
17  }
18 };
19 #endif
anyDirection
Definition: PropagationDirection.h:4
PropagationDirectionFromPath
Definition: PropagationDirectionFromPath.h:8
oppositeToMomentum
Definition: PropagationDirection.h:4
alignCSCRings.s
s
Definition: alignCSCRings.py:92
PropagationDirectionFromPath::operator()
PropagationDirection operator()(const double &s) const
Direction from sign of path length.
Definition: PropagationDirectionFromPath.h:11
PropagationDirectionFromPath::operator()
PropagationDirection operator()(const double &s, const PropagationDirection propDir) const
Direction from second argument, from sign of path length,.
Definition: PropagationDirectionFromPath.h:13
PropagationDirection.h
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
alongMomentum
Definition: PropagationDirection.h:4