11#include <genfit/PlanarMeasurement.h>
12#include <genfit/RKTrackRep.h>
13#include <tracking/trackFitting/measurementCreator/measurements/HMatrixQP.h>
14#include <framework/logging/Logger.h>
34 genfit::PlanarMeasurement(parentElement)
36 rawHitCoords_.ResizeTo(1);
37 rawHitCov_.ResizeTo(1, 1);
44 virtual const genfit::AbsHMatrix*
constructHMatrix(
const genfit::AbsTrackRep* rep)
const override
46 if (
dynamic_cast<const genfit::RKTrackRep*
>(rep) ==
nullptr) {
47 B2FATAL(
"PlanarMomentumMeasurement default implementation can only handle state vectors of type RKTrackRep!");
AbsHMatrix implementation for one-dimensional MeasurementOnPlane and RKTrackRep parameterization.
Measurement class implementing a planar hit geometry (1 or 2D) with only a momentum measurement.
virtual const genfit::AbsHMatrix * constructHMatrix(const genfit::AbsTrackRep *rep) const override
Construct the QP matrix.
virtual genfit::AbsMeasurement * clone() const override
Clone.
PlanarMomentumMeasurement(const genfit::PlanarMeasurement &parentElement)
Copy from other planar measurement and resize the hit coords to one dimension.
PlanarMomentumMeasurement()
Default constructor with 1 dim.
Abstract base class for different kinds of events.