FairRoot/PandaRoot
|
Contains the measurement and covariance in raw detector coordinates. More...
#include <AbsMeasurement.h>
Public Member Functions | |
AbsMeasurement () | |
AbsMeasurement (int nDims) | |
AbsMeasurement (const TVectorD &rawHitCoords, const TMatrixDSym &rawHitCov, int detId, int hitId, TrackPoint *trackPoint) | |
virtual | ~AbsMeasurement () |
virtual AbsMeasurement * | clone () const =0 |
Deep copy ctor for polymorphic class. More... | |
TrackPoint * | getTrackPoint () 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 AbsHMatrix * | constructHMatrix (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_ |
TrackPoint * | trackPoint_ |
Pointer to TrackPoint where the measurement belongs to. More... | |
Private Member Functions | |
AbsMeasurement & | operator= (const AbsMeasurement &) |
protect from calling assignment operator from outside the class. Use clone() if you want a copy! More... | |
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.
|
inline |
Definition at line 46 of file AbsMeasurement.h.
|
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 |
|
protected |
protect from calling copy c'tor from outside the class. Use clone() if you want a copy!
|
pure virtual |
Deep copy ctor for polymorphic class.
Implemented in genfit::WireMeasurementNew, genfit::WireMeasurement, genfit::WirePointMeasurement, genfit::SpacepointMeasurement, genfit::ProlateSpacepointMeasurement, genfit::PlanarMeasurement, and genfit::FullMeasurement.
|
pure virtual |
Returns a new AbsHMatrix object. Caller must take ownership.
Implemented in genfit::WireMeasurementNew, genfit::WireMeasurement, genfit::SpacepointMeasurement, genfit::WirePointMeasurement, genfit::PlanarMeasurement, and genfit::FullMeasurement.
|
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.
|
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.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in genfit::WireMeasurementNew, and genfit::WireMeasurement.
Definition at line 67 of file AbsMeasurement.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 55 of file AbsMeasurement.h.
References trackPoint_.
|
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.
|
private |
protect from calling assignment operator from outside the class. Use clone() if you want a copy!
|
virtual |
|
inline |
Definition at line 73 of file AbsMeasurement.h.
References detId_.
Referenced by PndFtsRecoHit2::PndFtsRecoHit2(), PndGemRecoHit2::PndGemRecoHit2(), PndMdtRecoHit2::PndMdtRecoHit2(), PndSdsRecoHit2::PndSdsRecoHit2(), and PndSttRecoHit2::PndSttRecoHit2().
|
inline |
Definition at line 74 of file AbsMeasurement.h.
References hitId_.
Referenced by PndFtsRecoHit2::PndFtsRecoHit2(), PndGemRecoHit2::PndGemRecoHit2(), PndMdtRecoHit2::PndMdtRecoHit2(), PndSdsRecoHit2::PndSdsRecoHit2(), and PndSttRecoHit2::PndSttRecoHit2().
|
inline |
|
inline |
|
inline |
Definition at line 56 of file AbsMeasurement.h.
References trackPoint_.
Referenced by genfit::TrackPoint::addRawMeasurement().
|
protected |
Definition at line 115 of file AbsMeasurement.h.
Referenced by getDetId(), and setDetId().
|
protected |
Definition at line 116 of file AbsMeasurement.h.
Referenced by getHitId(), and setHitId().
|
protected |
Definition at line 113 of file AbsMeasurement.h.
Referenced by getDim(), getRawHitCoords(), PndFtsRecoHit2::PndFtsRecoHit2(), PndGemRecoHit2::PndGemRecoHit2(), PndHitRecoHit2::PndHitRecoHit2(), PndMdtRecoHit2::PndMdtRecoHit2(), PndSdsRecoHit2::PndSdsRecoHit2(), PndSttRecoHit2::PndSttRecoHit2(), and setRawHitCoords().
|
protected |
Definition at line 114 of file AbsMeasurement.h.
Referenced by getRawHitCov(), PndFtsRecoHit2::PndFtsRecoHit2(), PndGemRecoHit2::PndGemRecoHit2(), PndHitRecoHit2::PndHitRecoHit2(), PndMdtRecoHit2::PndMdtRecoHit2(), PndSdsRecoHit2::PndSdsRecoHit2(), PndSttRecoHit2::PndSttRecoHit2(), and setRawHitCov().
|
protected |
Pointer to TrackPoint where the measurement belongs to.
Definition at line 119 of file AbsMeasurement.h.
Referenced by getTrackPoint(), and setTrackPoint().