24 #ifndef GFABSRECOHIT_H
25 #define GFABSRECOHIT_H
37 namespace genf {
class GFAbsTrackRep; }
149 const TMatrixT<Double_t>&
state,
151 std::cout <<
"GFAbsRecoHit::residualVector(3args) Not correctly Using theta -- multiple scattering -- information !!! Fix this if you really want to use getChi2Hit" << std::endl;
152 TMatrixT<Double_t> H =
getHMatrix(stateVector);
157 const TMatrixT<Double_t>&
state,
165 Double_t mom = fabs(1.0/state[0][0]);
166 Double_t beta = mom/sqrt(mass*mass+mom*mom);
167 if (std::isnan(dist) || dist<0.2) dist=0.2;
168 if (std::isnan(beta) || beta<0.04) beta=0.04;
170 TMatrixT<Double_t> H =
getHMatrix(stateVector,beta,dist);
246 {
throw std::logic_error(std::string(__func__) +
"::Print(Option_t*) not available"); }
251 #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()
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.
constexpr double dist(const TReal *x, const TReal *y, const unsigned int dimension)
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.
BEGIN_PROLOG could also be cout
virtual GFAbsRecoHit * clone()=0
Get clone of this object.