#include <TrackUtils.h>
Public Member Functions | |
bool | operator() (const State &state1, const State &state2) const |
StateOrdering (const TEveVector &momentum) | |
Private Attributes | |
TEveVector | m_direction |
Definition at line 48 of file TrackUtils.h.
fireworks::StateOrdering::StateOrdering | ( | const TEveVector & | momentum | ) | [inline] |
Definition at line 51 of file TrackUtils.h.
References m_direction.
{ m_direction = momentum; m_direction.Normalize(); }
bool fireworks::StateOrdering::operator() | ( | const State & | state1, |
const State & | state2 | ||
) | const [inline] |
Definition at line 55 of file TrackUtils.h.
References m_direction, and fireworks::State::position.
{ double product1 = state1.position.Perp()*(state1.position.fX*m_direction.fX + state1.position.fY*m_direction.fY>0 ? 1 : -1); double product2 = state2.position.Perp()*(state2.position.fX*m_direction.fX + state2.position.fY*m_direction.fY>0 ? 1 : -1); return product1 < product2; }
TEveVector fireworks::StateOrdering::m_direction [private] |
Definition at line 49 of file TrackUtils.h.
Referenced by operator()(), and StateOrdering().