10#include <tracking/trackFitting/measurementCreator/creators/BaseMeasurementCreatorFromHit.h>
23 template <
class HitType, Const::EDetector detector>
39 const std::vector<genfit::AbsMeasurement*>& measurements =
44 std::vector<genfit::TrackPoint*> trackPoints;
45 trackPoints.reserve(measurements.size());
46 for (genfit::AbsMeasurement* measurement : measurements) {
68 genfit::AbsMeasurement* coordinateMeasurement)
const = 0;
Baseclass to create measurement track points based on the coordinate measurements.
virtual std::vector< genfit::AbsMeasurement * > createMeasurementFromCoordinateMeasurement(HitType *hit, const RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation, genfit::AbsMeasurement *coordinateMeasurement) const =0
Overload this method if you want to create measurements from coordinate measurements.
std::vector< genfit::TrackPoint * > createMeasurementPoints(HitType *hit, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const override
Create measurements based on coordinate measurements.
BaseMeasurementCreatorFromCoordinateMeasurement(const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
Needs the genfit MeasurementFactory for this.
virtual ~BaseMeasurementCreatorFromCoordinateMeasurement()
Destructor.
Base Class to create measurements based on a given hit related to the RecoTrack.
genfit::AbsMeasurement * createCoordinateMeasurement(HitType *hit, const RecoHitInformation &recoHitInformation) const
You probably need a coordinate measurement on which you can base your measurements in createMeasureme...
genfit::TrackPoint * createTrackPointWithRecoHitInformation(genfit::AbsMeasurement *coordinateMeasurement, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const
Helper: Create a TrackPoint from a measurement with a given RecoHitInformation.
This is the Reconstruction Event-Data Model Track.
Abstract base class for different kinds of events.