Belle II Software development
|
Baseclass to create measurement track points based on the coordinate measurements. More...
#include <BaseMeasurementCreatorFromCoordinateMeasurement.h>
Public Member Functions | |
BaseMeasurementCreatorFromCoordinateMeasurement (const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory) | |
Needs the genfit MeasurementFactory for this. | |
std::vector< genfit::TrackPoint * > | createMeasurementPoints (HitType *hit, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const override |
Create measurements based on coordinate measurements. | |
virtual | ~BaseMeasurementCreatorFromCoordinateMeasurement () |
Destructor. | |
virtual void | setParameter (const std::string ¶meterName, const std::string ¶meterValue) |
Use this to set the parameters of the creator. | |
Protected Member Functions | |
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. | |
genfit::AbsMeasurement * | createCoordinateMeasurement (HitType *hit, const RecoHitInformation &recoHitInformation) const |
You probably need a coordinate measurement on which you can base your measurements in createMeasurements. | |
genfit::TrackPoint * | createTrackPointWithRecoHitInformation (genfit::AbsMeasurement *coordinateMeasurement, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const |
Helper: Create a TrackPoint from a measurement with a given RecoHitInformation. | |
Private Attributes | |
const genfit::MeasurementFactory< genfit::AbsMeasurement > & | m_measurementFactory |
A reference to the prefilled measurement factory. | |
Baseclass to create measurement track points based on the coordinate measurements.
Use this class as a base class as in VXDMomentumEstimationMeasurementCreator. All measurements that you create by overloading the createMeasurementFromCoordinateMeasurement function get their own TrackPoint.
Definition at line 24 of file BaseMeasurementCreatorFromCoordinateMeasurement.h.
|
inlineexplicit |
Needs the genfit MeasurementFactory for this.
Definition at line 28 of file BaseMeasurementCreatorFromCoordinateMeasurement.h.
|
inlinevirtual |
|
protectedinherited |
You probably need a coordinate measurement on which you can base your measurements in createMeasurements.
This function uses the measurementFactory to create one. Please be aware that this creates two new objects on the heap: the measurement and the track point. If you do not plan to use those two in a track, please delete them! The track point can be deleted by accessing the measurements GetTrackPoints function.
hit | |
recoHitInformation |
Definition at line 21 of file BaseMeasurementCreatorFromHit.cc.
|
protectedpure virtual |
Overload this method if you want to create measurements from coordinate measurements.
You have to delete the content of the coordinateMeasurement if you do not plan to use them. This method gets called in the createMeasurements method.
hit | |
recoTrack | |
recoHitInformation | |
coordinateMeasurement |
Implemented in VXDMomentumEstimationMeasurementCreator< HitType, detector >.
|
inlineoverridevirtual |
Create measurements based on coordinate measurements.
Implements BaseMeasurementCreatorFromHit< HitType, detector >.
Definition at line 33 of file BaseMeasurementCreatorFromCoordinateMeasurement.h.
|
protectedinherited |
Helper: Create a TrackPoint from a measurement with a given RecoHitInformation.
Definition at line 32 of file BaseMeasurementCreatorFromHit.cc.
|
inlinevirtualinherited |
Use this to set the parameters of the creator.
Does nothing per default.
Reimplemented in VXDMomentumEstimationMeasurementCreator< HitType, detector >.
Definition at line 47 of file BaseMeasurementCreator.h.
|
privateinherited |
A reference to the prefilled measurement factory.
Definition at line 72 of file BaseMeasurementCreatorFromHit.h.