Belle II Software development
PXDKalmanStepper Class Reference

Kalman stepper implementation for the PXD CKF. More...

#include <PXDKalmanStepper.h>

Public Member Functions

double kalmanStep (genfit::MeasuredStateOnPlane &measuredStateOnPlane, const CKFToPXDState &state)
 Do a kalman step of the mSoP to the measurement in the state. Returns the chi2.
 
double calculateResidual (genfit::MeasuredStateOnPlane &measuredStateOnPlane, const CKFToPXDState &state)
 Calculate the residual between the mSoP and the measurement in the state.
 

Private Attributes

KalmanStepper< 2 > m_kalmanStepper
 Implementation using the general kalman stepper.
 

Detailed Description

Kalman stepper implementation for the PXD CKF.

Definition at line 24 of file PXDKalmanStepper.h.

Member Function Documentation

โ—† calculateResidual()

double calculateResidual ( genfit::MeasuredStateOnPlane & measuredStateOnPlane,
const CKFToPXDState & state )

Calculate the residual between the mSoP and the measurement in the state.

Definition at line 33 of file PXDKalmanStepper.cc.

34{
35 double residual = 0;
36 for (const PXDRecoHit& pxdRecoHit : state.getRecoHits()) {
37 const std::vector<genfit::MeasurementOnPlane*>& measurementsOnPlane = pxdRecoHit.constructMeasurementsOnPlane(
38 measuredStateOnPlane);
39
40 B2ASSERT("I expect exactly one measurement here", measurementsOnPlane.size() == 1);
41 const genfit::MeasurementOnPlane* measurementOnPlane = measurementsOnPlane.front();
42
43 residual += m_kalmanStepper.calculateResidual(measuredStateOnPlane, *measurementOnPlane);
44
45 delete measurementOnPlane;
46 }
47 return residual;
48}
KalmanStepper< 2 > m_kalmanStepper
Implementation using the general kalman stepper.

โ—† kalmanStep()

double kalmanStep ( genfit::MeasuredStateOnPlane & measuredStateOnPlane,
const CKFToPXDState & state )

Do a kalman step of the mSoP to the measurement in the state. Returns the chi2.

Definition at line 16 of file PXDKalmanStepper.cc.

17{
18 double chi2 = 0;
19 for (const PXDRecoHit& pxdRecoHit : state.getRecoHits()) {
20 const std::vector<genfit::MeasurementOnPlane*>& measurementsOnPlane = pxdRecoHit.constructMeasurementsOnPlane(
21 measuredStateOnPlane);
22
23 B2ASSERT("I expect exactly one measurement here", measurementsOnPlane.size() == 1);
24 const genfit::MeasurementOnPlane* measurementOnPlane = measurementsOnPlane.front();
25
26 chi2 += m_kalmanStepper.kalmanStep(measuredStateOnPlane, *measurementOnPlane);
27
28 delete measurementOnPlane;
29 }
30 return chi2;
31}

Member Data Documentation

โ—† m_kalmanStepper

KalmanStepper<2> m_kalmanStepper
private

Implementation using the general kalman stepper.

Definition at line 34 of file PXDKalmanStepper.h.


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