24 #ifndef GFABSRECOHIT_H 25 #define GFABSRECOHIT_H 148 const TMatrixT<Double_t>& state,
150 std::cout <<
"GFAbsRecoHit::residualVector(3args) Not correctly Using theta -- multiple scattering -- information !!! Fix this if you really want to use getChi2Hit" << std::endl;
151 TMatrixT<Double_t> H =
getHMatrix(stateVector);
156 const TMatrixT<Double_t>& state,
162 Double_t dist = (d.
getO()-dPrev.
getO()).Mag();
164 Double_t mom = fabs(1.0/state[0][0]);
165 Double_t
beta = mom/sqrt(mass*mass+mom*mom);
166 if (std::isnan(dist) || dist<0.2) dist=0.2;
167 if (std::isnan(beta) || beta<0.04) beta=0.04;
169 TMatrixT<Double_t> H =
getHMatrix(stateVector,beta,dist);
233 virtual void Print(std::ostream& out = std::cout)
const 245 {
throw std::logic_error(std::string(__func__) +
"::Print(Option_t*) not available"); }
250 #endif //FITTER_ABSHIT_H virtual TMatrixT< Double_t > getHitCoord(const GFDetPlane &, const GFDetPlane &)=0
Get hit coordinates in a specific detector plane.
TMatrixT< Double_t > fHitCoord
Vector of raw coordinates of hit.
virtual const std::string & getPolicyName()
Generic Interface to magnetic fields in GENFIT.
virtual TMatrixT< Double_t > getHMatrix(const GFAbsTrackRep *stateVector)=0
Get transformation matrix. Transformation between hit coordinates and track representation coordinate...
virtual const GFDetPlane & getDetPlane(GFAbsTrackRep *)=0
Get detector plane for a given track representation.
TMatrixT< Double_t > getRawHitCoord() const
Get raw hit coordinates.
Base Class for genfit track representations. Defines interface for track parameterizations.
virtual void Print(Option_t *) const
virtual TMatrixT< Double_t > residualVector(const GFAbsTrackRep *stateVector, const TMatrixT< Double_t > &state, const GFDetPlane &d, const GFDetPlane &dPrev, const double &mass)
virtual TMatrixT< Double_t > getHitCov(const GFDetPlane &)=0
Get hit covariances in a specific detector plane.
virtual void Print(std::ostream &out=std::cout) const
Print raw hit coordinates.
GFAbsRecoHit()
Default constructor needed for compatibility with ROOT.
void PrintROOTobject(std::ostream &, const ROOTOBJ &)
Small utility functions which print some ROOT objects into an output stream.
TMatrixT< Double_t > getRawHitCov() const
Get raw hit covariances.
virtual TMatrixT< Double_t > residualVector(const GFAbsTrackRep *stateVector, const TMatrixT< Double_t > &state, const GFDetPlane &d)
Calculate residual with respect to a track representation.
TMatrixT< Double_t > fHitCov
Covariance of raw hit coordinates.
virtual GFAbsRecoHit * clone()=0
Get clone of this object.