Belle II Software  release-08-01-10
FullMeasurement Class Reference

Measurement class implementing a measurement of all track parameters. More...

#include <FullMeasurement.h>

Inheritance diagram for FullMeasurement:
Collaboration diagram for FullMeasurement:

Public Member Functions

 FullMeasurement (int nDim=5)
 
 FullMeasurement (const MeasuredStateOnPlane &, int detId=-1, int hitId=-1, TrackPoint *trackPoint=nullptr)
 
virtual AbsMeasurementclone () const override
 Deep copy ctor for polymorphic class.
 
virtual SharedPlanePtr constructPlane (const StateOnPlane &state) const override
 Construct (virtual) detector plane (use state's AbsTrackRep). More...
 
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane (const StateOnPlane &state) const override
 Construct MeasurementOnPlane on plane of the state and wrt the states TrackRep. More...
 
virtual const AbsHMatrixconstructHMatrix (const AbsTrackRep *) const override
 Returns a new AbsHMatrix object. More...
 
TrackPointgetTrackPoint () const
 
void setTrackPoint (TrackPoint *tp)
 
const TVectorD & getRawHitCoords () const
 
TVectorD & getRawHitCoords ()
 
const TMatrixDSym & getRawHitCov () const
 
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 void Print (const Option_t *="") const
 

Protected Attributes

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

Detailed Description

Measurement class implementing a measurement of all track parameters.

Author
Johannes Rauch (Technische Universität München, original author)

This class can e.g. be used, if the fitted track parameters measured in one subdetector should be put into one "measurement".

Definition at line 42 of file FullMeasurement.h.

Member Function Documentation

◆ constructHMatrix()

const AbsHMatrix * constructHMatrix ( const AbsTrackRep ) const
overridevirtual

Returns a new AbsHMatrix object.

Caller must take ownership.

Implements AbsMeasurement.

Definition at line 66 of file FullMeasurement.cc.

66  {
67 
68  if (dynamic_cast<const RKTrackRep*>(rep) == nullptr) {
69  Exception exc("SpacepointMeasurement default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
70  throw exc;
71  }
72 
73  return new HMatrixUnit();
74 }

◆ constructMeasurementsOnPlane()

std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane ( const StateOnPlane state) const
overridevirtual

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).

Implements AbsMeasurement.

Definition at line 54 of file FullMeasurement.cc.

◆ constructPlane()

SharedPlanePtr constructPlane ( const StateOnPlane state) const
overridevirtual

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.

Implements AbsMeasurement.

Definition at line 45 of file FullMeasurement.cc.


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