PandaRoot
PndHitRecoHit Class Reference

A planar (x,y) reco hit & its sensor plane. More...

#include <PndHitRecoHit.h>

Inheritance diagram for PndHitRecoHit:
GFRecoHitIfc< GFSpacepointHitPolicy > GFAbsRecoHit

Public Member Functions

 PndHitRecoHit ()
 
 PndHitRecoHit (FairMCPoint *point)
 
 PndHitRecoHit (FairHit *hit)
 
virtual ~PndHitRecoHit ()
 
virtual GFAbsRecoHitclone ()
 Get clone of this object. More...
 
virtual TMatrixT< double > getHMatrix (const GFAbsTrackRep *stateVector)
 Get transformation matrix. Transformation between hit coordinates and track representation coordinates. More...
 
virtual Double_t residualScalar (GFAbsTrackRep *stateVector, const TMatrixT< Double_t > &state)
 
- Public Member Functions inherited from GFRecoHitIfc< GFSpacepointHitPolicy >
 GFRecoHitIfc (int dim)
 Constructor specifying dimension of hit coordinate vector. More...
 
virtual ~GFRecoHitIfc ()
 
virtual const GFDetPlanegetDetPlane (GFAbsTrackRep *rep)
 Returns the detector plane object for this hit and a given track representation. More...
 
virtual TMatrixT< double > getHitCoord (const GFDetPlane &plane)
 Get hit coordinates in a specific detector plane. More...
 
virtual TMatrixT< double > getHitCov (const GFDetPlane &plane)
 Get hit covariances in a specific detector plane. More...
 
const std::string & getPolicyName ()
 
 ClassDef (GFRecoHitIfc, 1)
 
- Public Member Functions inherited from GFAbsRecoHit
virtual ~GFAbsRecoHit ()
 
 GFAbsRecoHit (int NparHit)
 Constructor specifying dimension of coordinate vector. More...
 
 GFAbsRecoHit ()
 Default constructor needed for compatibility with ROOT. More...
 
virtual TMatrixT< double > residualVector (const GFAbsTrackRep *stateVector, const TMatrixT< double > &state, const GFDetPlane &d)
 Calculate residual with respect to a track representation. More...
 
TMatrixT< double > getRawHitCov () const
 Get raw hit covariances. More...
 
TMatrixT< double > getRawHitCoord () const
 Get raw hit coordinates. More...
 
virtual void Print ()
 Print raw hit coordinates. More...
 
int getNparHit ()
 

Additional Inherited Members

- Protected Attributes inherited from GFRecoHitIfc< GFSpacepointHitPolicy >
GFSpacepointHitPolicy fPolicy
 
- Protected Attributes inherited from GFAbsRecoHit
TMatrixT< double > fHitCoord
 Vector of raw coordinates of hit. More...
 
TMatrixT< double > fHitCov
 Covariance of raw hit coordinates. More...
 

Detailed Description

A planar (x,y) reco hit & its sensor plane.

Author
Ralf Kliemt Uni Bonn

Definition at line 34 of file PndHitRecoHit.h.

Constructor & Destructor Documentation

◆ PndHitRecoHit() [1/3]

PndHitRecoHit::PndHitRecoHit ( )

Referenced by clone().

◆ PndHitRecoHit() [2/3]

PndHitRecoHit::PndHitRecoHit ( FairMCPoint *  point)

◆ PndHitRecoHit() [3/3]

PndHitRecoHit::PndHitRecoHit ( FairHit *  hit)

◆ ~PndHitRecoHit()

virtual PndHitRecoHit::~PndHitRecoHit ( )
virtual

Member Function Documentation

◆ clone()

virtual GFAbsRecoHit* PndHitRecoHit::clone ( )
inlinevirtual

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 GFAbsRecoHit.

Definition at line 44 of file PndHitRecoHit.h.

References getHMatrix(), PndHitRecoHit(), and residualScalar().

44 { return new PndHitRecoHit(*this); };

◆ getHMatrix()

virtual TMatrixT<double> PndHitRecoHit::getHMatrix ( const GFAbsTrackRep stateVector)
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 GFAbsRecoHit.

Referenced by clone().

◆ residualScalar()

virtual Double_t PndHitRecoHit::residualScalar ( GFAbsTrackRep stateVector,
const TMatrixT< Double_t > &  state 
)
virtual

Referenced by clone().


The documentation for this class was generated from the following file: