Belle II Software development
PlanarVXDMomentumMeasurement< HitType > Class Template Reference

Measurement class implementing a planar hit geometry (1 or 2D) with a momentum measurement based on the VXD dEdX information with setable parameters (see VXDMomentumEstimationMeasurementCreator). More...

#include <PlanarVXDMomentumMeasurement.h>

Inheritance diagram for PlanarVXDMomentumMeasurement< HitType >:
PlanarMomentumMeasurement

Public Member Functions

 PlanarVXDMomentumMeasurement (const genfit::PlanarMeasurement &parentElement, HitType *hit, const Belle2::RecoTrack *recoTrack)
 Initialize the momentum measurement with a planar measurement as a parent, the corresponding hit and the reco track to get information from.
 
virtual genfit::AbsMeasurement * clone () const override
 Clone the measurement.
 
virtual std::vector< genfit::MeasurementOnPlane * > constructMeasurementsOnPlane (const genfit::StateOnPlane &state) const override
 Construct the measurement on the plane set in the parent element.
 
void setCorrectionFitParameters (const typename VXDMomentumEstimation< HitType >::CorrectionFitParameters &correctionFitParameters)
 Set the correction fit parameters.
 
void setSigma (double sigma)
 Set the measurement sigma.
 
void setFitParameters (const typename VXDMomentumEstimation< HitType >::FitParameters &fitParameters)
 Set the fit parameters.
 
void setUseMCInformation (bool useMCInformation)
 Set whether to use mc information.
 
void setUseThickness (bool useThickness)
 Set whether to use the thickness.
 
void setUseTrackingSeeds (bool useTrackingSeeds)
 Set whether to use tracking seeds not the current state.
 
HitType * getHit () const
 Get the underlying hit (cluster).
 
virtual const genfit::AbsHMatrix * constructHMatrix (const genfit::AbsTrackRep *rep) const override
 Construct the QP matrix.
 

Private Member Functions

int getDetId () const
 Return the detector ID.
 
int getDetId () const
 Specialisation for PXD clusters.
 
int getDetId () const
 Specialisation for SVD clusters.
 

Private Attributes

VXDMomentumEstimation< HitType >::FitParameters m_fitParameters
 Parameters for the main function.
 
VXDMomentumEstimation< HitType >::CorrectionFitParameters m_correctionFitParameters
 Parameters for the correction function.
 
bool m_useThickness = false
 Use the thickness of the clusters of the path length for estimating dX.
 
bool m_useMCInformation = true
 Use the seeds of the track finder or the seeds of the MC particles.
 
bool m_useTrackingSeeds = false
 Use the tracking seeds in the origin for calculating the path length rather than the current state.
 
double m_sigma = 0.03
 Value of the measurement sigma.
 
HitType * m_hit = nullptr
 Underlying hit/cluster.
 
const RecoTrackm_recoTrack = nullptr
 RecoTrack for which the hit is created.
 

Detailed Description

template<class HitType>
class Belle2::PlanarVXDMomentumMeasurement< HitType >

Measurement class implementing a planar hit geometry (1 or 2D) with a momentum measurement based on the VXD dEdX information with setable parameters (see VXDMomentumEstimationMeasurementCreator).

Definition at line 27 of file PlanarVXDMomentumMeasurement.h.

Constructor & Destructor Documentation

◆ PlanarVXDMomentumMeasurement()

PlanarVXDMomentumMeasurement ( const genfit::PlanarMeasurement &  parentElement,
HitType *  hit,
const Belle2::RecoTrack recoTrack 
)
inline

Initialize the momentum measurement with a planar measurement as a parent, the corresponding hit and the reco track to get information from.

The internal matrices are set accordingly.

Definition at line 34 of file PlanarVXDMomentumMeasurement.h.

34 :
35 PlanarMomentumMeasurement(parentElement), m_hit(hit), m_recoTrack(recoTrack)
36 {
37 rawHitCoords_.ResizeTo(1);
38 rawHitCov_.ResizeTo(1, 1);
39
40 setHitId(hit->getArrayIndex());
41 setDetId(getDetId());
42 }
PlanarMomentumMeasurement()
Default constructor with 1 dim.
const RecoTrack * m_recoTrack
RecoTrack for which the hit is created.
int getDetId() const
Return the detector ID.

Member Function Documentation

◆ clone()

virtual genfit::AbsMeasurement * clone ( ) const
inlineoverridevirtual

Clone the measurement.

Reimplemented from PlanarMomentumMeasurement.

Definition at line 45 of file PlanarVXDMomentumMeasurement.h.

