Belle II Software  release-08-01-10
AbsMeasurement Class Referenceabstract

Contains the measurement and covariance in raw detector coordinates. More...

#include <AbsMeasurement.h>

Inheritance diagram for AbsMeasurement:
Collaboration diagram for AbsMeasurement:

Public Member Functions

 AbsMeasurement (int nDims)
 
 AbsMeasurement (const TVectorD &rawHitCoords, const TMatrixDSym &rawHitCov, int detId, int hitId, TrackPoint *trackPoint)
 
virtual AbsMeasurementclone () const =0
 Deep copy ctor for polymorphic class.
 
TrackPointgetTrackPoint () const
 
void setTrackPoint (TrackPoint *tp)
 
const TVectorD & getRawHitCoords () const
 
const TMatrixDSym & getRawHitCov () const
 
TVectorD & getRawHitCoords ()
 
TMatrixDSym & getRawHitCov ()
 
int getDetId () const
 
int getHitId () const
 
virtual bool isLeftRightMeasurement () const
 If the AbsMeasurement is a wire hit, the left/right resolution will be used.
 
virtual int getLeftRightResolution () const
 
unsigned int getDim () const
 
void setRawHitCoords (const TVectorD &coords)
 
void setRawHitCov (const TMatrixDSym &cov)
 
void setDetId (int detId)
 
void setHitId (int hitId)
 
virtual SharedPlanePtr constructPlane (const StateOnPlane &state) const =0
 Construct (virtual) detector plane (use state's AbsTrackRep). More...
 
virtual std::vector< genfit::MeasurementOnPlane * > constructMeasurementsOnPlane (const StateOnPlane &state) const =0
 Construct MeasurementOnPlane on plane of the state and wrt the states TrackRep. More...
 
virtual const AbsHMatrixconstructHMatrix (const AbsTrackRep *) const =0
 Returns a new AbsHMatrix object. More...
 
virtual void Print (const Option_t *="") const
 

Protected Member Functions

 AbsMeasurement (const AbsMeasurement &)
 protect from calling copy c'tor from outside the class. Use clone() if you want a copy!
 

Protected Attributes

TVectorD rawHitCoords_
 
TMatrixDSym rawHitCov_
 
int detId_
 
int hitId_
 
TrackPointtrackPoint_
 Pointer to TrackPoint where the measurement belongs to.
 

Private Member Functions

AbsMeasurementoperator= (const AbsMeasurement &)
 protect from calling assignment operator from outside the class. Use clone() if you want a copy!
 

Detailed Description

Contains the measurement and covariance in raw detector coordinates.

Detector and hit ids can be used to point back to the original detector hits (clusters etc.).

Definition at line 42 of file AbsMeasurement.h.

Member Function Documentation

◆ constructHMatrix()

virtual const AbsHMatrix* constructHMatrix ( const AbsTrackRep ) const
pure virtual

◆ constructMeasurementsOnPlane()

virtual std::vector<genfit::MeasurementOnPlane*> constructMeasurementsOnPlane ( const StateOnPlane state) const
pure virtual

Construct MeasurementOnPlane on plane of the state and wrt the states TrackRep.

The state will usually be the prediction or reference state, and has to be defined AT the measurement. The AbsMeasurement will be projected onto the plane. It's possible to make corrections to the coordinates here (e.g. by using the state coordinates). Usually the vector will contain only one element. But in the case of e.g. a WireMeasurement, it will be 2 (left and right).

Implemented in WirePointMeasurement, WireMeasurementNew, WireMeasurement, SpacepointMeasurement, PlanarMeasurement, FullMeasurement, PlanarVXDMomentumMeasurement< HitType >, SVDRecoHit2D, SVDRecoHit, PXDRecoHit, CDCRecoHit, and AlignableBKLMRecoHit.

◆ constructPlane()

virtual SharedPlanePtr constructPlane ( const StateOnPlane state) const
pure virtual

Construct (virtual) detector plane (use state's AbsTrackRep).

It's possible to make corrections to the plane here. The state should be defined somewhere near the measurement. For virtual planes, the state will be extrapolated to the POCA to point (SpacepointMeasurement) or line (WireMeasurement), and from this info the plane will be constructed.

Implemented in WirePointMeasurement, WireMeasurementNew, WireMeasurement, SpacepointMeasurement, PlanarMeasurement, FullMeasurement, ProlateSpacepointMeasurement, and CDCRecoHit.


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