SND@LHC Software
Loading...
Searching...
No Matches
genfit::AbsMeasurement Class Referenceabstract

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

#include <AbsMeasurement.h>

Inheritance diagram for genfit::AbsMeasurement:
Collaboration diagram for genfit::AbsMeasurement:

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.
 
TrackPointgetTrackPoint () const
 
void setTrackPoint (TrackPoint *tp)
 
const TVectorD & getRawHitCoords () const
 
const TMatrixDSym & getRawHitCov () const
 
int getDetId () const
 
int getHitId () const
 
unsigned int getDim () const
 
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!
 

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.

Constructor & Destructor Documentation

◆ AbsMeasurement() [1/4]

genfit::AbsMeasurement::AbsMeasurement ( )
inline

◆ AbsMeasurement() [2/4]

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

Definition at line 47 of file AbsMeasurement.h.

47: rawHitCoords_(nDims), rawHitCov_(nDims), detId_(-1), hitId_(-1) {;}

◆ AbsMeasurement() [3/4]

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

Definition at line 28 of file AbsMeasurement.cc.

29 : rawHitCoords_(rawHitCoords), rawHitCov_(rawHitCov), detId_(detId), hitId_(hitId), trackPoint_(trackPoint)
30{
31 assert(rawHitCov_.GetNrows() == rawHitCoords_.GetNrows());
32}
TrackPoint * trackPoint_
Pointer to TrackPoint where the measurement belongs to.

◆ ~AbsMeasurement()

genfit::AbsMeasurement::~AbsMeasurement ( )
virtual

Definition at line 47 of file AbsMeasurement.cc.

48{
49 ;
50}

◆ AbsMeasurement() [4/4]

genfit::AbsMeasurement::AbsMeasurement ( const AbsMeasurement o)
protected

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

Definition at line 35 of file AbsMeasurement.cc.

36 : TObject(o),
37 rawHitCoords_(o.rawHitCoords_),
38 rawHitCov_(o.rawHitCov_),
39 detId_(o.detId_),
40 hitId_(o.hitId_),
41 trackPoint_(o.trackPoint_)
42{
43 ;
44}

Member Function Documentation

◆ clone()

◆ constructHMatrix()

virtual const AbsHMatrix * genfit::AbsMeasurement::constructHMatrix ( const AbsTrackRep ) const
pure virtual

◆ constructMeasurementsOnPlane()

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::FullMeasurement, genfit::PlanarMeasurement, genfit::SpacepointMeasurement, genfit::WireMeasurement, and genfit::WirePointMeasurement.

◆ constructPlane()

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

◆ getDetId()

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

Definition at line 60 of file AbsMeasurement.h.

60{return detId_;}

◆ getDim()

unsigned int genfit::AbsMeasurement::getDim ( ) const
inline

Definition at line 63 of file AbsMeasurement.h.

63{return rawHitCoords_.GetNrows();}

◆ getHitId()

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

Definition at line 61 of file AbsMeasurement.h.

61{return hitId_;}

◆ getRawHitCoords()

const TVectorD & genfit::AbsMeasurement::getRawHitCoords ( ) const
inline

Definition at line 58 of file AbsMeasurement.h.

58{return rawHitCoords_;}

◆ getRawHitCov()

const TMatrixDSym & genfit::AbsMeasurement::getRawHitCov ( ) const
inline

Definition at line 59 of file AbsMeasurement.h.

59{return rawHitCov_;}

◆ getTrackPoint()

TrackPoint * genfit::AbsMeasurement::getTrackPoint ( ) const
inline

Definition at line 55 of file AbsMeasurement.h.

55{return trackPoint_;}

◆ operator=()

AbsMeasurement & genfit::AbsMeasurement::operator= ( const AbsMeasurement )
private

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

Definition at line 53 of file AbsMeasurement.cc.

53 {
54 fputs ("must not call AbsMeasurement::operator=\n",stderr);
55 abort();
56 return *this;
57}

◆ Print()

void genfit::AbsMeasurement::Print ( const Option_t *  = "") const
virtual

Definition at line 60 of file AbsMeasurement.cc.

60 {
61 std::cout << "genfit::AbsMeasurement, detId = " << detId_ << ". hitId = " << hitId_ << "\n";
62 std::cout << "Raw hit coordinates: "; rawHitCoords_.Print();
63 std::cout << "Raw hit covariance: "; rawHitCov_.Print();
64}

◆ setDetId()

void genfit::AbsMeasurement::setDetId ( int  detId)
inline

Definition at line 65 of file AbsMeasurement.h.

65{detId_ = detId;}

◆ setHitId()

void genfit::AbsMeasurement::setHitId ( int  hitId)
inline

Definition at line 66 of file AbsMeasurement.h.

66{hitId_ = hitId;}

◆ setTrackPoint()

void genfit::AbsMeasurement::setTrackPoint ( TrackPoint tp)
inline

Definition at line 56 of file AbsMeasurement.h.

Member Data Documentation

◆ detId_

int genfit::AbsMeasurement::detId_
protected

Definition at line 107 of file AbsMeasurement.h.

◆ hitId_

int genfit::AbsMeasurement::hitId_
protected

Definition at line 108 of file AbsMeasurement.h.

◆ rawHitCoords_

TVectorD genfit::AbsMeasurement::rawHitCoords_
protected

Definition at line 105 of file AbsMeasurement.h.

◆ rawHitCov_

TMatrixDSym genfit::AbsMeasurement::rawHitCov_
protected

Definition at line 106 of file AbsMeasurement.h.

◆ trackPoint_

TrackPoint* genfit::AbsMeasurement::trackPoint_
protected

Pointer to TrackPoint where the measurement belongs to.

Definition at line 111 of file AbsMeasurement.h.


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