FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
genfit::AbsMeasurement Class Referenceabstract

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

#include <AbsMeasurement.h>

Inheritance diagram for genfit::AbsMeasurement:
genfit::FullMeasurement genfit::PlanarMeasurement genfit::SpacepointMeasurement genfit::WireMeasurement genfit::WireMeasurementNew PndGemRecoHit2 PndSdsRecoHit2 genfit::ProlateSpacepointMeasurement PndHitRecoHit2 PndMdtRecoHit2 genfit::WirePointMeasurement PndFtsRecoHit2 PndSttRecoHit2

Public Member Functions

 AbsMeasurement ()
 
 AbsMeasurement (int nDims)
 
 AbsMeasurement (const TVectorD &rawHitCoords, const TMatrixDSym &rawHitCov, int detId, int hitId, TrackPoint *trackPoint)
 
virtual ~AbsMeasurement ()
 
virtual AbsMeasurementclone () const =0
 Deep copy ctor for polymorphic class. More...
 
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. More...
 
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
 
virtual std::vector
< genfit::MeasurementOnPlane * > 
constructMeasurementsOnPlane (const StateOnPlane &state) const =0
 
virtual const AbsHMatrixconstructHMatrix (const AbsTrackRep *) const =0
 
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! More...
 

Protected Attributes

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

Private Member Functions

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

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.

Constructor & Destructor Documentation

genfit::AbsMeasurement::AbsMeasurement ( )
inline

Definition at line 46 of file AbsMeasurement.h.

genfit::AbsMeasurement::AbsMeasurement ( int  nDims)
inline

Definition at line 47 of file AbsMeasurement.h.

genfit::AbsMeasurement::AbsMeasurement ( const TVectorD &  rawHitCoords,
const TMatrixDSym &  rawHitCov,
int  detId,
int  hitId,
TrackPoint trackPoint 
)
virtual genfit::AbsMeasurement::~AbsMeasurement ( )
virtual
genfit::AbsMeasurement::AbsMeasurement ( const AbsMeasurement )
protected

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

Member Function Documentation

virtual AbsMeasurement* genfit::AbsMeasurement::clone ( ) const
pure virtual
virtual const AbsHMatrix* genfit::AbsMeasurement::constructHMatrix ( const AbsTrackRep ) const
pure virtual
virtual std::vector<genfit::MeasurementOnPlane*> genfit::AbsMeasurement::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 genfit::WireMeasurementNew, genfit::WireMeasurement, genfit::SpacepointMeasurement, genfit::WirePointMeasurement, genfit::PlanarMeasurement, and genfit::FullMeasurement.

virtual SharedPlanePtr genfit::AbsMeasurement::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 genfit::SpacepointMeasurement, genfit::WireMeasurementNew, genfit::WireMeasurement, genfit::WirePointMeasurement, genfit::PlanarMeasurement, genfit::ProlateSpacepointMeasurement, and genfit::FullMeasurement.

int genfit::AbsMeasurement::getDetId ( ) const
inline

Definition at line 62 of file AbsMeasurement.h.

References detId_.

62 {return detId_;}
unsigned int genfit::AbsMeasurement::getDim ( ) const
inline

Definition at line 69 of file AbsMeasurement.h.

References rawHitCoords_.

69 {return rawHitCoords_.GetNrows();}
int genfit::AbsMeasurement::getHitId ( ) const
inline

Definition at line 63 of file AbsMeasurement.h.

References hitId_.

63 {return hitId_;}
virtual int genfit::AbsMeasurement::getLeftRightResolution ( ) const
inlinevirtual

Reimplemented in genfit::WireMeasurementNew, and genfit::WireMeasurement.

Definition at line 67 of file AbsMeasurement.h.

67 {return 0;}
const TVectorD& genfit::AbsMeasurement::getRawHitCoords ( ) const
inline

Definition at line 58 of file AbsMeasurement.h.

References rawHitCoords_.

58 {return rawHitCoords_;}
TVectorD& genfit::AbsMeasurement::getRawHitCoords ( )
inline

Definition at line 60 of file AbsMeasurement.h.

References rawHitCoords_.

60 {return rawHitCoords_;}
const TMatrixDSym& genfit::AbsMeasurement::getRawHitCov ( ) const
inline

Definition at line 59 of file AbsMeasurement.h.

References rawHitCov_.

59 {return rawHitCov_;}
TMatrixDSym& genfit::AbsMeasurement::getRawHitCov ( )
inline

Definition at line 61 of file AbsMeasurement.h.

References rawHitCov_.

61 {return rawHitCov_;}
TrackPoint* genfit::AbsMeasurement::getTrackPoint ( ) const
inline

Definition at line 55 of file AbsMeasurement.h.

References trackPoint_.

55 {return trackPoint_;}
TrackPoint * trackPoint_
Pointer to TrackPoint where the measurement belongs to.
virtual bool genfit::AbsMeasurement::isLeftRightMeasurement ( ) const
inlinevirtual

If the AbsMeasurement is a wire hit, the left/right resolution will be used.

Reimplemented in genfit::WireMeasurement.

Definition at line 66 of file AbsMeasurement.h.

66 {return false;}
AbsMeasurement& genfit::AbsMeasurement::operator= ( const AbsMeasurement )
private

protect from calling assignment operator from outside the class. Use clone() if you want a copy!

virtual void genfit::AbsMeasurement::Print ( const Option_t *  = "") const
virtual
void genfit::AbsMeasurement::setDetId ( int  detId)
inline
void genfit::AbsMeasurement::setHitId ( int  hitId)
inline
void genfit::AbsMeasurement::setRawHitCoords ( const TVectorD &  coords)
inline

Definition at line 71 of file AbsMeasurement.h.

References rawHitCoords_.

71 {rawHitCoords_ = coords;}
void genfit::AbsMeasurement::setRawHitCov ( const TMatrixDSym &  cov)
inline

Definition at line 72 of file AbsMeasurement.h.

References rawHitCov_.

72 {rawHitCov_ = cov;}
void genfit::AbsMeasurement::setTrackPoint ( TrackPoint tp)
inline

Definition at line 56 of file AbsMeasurement.h.

References trackPoint_.

Referenced by genfit::TrackPoint::addRawMeasurement().

56 {trackPoint_ = tp;}
TrackPoint * trackPoint_
Pointer to TrackPoint where the measurement belongs to.

Member Data Documentation

int genfit::AbsMeasurement::detId_
protected

Definition at line 115 of file AbsMeasurement.h.

Referenced by getDetId(), and setDetId().

int genfit::AbsMeasurement::hitId_
protected

Definition at line 116 of file AbsMeasurement.h.

Referenced by getHitId(), and setHitId().

TVectorD genfit::AbsMeasurement::rawHitCoords_
protected
TMatrixDSym genfit::AbsMeasurement::rawHitCov_
protected
TrackPoint* genfit::AbsMeasurement::trackPoint_
protected

Pointer to TrackPoint where the measurement belongs to.

Definition at line 119 of file AbsMeasurement.h.

Referenced by getTrackPoint(), and setTrackPoint().


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