41   TMatrixT<double> returnMat(2,1);
 
   48   returnMat[0][0] = rC[6][0];
 
   49   returnMat[1][0] = rC[7][0];
 
   58   TMatrixT<double> returnCov(2,2);
 
   61   returnCov[0][0] = rawCov[6][6];
 
   62   returnCov[1][0] = rawCov[7][6];
 
   63   returnCov[0][1] = rawCov[6][7];
 
   64   returnCov[1][1] = rawCov[7][7];
 
   76   assert(rC.GetNrows()==8);
 
   78   TVector3 wire1(rC[0][0], rC[1][0], rC[2][0]);
 
   79   TVector3 wire2(rC[3][0], rC[4][0], rC[5][0]);
 
   80   TVector3 wiredirection = wire1 - wire2;
 
   82   TVector3 vaxis = plane.
getV();
 
   83   wiredirection.SetMag(1.);
 
   89       std::cout << 
"GFWirepointHitPolicy: plane not valid!!" << std::endl;
 
   99   assert(x.GetNrows()==8);
 
  100   TVector3 wire1(x[0][0],x[1][0],x[2][0]);
 
  101   TVector3 wire2(x[3][0],x[4][0],x[5][0]);
 
  105   if(d_from_refplane < 1e-5) 
return fDetPlane;
 
  109   TVector3 poca, poca_onwire, dirInPoca;
 
  115   distance = 
TMath::Sqrt(
fabs(((wire1-poca).Mag2()*(wire2-wire1).Mag2()-pow((wire1-poca).Dot(wire2-wire1),2))/(wire2-wire1).Mag2()));
 
  119     GFException exc(
"distance poca-wire > maxdistance", __LINE__,__FILE__);     
 
  126   TVector3 fromwiretoextr = poca - poca_onwire;     
 
  127   fromwiretoextr.SetMag(1.);
 
  129   TVector3 wiredirection = wire2 - wire1; 
 
  130   wiredirection.SetMag(1.);
 
  133   if(
fabs(fromwiretoextr * wiredirection) > 1e-3) {
 
  134     GFException exc(
"fromwiretoextr*wiredirection > 1e-3", __LINE__,__FILE__);  
 
  145   TVector3 O = (wire1 + wire2) * 0.5;
 
Base Class for genfit track representations. Defines interface for track parameterizations. 
static const std::string fPolicyName
Detector plane genfit geometry class. 
const GFDetPlane & detPlane(GFAbsRecoHit *, GFAbsTrackRep *)
Get detector plane. 
static T Sqrt(const T &x)
virtual void extrapolateToLine(const TVector3 &point1, const TVector3 &point2, TVector3 &poca, TVector3 &normVec, TVector3 &poca_onwire)
This method extrapolates to the point of closest approach to a line. 
policy class for hits in wire detectors (STT and DCH) which can measure the coordinate along the wire...
TMatrixT< double > getRawHitCoord() const 
Get raw hit coordinates. 
void checkPlane(GFAbsRecoHit *, const GFDetPlane &)
Check if the detector plane is valid. 
friend F32vec4 fabs(const F32vec4 &a)
Base Class for representing a Hit in GENFIT. 
TMatrixT< double > hitCov(GFAbsRecoHit *, const GFDetPlane &)
Hit covariances in detector plane. 
TMatrixT< double > hitCoord(GFAbsRecoHit *, const GFDetPlane &)
Hit coordinates in detector plane. 
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
TMatrixT< double > getRawHitCov() const 
Get raw hit covariances. 
TVector3 dist(const TVector3 &point) const