LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PointHit.h"
Public Member Functions | |
PointHit () | |
PointHit (TVector3 point, double res) | |
PointHit (TVector3 point, std::vector< double > &ref) | |
PointHit (TVector3 point, TVector3 res) | |
virtual | ~PointHit () |
virtual GFAbsRecoHit * | clone () |
Get clone of this object. More... | |
virtual TMatrixT< Double_t > | getHMatrix (const GFAbsTrackRep *stateVector) |
Get transformation matrix. Transformation between hit coordinates and track representation coordinates. More... | |
virtual TMatrixT< Double_t > | getHMatrix (const GFAbsTrackRep *stateVector, const Double_t &, const Double_t &) |
virtual const GFDetPlane & | getDetPlane (GFAbsTrackRep *rep) |
Returns the detector plane object for this hit and a given track representation. More... | |
virtual TMatrixT< Double_t > | getHitCoord (const GFDetPlane &plane, const GFDetPlane &planePrev) |
Get hit coordinates in a specific detector plane. More... | |
virtual TMatrixT< Double_t > | getHitCoord (const GFDetPlane &plane) |
virtual TMatrixT< Double_t > | getHitCov (const GFDetPlane &plane) |
Get hit covariances in a specific detector plane. More... | |
virtual TMatrixT< Double_t > | getHitCov (const GFDetPlane &plane, const GFDetPlane &planePrev, const TMatrixT< Double_t > &state, const Double_t &mass) |
const std::string & | getPolicyName () |
virtual TMatrixT< Double_t > | residualVector (const GFAbsTrackRep *stateVector, const TMatrixT< Double_t > &state, const GFDetPlane &d) |
Calculate residual with respect to a track representation. More... | |
virtual TMatrixT< Double_t > | residualVector (const GFAbsTrackRep *stateVector, const TMatrixT< Double_t > &state, const GFDetPlane &d, const GFDetPlane &dPrev, const double &mass) |
TMatrixT< Double_t > | getRawHitCov () const |
Get raw hit covariances. More... | |
TMatrixT< Double_t > | getRawHitCoord () const |
Get raw hit coordinates. More... | |
virtual void | Print (std::ostream &out=std::cout) const |
Print raw hit coordinates. More... | |
int | getNparHit () |
Protected Attributes | |
HitPolicy | fPolicy |
TMatrixT< Double_t > | fHitCoord |
Vector of raw coordinates of hit. More... | |
TMatrixT< Double_t > | fHitCov |
Covariance of raw hit coordinates. More... | |
Static Private Attributes | |
static const int | NparHitRep = 3 |
Definition at line 17 of file PointHit.h.
genf::PointHit::PointHit | ( | ) |
Definition at line 23 of file PointHit.cxx.
Referenced by clone().
genf::PointHit::PointHit | ( | TVector3 | point, |
double | res | ||
) |
Definition at line 27 of file PointHit.cxx.
References d, genf::GFAbsRecoHit::fHitCoord, and genf::GFAbsRecoHit::fHitCov.
genf::PointHit::PointHit | ( | TVector3 | point, |
std::vector< double > & | ref | ||
) |
Definition at line 42 of file PointHit.cxx.
References d, genf::GFAbsRecoHit::fHitCoord, and genf::GFAbsRecoHit::fHitCov.
genf::PointHit::PointHit | ( | TVector3 | point, |
TVector3 | res | ||
) |
|
virtual |
Definition at line 20 of file PointHit.cxx.
|
virtual |
Get clone of this object.
Virtual abstract method. Has to be implemented by inherting classes. Creates a deep copy of this object. Ownership is trandsferred to the caller!
Implements genf::GFAbsRecoHit.
Definition at line 60 of file PointHit.cxx.
References PointHit().
|
inlinevirtualinherited |
Returns the detector plane object for this hit and a given track representation.
The actutal code for this method depends on the hit geometry and is implemented in the HitPolicy
Implements genf::GFAbsRecoHit.
Definition at line 82 of file GFRecoHitIfc.h.
|
inlinevirtualinherited |
Get hit coordinates in a specific detector plane.
Implementation in the HitPolicy
Implements genf::GFAbsRecoHit.
Definition at line 88 of file GFRecoHitIfc.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Get hit covariances in a specific detector plane.
Implementation in the HitPolicy
Implements genf::GFAbsRecoHit.
Definition at line 97 of file GFRecoHitIfc.h.
|
inlinevirtualinherited |
|
virtual |
Get transformation matrix. Transformation between hit coordinates and track representation coordinates.
This is a virtual abstract method which has to be implemented in the child classes.
In general there is a linear transformation between the coordinate system of the hit (which is defined by the detector plane) and the coordinates of the track representation in that plane. In the most simple case the track representation has 5 parameters (space + momentum) while a hit usually has less (one to three space coordinates).
The transformation matrix is then simply projecting out the space-components of the track representation.
Its dimensions are NxM. Where N is the number of dimensions of the hit in the detector plane (usually 2 or 1) and M is the dimension of the track representation.
In this method a hit has to define with which track representations it can work together. It should be the only point where this explicit coordination is necessary.
For example code see implementing classes below:
Implements genf::GFAbsRecoHit.
Definition at line 141 of file PointHit.cxx.
|
virtual |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineinherited |
Get raw hit coordinates.
Definition at line 182 of file GFAbsRecoHit.h.
References genf::GFAbsRecoHit::clone(), genf::GFAbsRecoHit::fHitCoord, genf::GFAbsRecoHit::getDetPlane(), genf::GFAbsRecoHit::getHitCoord(), and genf::GFAbsRecoHit::getHitCov().
Referenced by genf::GFWireHitPolicy::checkPlane(), genf::GFWirepointHitPolicy::checkPlane(), genf::GFWirepointHitPolicy::detPlane(), genf::GFWireHitPolicy::detPlane(), genf::GFSpacepointHitPolicy::detPlane(), genf::GFWirepointHitPolicy::hitCoord(), genf::GFWireHitPolicy::hitCoord(), genf::GFSpacepointHitPolicy::hitCoord(), genf::GFPlanarHitPolicy::hitCoord(), and genf::GFKalman::processHit().
|
inlineinherited |
Get raw hit covariances.
Definition at line 177 of file GFAbsRecoHit.h.
References genf::GFAbsRecoHit::fHitCov.
Referenced by genf::GFWireHitPolicy::hitCov(), genf::GFWirepointHitPolicy::hitCov(), genf::GFSpacepointHitPolicy::hitCov(), and genf::GFPlanarHitPolicy::hitCov().
|
inlinevirtualinherited |
Print raw hit coordinates.
Definition at line 233 of file GFAbsRecoHit.h.
References genf::GFAbsRecoHit::getPolicyName(), and genf::PrintROOTobject().
|
inlinevirtualinherited |
Calculate residual with respect to a track representation.
Returns the N-dimensional residual of this vector to a given track representation.
This method is not doing any extrapolation. But it creates the necessary detector plane object. See GFAbsRecoHit::getGFDetPlane
stateVector | pointer to track representation - used to synchronize with the track repesentation |
state | parameter vector of the track representation |
Definition at line 147 of file GFAbsRecoHit.h.
References genf::GFAbsRecoHit::getHitCoord(), and genf::GFAbsRecoHit::getHMatrix().
Referenced by genf::GFKalman::getChi2Hit(), genf::GFTrack::getResiduals(), and genf::GFKalman::processHit().
|
inlinevirtualinherited |
Definition at line 155 of file GFAbsRecoHit.h.
References beta, genf::GFAbsRecoHit::getHitCoord(), genf::GFAbsRecoHit::getHMatrix(), and genf::GFDetPlane::getO().
|
protectedinherited |
Vector of raw coordinates of hit.
Definition at line 80 of file GFAbsRecoHit.h.
Referenced by genf::GFAbsRecoHit::getRawHitCoord(), and PointHit().
|
protectedinherited |
Covariance of raw hit coordinates.
Definition at line 83 of file GFAbsRecoHit.h.
Referenced by genf::GFAbsRecoHit::getRawHitCov(), and PointHit().
|
protectedinherited |
Definition at line 64 of file GFRecoHitIfc.h.
|
staticprivate |
Definition at line 37 of file PointHit.h.