23 #ifndef genfit_AbsMeasurement_h
24 #define genfit_AbsMeasurement_h
26 #include "MeasurementOnPlane.h"
27 #include "AbsHMatrix.h"
48 AbsMeasurement(
const TVectorD& rawHitCoords,
const TMatrixDSym& rawHitCov,
int detId,
int hitId,
TrackPoint* trackPoint);
58 const TVectorD& getRawHitCoords()
const {
return rawHitCoords_;}
59 const TMatrixDSym& getRawHitCov()
const {
return rawHitCov_;}
60 TVectorD& getRawHitCoords() {
return rawHitCoords_;}
61 TMatrixDSym& getRawHitCov() {
return rawHitCov_;}
62 int getDetId()
const {
return detId_;}
63 int getHitId()
const {
return hitId_;}
67 virtual int getLeftRightResolution()
const {
return 0;}
69 unsigned int getDim()
const {
return rawHitCoords_.GetNrows();}
71 void setRawHitCoords(
const TVectorD& coords) {rawHitCoords_ = coords;}
72 void setRawHitCov(
const TMatrixDSym& cov) {rawHitCov_ = cov;}
73 void setDetId(
int detId) {detId_ = detId;}
74 void setHitId(
int hitId) {hitId_ = hitId;}
102 virtual void Print(
const Option_t* =
"")
const;
113 TVectorD rawHitCoords_;
114 TMatrixDSym rawHitCov_;
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Contains the measurement and covariance in raw detector coordinates.
virtual AbsMeasurement * clone() const =0
Deep copy ctor for polymorphic class.
virtual bool isLeftRightMeasurement() const
If the AbsMeasurement is a wire hit, the left/right resolution will be used.
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const =0
Returns a new AbsHMatrix object.
AbsMeasurement & operator=(const AbsMeasurement &)
protect from calling assignment operator from outside the class. Use clone() if you want a copy!
TrackPoint * trackPoint_
Pointer to TrackPoint where the measurement belongs to.
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const =0
Construct (virtual) detector plane (use state's AbsTrackRep).
virtual std::vector< genfit::MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const =0
Construct MeasurementOnPlane on plane of the state and wrt the states TrackRep.
Abstract base class for a track representation.
A state with arbitrary dimension defined in a DetPlane.
Object containing AbsMeasurement and AbsFitterInfo objects.
Defines for I/O streams used for error and debug printing.
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.