45{return new PlanarVXDMomentumMeasurement(*this);}
PlanarVXDMomentumMeasurement(const genfit::PlanarMeasurement &parentElement, HitType *hit, const Belle2::RecoTrack *recoTrack)
Initialize the momentum measurement with a planar measurement as a parent, the corresponding hit and ...

◆ constructHMatrix()

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

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 }

◆ getDetId()

int getDetId ( ) const
inlineprivate

Return the detector ID.

Definition at line 112 of file PlanarVXDMomentumMeasurement.h.

113 {
114 return -1;
115 }

◆ getHit()

HitType * getHit ( ) const
inline

Get the underlying hit (cluster).

Definition at line 87 of file PlanarVXDMomentumMeasurement.h.

88 {
89 return m_hit;
90 }

◆ setCorrectionFitParameters()

void setCorrectionFitParameters ( const typename VXDMomentumEstimation< HitType >::CorrectionFitParameters &  correctionFitParameters)
inline

Set the correction fit parameters.

Definition at line 51 of file PlanarVXDMomentumMeasurement.h.

52 {
53 m_correctionFitParameters = correctionFitParameters;
54 }
VXDMomentumEstimation< HitType >::CorrectionFitParameters m_correctionFitParameters
Parameters for the correction function.

◆ setFitParameters()

void setFitParameters ( const typename VXDMomentumEstimation< HitType >::FitParameters &  fitParameters)
inline

Set the fit parameters.

Definition at line 63 of file PlanarVXDMomentumMeasurement.h.

64 {
65 m_fitParameters = fitParameters;
66 }
VXDMomentumEstimation< HitType >::FitParameters m_fitParameters
Parameters for the main function.

◆ setSigma()

void setSigma ( double  sigma)
inline

Set the measurement sigma.

Definition at line 57 of file PlanarVXDMomentumMeasurement.h.

58 {
59 m_sigma = sigma;
60 }
double m_sigma
Value of the measurement sigma.

◆ setUseMCInformation()

void setUseMCInformation ( bool  useMCInformation)
inline

Set whether to use mc information.

Definition at line 69 of file PlanarVXDMomentumMeasurement.h.

70 {
71 m_useMCInformation = useMCInformation;
72 }
bool m_useMCInformation
Use the seeds of the track finder or the seeds of the MC particles.

◆ setUseThickness()

void setUseThickness ( bool  useThickness)
inline

Set whether to use the thickness.

Definition at line 75 of file PlanarVXDMomentumMeasurement.h.

76 {
77 m_useThickness = useThickness;
78 }
bool m_useThickness
Use the thickness of the clusters of the path length for estimating dX.

◆ setUseTrackingSeeds()

void setUseTrackingSeeds ( bool  useTrackingSeeds)
inline

Set whether to use tracking seeds not the current state.

Definition at line 81 of file PlanarVXDMomentumMeasurement.h.

82 {
83 m_useTrackingSeeds = useTrackingSeeds;
84 }
bool m_useTrackingSeeds
Use the tracking seeds in the origin for calculating the path length rather than the current state.

Member Data Documentation

◆ m_correctionFitParameters

VXDMomentumEstimation<HitType>::CorrectionFitParameters m_correctionFitParameters
private

Parameters for the correction function.

Set them to zero to not use a correction function.

Definition at line 96 of file PlanarVXDMomentumMeasurement.h.

◆ m_fitParameters

VXDMomentumEstimation<HitType>::FitParameters m_fitParameters
private

Parameters for the main function.

Definition at line 94 of file PlanarVXDMomentumMeasurement.h.

◆ m_hit

HitType* m_hit = nullptr
private

Underlying hit/cluster.

Definition at line 107 of file PlanarVXDMomentumMeasurement.h.

◆ m_recoTrack

const RecoTrack* m_recoTrack = nullptr
private

RecoTrack for which the hit is created.

Definition at line 109 of file PlanarVXDMomentumMeasurement.h.

◆ m_sigma

double m_sigma = 0.03
private

Value of the measurement sigma.

Definition at line 104 of file PlanarVXDMomentumMeasurement.h.

◆ m_useMCInformation

bool m_useMCInformation = true
private

Use the seeds of the track finder or the seeds of the MC particles.

Definition at line 100 of file PlanarVXDMomentumMeasurement.h.

◆ m_useThickness

bool m_useThickness = false
private

Use the thickness of the clusters of the path length for estimating dX.

Definition at line 98 of file PlanarVXDMomentumMeasurement.h.

◆ m_useTrackingSeeds

bool m_useTrackingSeeds = false
private

Use the tracking seeds in the origin for calculating the path length rather than the current state.

Definition at line 102 of file PlanarVXDMomentumMeasurement.h.


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