22 #ifndef GFABSRECOHIT_H 23 #define GFABSRECOHIT_H 132 const Double_t&) = 0;
150 const TMatrixT<Double_t>& state,
153 std::cout <<
"GFAbsRecoHit::residualVector(3args) Not correctly Using theta -- multiple " 154 "scattering -- information !!! Fix this if you really want to use getChi2Hit" 156 TMatrixT<Double_t> H =
getHMatrix(stateVector);
161 const TMatrixT<Double_t>& state,
168 Double_t mom = fabs(1.0 / state[0][0]);
169 Double_t beta = mom / sqrt(mass * mass + mom * mom);
170 if (std::isnan(dist) || dist < 0.2) dist = 0.2;
171 if (std::isnan(beta) || beta < 0.04) beta = 0.04;
173 TMatrixT<Double_t> H =
getHMatrix(stateVector, beta, dist);
197 const TMatrixT<Double_t>&,
198 const Double_t&) = 0;
248 throw std::logic_error(std::string(__func__) +
"::Print(Option_t*) not available");
253 #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.
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.
virtual GFAbsRecoHit * clone()=0
Get clone of this object.