CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
12  {
13  return s>=0 ? alongMomentum : oppositeToMomentum;
14  }
16  inline PropagationDirection
17  operator()(const double& s,
18  const PropagationDirection propDir) const
19  {
20  if ( propDir!=anyDirection ) return propDir;
21  return (*this)(s);
22  }
23 };
24 #endif
PropagationDirection operator()(const double &s) const
Direction from sign of path length.
PropagationDirection
PropagationDirection operator()(const double &s, const PropagationDirection propDir) const
Direction from second argument, from sign of path length,.
string s
Definition: asciidump.py:422