#include <twotracksvectorfunction.h>
Public Member Functions | |
TwoTracksVectorFunction (double tShold, double lv, double rv, Axis dParallelAxis, Axis tSholdComp) | |
virtual | ~TwoTracksVectorFunction () |
virtual double | operator() (const VecDouble &p, const unsigned int component=0) const |
Protected Attributes | |
Axis | m_axis |
Private Attributes | |
double | m_lv |
double | m_rv |
double | m_tShold |
unsigned | m_tSholdComp |
Definition at line 9 of file twotracksvectorfunction.h.
TwoTracksVectorFunction::TwoTracksVectorFunction | ( | double | tShold, | |
double | lv, | |||
double | rv, | |||
Axis | dParallelAxis, | |||
Axis | tSholdComp | |||
) |
Definition at line 4 of file twotracksvectorfunction.cpp.
00005 :Function3D(3) 00006 { 00007 m_lv = lv; 00008 m_rv = rv; 00009 m_tShold = tShold; 00010 m_axis = dParallelAxis; 00011 m_tSholdComp = tSholdComp; 00012 }
virtual TwoTracksVectorFunction::~TwoTracksVectorFunction | ( | ) | [inline, virtual] |
Definition at line 18 of file twotracksvectorfunction.h.
double TwoTracksVectorFunction::operator() | ( | const VecDouble & | p, | |
const unsigned int | component = 0 | |||
) | const [virtual] |
Implements GeneralFunctionInterface.
Definition at line 14 of file twotracksvectorfunction.cpp.
00015 { 00016 if (component != (unsigned) m_axis) 00017 return 0.0; 00018 else 00019 { 00020 if (p(m_tSholdComp) < m_tShold) 00021 return m_lv; 00022 else 00023 return m_rv; 00024 } 00025 }
Axis TwoTracksVectorFunction::m_axis [protected] |
Definition at line 15 of file twotracksvectorfunction.h.
double TwoTracksVectorFunction::m_lv [private] |
Definition at line 12 of file twotracksvectorfunction.h.
double TwoTracksVectorFunction::m_rv [private] |
Definition at line 12 of file twotracksvectorfunction.h.
double TwoTracksVectorFunction::m_tShold [private] |
Definition at line 12 of file twotracksvectorfunction.h.
unsigned TwoTracksVectorFunction::m_tSholdComp [private] |
Definition at line 13 of file twotracksvectorfunction.h.