33 fWireDirection(0, 0, 1)
42 TMatrixT<double> returnMat(2,1);
44 TMatrixT<double> _D(3,1);
48 _D[0][0] = (plane.
getO())[0];
49 _D[1][0] = (plane.
getO())[1];
50 _D[2][0] = (plane.
getO())[2];
61 returnMat[0][0] = _D[0][0] * _U[0] + _D[1][0] * _U[1] + _D[2][0] * _U[2];
62 returnMat[1][0] = _D[0][0] * _V[0] + _D[1][0] * _V[1] + _D[2][0] * _V[2];
79 TMatrixT<double> jac(3,2);
89 TMatrixT<double> jac_orig = jac;
90 TMatrixT<double> jac_t = jac.T();
92 TMatrixT<double> result=jac_t * (rawCov * jac_orig);
103 TVector3
point(rawcoord[0][0],rawcoord[1][0],rawcoord[2][0]);
105 TVector3 wire1(point);
106 TVector3 wire2(point);
115 TVector3 poca, poca_onwire, dirInPoca;
121 distance = TMath::Sqrt(fabs(((wire1-poca).Mag2()*(wire2-wire1).Mag2()-pow((wire1-poca).Dot(wire2-wire1),2))/(wire2-wire1).Mag2()));
125 GFException exc(
"distance poca-wire > maxdistance", __LINE__,__FILE__);
132 TVector3 fromwiretoextr = poca - poca_onwire;
133 fromwiretoextr.SetMag(1.);
135 TVector3 wiredirection = wire2 - wire1;
136 wiredirection.SetMag(1.);
139 if(fabs(fromwiretoextr * wiredirection) > 1
e-3) {
140 GFException exc(
"fromwiretoextr*wiredirection > 1e-3", __LINE__,__FILE__);
151 TVector3
O = poca_onwire;