Belle II Software development
PlanarMomentumMeasurement Class Reference

Measurement class implementing a planar hit geometry (1 or 2D) with only a momentum measurement. More...

#include <PlanarMomentumMeasurement.h>

Inheritance diagram for PlanarMomentumMeasurement:
PlanarVXDMomentumMeasurement< HitType >

Public Member Functions

 PlanarMomentumMeasurement ()
 Default contructor with 1 dim.
 
 PlanarMomentumMeasurement (const genfit::PlanarMeasurement &parentElement)
 Copy from other planar measurement and resize the hit coords to one dimension.
 
virtual genfit::AbsMeasurement * clone () const override
 Clone.
 
virtual const genfit::AbsHMatrix * constructHMatrix (const genfit::AbsTrackRep *rep) const override
 Construct the QP matrix.
 

Detailed Description

Measurement class implementing a planar hit geometry (1 or 2D) with only a momentum measurement.

Definition at line 26 of file PlanarMomentumMeasurement.h.

Constructor & Destructor Documentation

◆ PlanarMomentumMeasurement() [1/2]

Default contructor with 1 dim.

Definition at line 30 of file PlanarMomentumMeasurement.h.

30: genfit::PlanarMeasurement(1) {}

◆ PlanarMomentumMeasurement() [2/2]

PlanarMomentumMeasurement ( const genfit::PlanarMeasurement &  parentElement)
inlineexplicit

Copy from other planar measurement and resize the hit coords to one dimension.

Definition at line 33 of file PlanarMomentumMeasurement.h.

33 :
34 genfit::PlanarMeasurement(parentElement)
35 {
36 rawHitCoords_.ResizeTo(1);
37 rawHitCov_.ResizeTo(1, 1);
38 }

Member Function Documentation

◆ clone()

virtual genfit::AbsMeasurement * clone ( ) const
inlineoverridevirtual

Clone.

Reimplemented in PlanarVXDMomentumMeasurement< HitType >.

Definition at line 41 of file PlanarMomentumMeasurement.h.

41{return new PlanarMomentumMeasurement(*this);}
PlanarMomentumMeasurement()
Default contructor with 1 dim.

◆ constructHMatrix()

virtual const genfit::AbsHMatrix * constructHMatrix ( const genfit::AbsTrackRep *  rep) const
inlineoverridevirtual

Construct the QP matrix.

Definition at line 44 of file PlanarMomentumMeasurement.h.

45 {
46 if (dynamic_cast<const genfit::RKTrackRep*>(rep) == nullptr) {
47 B2FATAL("PlanarMomentumMeasurement default implementation can only handle state vectors of type RKTrackRep!");
48 }
49
50 return new HMatrixQP();
51 }

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