EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GFRecoHitIfc< HitPolicy > Class Template Reference

RecoHit interface template class. Provides comfortable interface to create RecoHits. More...

#include <EicRoot/blob/master/genfit/GFRecoHitIfc.h>

+ Inheritance diagram for GFRecoHitIfc< HitPolicy >:
+ Collaboration diagram for GFRecoHitIfc< HitPolicy >:

Public Member Functions

 GFRecoHitIfc (int dim)
 Constructor specifying dimension of hit coordinate vector.
 
virtual ~GFRecoHitIfc ()
 
virtual const GFDetPlanegetDetPlane (GFAbsTrackRep *rep)
 Returns the detector plane object for this hit and a given track representation.
 
virtual void getMeasurement (const GFAbsTrackRep *rep, const GFDetPlane &pl, const TMatrixT< double > &statePred, const TMatrixT< double > &covPred, TMatrixT< double > &m, TMatrixT< double > &V)
 Get measurement m,V and HMatrix.
 
const std::string & getPolicyName ()
 
 ClassDef (GFRecoHitIfc, 1)
 
- Public Member Functions inherited from GFAbsRecoHit
virtual ~GFAbsRecoHit ()
 
 GFAbsRecoHit (int NparHit)
 Constructor specifying dimension of coordinate vector.
 
 GFAbsRecoHit ()
 Default constructor needed for compatibility with ROOT.
 
virtual TMatrixT< double > getHMatrix (const GFAbsTrackRep *stateVector)=0
 Get transformation matrix. Transformation between hit coordinates and track representation coordinates.
 
TMatrixT< double > getRawHitCov () const
 Get raw hit covariances.
 
TMatrixT< double > getRawHitCoord () const
 Get raw hit coordinates.
 
double getRho ()
 
void setRho (double rho)
 
virtual GFAbsRecoHitclone ()=0
 Get clone of this object.
 
virtual void Print (const Option_t *option="") const
 Print raw hit coordinates.
 
int getNparHit ()
 

Protected Attributes

HitPolicy fPolicy
 
- Protected Attributes inherited from GFAbsRecoHit
TMatrixT< double > fHitCoord
 Vector of raw coordinates of hit.
 
TMatrixT< double > fHitCov
 Covariance of raw hit coordinates.
 
double fRho
 Sorting parameter used in GFTrack::sortHits()
 

Detailed Description

template<class HitPolicy>
class GFRecoHitIfc< HitPolicy >

RecoHit interface template class. Provides comfortable interface to create RecoHits.

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)

This class defines a comfortable interface to create hit classes in genfit. It is a template class. The template parameter is used to specify a certain basic type of hit:

  • GFRecoHitIfc<PlanarHitPolicy> a basic planar hit
  • GFRecoHitIfc<SpacepointHitPolicy> a basic space point hit
  • GFRecoHitIfc<WirepointHitPolicy> a basic hit on a wire

To create a hit for a detector simply inherit from one of the options above and fill in your data. For details look at the respective HitPolicy documentations. You can also directly inherit from GFAbsRecoHit though this is not recommended. If a new hit geometry is needed one should think about implementing a new HitPolicy for this type of hit.

See Also
PlanarHitPolicy
SpacepointHitPolicy
WirepointHitPolicy

Implementation details: The actual implementations of the methods declared here can be found in the HitPolicy objects.

Definition at line 60 of file GFRecoHitIfc.h.

View newest version in sPHENIX GitHub at line 60 of file GFRecoHitIfc.h

Constructor & Destructor Documentation

template<class HitPolicy>
GFRecoHitIfc< HitPolicy >::GFRecoHitIfc ( int  dim)
inline

Constructor specifying dimension of hit coordinate vector.

Definition at line 68 of file GFRecoHitIfc.h.

View newest version in sPHENIX GitHub at line 68 of file GFRecoHitIfc.h

template<class HitPolicy>
virtual GFRecoHitIfc< HitPolicy >::~GFRecoHitIfc ( )
inlinevirtual

Definition at line 69 of file GFRecoHitIfc.h.

View newest version in sPHENIX GitHub at line 69 of file GFRecoHitIfc.h

Member Function Documentation

template<class HitPolicy>
GFRecoHitIfc< HitPolicy >::ClassDef ( GFRecoHitIfc< HitPolicy >  ,
 
)
template<class HitPolicy>
virtual const GFDetPlane& GFRecoHitIfc< HitPolicy >::getDetPlane ( GFAbsTrackRep rep)
inlinevirtual

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

See Also
PlanarHitPolicy
SpacepointHitPolicy
WirepointHitPolicy

Implements GFAbsRecoHit.

Definition at line 80 of file GFRecoHitIfc.h.

View newest version in sPHENIX GitHub at line 80 of file GFRecoHitIfc.h

template<class HitPolicy>
virtual void GFRecoHitIfc< HitPolicy >::getMeasurement ( const GFAbsTrackRep rep,
const GFDetPlane pl,
const TMatrixT< double > &  statePred,
const TMatrixT< double > &  covPred,
TMatrixT< double > &  m,
TMatrixT< double > &  V 
)
inlinevirtual

Get measurement m,V and HMatrix.

Implementation in the HitPolicy

Implements GFAbsRecoHit.

Definition at line 86 of file GFRecoHitIfc.h.

View newest version in sPHENIX GitHub at line 86 of file GFRecoHitIfc.h

template<class HitPolicy>
const std::string& GFRecoHitIfc< HitPolicy >::getPolicyName ( )
inlinevirtual

Reimplemented from GFAbsRecoHit.

Definition at line 98 of file GFRecoHitIfc.h.

View newest version in sPHENIX GitHub at line 98 of file GFRecoHitIfc.h

Member Data Documentation

template<class HitPolicy>
HitPolicy GFRecoHitIfc< HitPolicy >::fPolicy
protected

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