Main Page
Namespaces
Classes
Package Documentation
src
TrackingTools
GeomPropagators
interface
PropagationDirectionFromPath.h
Go to the documentation of this file.
1
#ifndef _CR_PropagationDirectionFromPath
2
#define _CR_PropagationDirectionFromPath
3
4
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
8
class
PropagationDirectionFromPath
{
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
PropagationDirectionFromPath::operator()
PropagationDirection operator()(const double &s) const
Direction from sign of path length.
Definition:
PropagationDirectionFromPath.h:11
anyDirection
Definition:
PropagationDirection.h:4
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
alongMomentum
Definition:
PropagationDirection.h:4
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
PropagationDirectionFromPath::operator()
PropagationDirection operator()(const double &s, const PropagationDirection propDir) const
Direction from second argument, from sign of path length,.
Definition:
PropagationDirectionFromPath.h:17
PropagationDirectionFromPath
Definition:
PropagationDirectionFromPath.h:8
PropagationDirection.h
oppositeToMomentum
Definition:
PropagationDirection.h:4
Generated for CMSSW Reference Manual by
1.8.11