24 #include "FairMCPoint.h"
25 #include "RKTrackRep.h"
33 #include "TGeoManager.h"
34 #include "FairRootManager.h"
65 TVector3 o(0.,0.,point->GetZ()),
112 FairRootManager* ioman = FairRootManager::Instance();
117 Double_t hitX = hit->GetX(), hitY = hit->GetY();
118 Double_t phiAValue = TMath::ATan(hitX/hitY);
119 if ( hitY < 0 ) phiAValue +=
TMath::Pi();
120 else if ( hitX < 0 ) phiAValue += 2.*
TMath::Pi();
122 TVector3 oo (0.,0.,hit->GetZ()),
129 fHitCoord[1][0] = 0.;
134 if ( hit->
GetDp() < 1.e-8 ) {
135 uu.SetXYZ (1.,0.,0.);
136 vv.SetXYZ (0.,1.,0.);
138 fHitCoord[0][0] = hitX;
139 fHitCoord[1][0] = hitY;
141 fHitCov[0][0] = hit->GetDx()*hit->GetDx();
142 fHitCov[1][1] = hit->GetDy()*hit->GetDy();
154 if (dynamic_cast<const RKTrackRep*>(stateVector) != NULL) {
157 TMatrixT<double> HMatrix(2,5);
175 if (dynamic_cast<const GeaneTrackRep*>(stateVector) != NULL) {
194 std::cerr <<
"DemoRecoHit can only handle state"
195 <<
" vectors of type GeaneTrackRep -> abort"
204 const TMatrixT<Double_t>& )
Base Class for genfit track representations. Defines interface for track parameterizations.
RecoHit interface template class. Provides comfortable interface to create RecoHits.
Detector plane genfit geometry class.
virtual TMatrixT< double > getHMatrix(const GFAbsTrackRep *stateVector)
Get transformation matrix. Transformation between hit coordinates and track representation coordinate...
TMatrixT< double > fHitCoord
Vector of raw coordinates of hit.
static T Sqrt(const T &x)
void setDetPlane(const GFDetPlane &p)
Set physical detector plane. Needs to be called before hit can be used.
virtual Double_t residualScalar(GFAbsTrackRep *stateVector, const TMatrixT< Double_t > &state)
GFPlanarHitPolicy fPolicy
static const Int_t fNparHitRep
Policy class implementing a planar hit geometry.
TMatrixT< double > fHitCov
Covariance of raw hit coordinates.