Go to the documentation of this file. 1 #ifndef __JFIT__JPOINT4DESTIMATOR__
2 #define __JFIT__JPOINT4DESTIMATOR__
15 namespace JPP {
using namespace JFIT; }
98 (*this)(__begin, __end);
111 void operator ()(T __begin,T __end)
116 const int N =
distance(__begin, __end);
118 if (N >= NUMBER_OF_PARAMETERS) {
126 for (T i = __begin; i != __end; ++i) {
147 double xi =
j->getX() - getX();
148 double yi =
j->getY() - getY();
149 double zi =
j->getZ() - getZ();
152 for (
bool done =
false; !done; ) {
154 if ((done = (++
j == __end))) {
158 double xj =
j->getX() - getX();
159 double yj =
j->getY() - getY();
160 double zj =
j->getZ() - getZ();
168 const double y = ((xj + xi) * dx +
211 __x += V.a00 * y0 + V.a01 * y1 + V.a02 * y2 + V.a03 * y3;
212 __y += V.a10 * y0 + V.a11 * y1 + V.a12 * y2 + V.a13 * y3;
213 __z += V.a20 * y0 + V.a21 * y1 + V.a22 * y2 + V.a23 * y3;
214 __t = V.a30 * y0 + V.a31 * y1 + V.a32 * y2 + V.a33 * y3;
220 throw JValueOutOfRange(
"JEstimator<JPoint4D>::operator(): Not enough data points.");
224 static const int NUMBER_OF_PARAMETERS = 4;
Auxiliary classes and methods for linear and iterative data regression.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template definition of linear fit.
Exception for accessing a value in a collection that is outside of its range.
JMATH::JMatrix4S V
co-variance matrix of fit parameters
Data structure for vertex fit.
JEstimator(T __begin, T __end)
Fit constructor.
JEstimator()
Fit constructor.