41 TMatrixT<double> returnMat(1,1);
48 returnMat[0][0] = rC[6][0];
57 TMatrixT<double> returnCov(1,1);
60 returnCov[0][0] = rawCov[6][6];
72 assert(rC.GetNrows()==7);
74 TVector3 wire1(rC[0][0], rC[1][0], rC[2][0]);
75 TVector3 wire2(rC[3][0], rC[4][0], rC[5][0]);
76 TVector3 wiredirection = wire1 - wire2;
78 TVector3 vaxis = plane.
getV();
79 wiredirection.SetMag(1.);
82 if(fabs(TMath::Abs(wiredirection.Dot(vaxis)) - 1) > 1
e-3)
85 std::cout <<
"GFWireHitPolicy: plane not valid!!" << std::endl;
95 assert(x.GetNrows()==7);
96 TVector3 wire1(x[0][0],x[1][0],x[2][0]);
97 TVector3 wire2(x[3][0],x[4][0],x[5][0]);
105 TVector3 poca, poca_onwire, dirInPoca;
111 distance = TMath::Sqrt(fabs(((wire1-poca).Mag2()*(wire2-wire1).Mag2()-pow((wire1-poca).Dot(wire2-wire1),2))/(wire2-wire1).Mag2()));
115 GFException exc(
"distance poca-wire > maxdistance", __LINE__,__FILE__);
122 TVector3 fromwiretoextr = poca - poca_onwire;
123 fromwiretoextr.SetMag(1.);
125 TVector3 wiredirection = wire2 - wire1;
126 wiredirection.SetMag(1.);
129 if(fabs(fromwiretoextr * wiredirection) > 1
e-3) {
130 GFException exc(
"fromwiretoextr*wiredirection > 1e-3", __LINE__,__FILE__);
141 TVector3
O = poca_onwire;