8 #include <tracking/trackFitting/measurementCreator/creators/BaseMeasurementCreatorFromHit.h>
9 #include <tracking/dataobjects/RecoTrack.h>
10 #include <genfit/TrackPoint.h>
11 #include <genfit/WireTrackCandHit.h>
15 template <
class HitType, Const::EDetector detector>
20 template <
class HitType, Const::EDetector detector>
25 genfit::AbsMeasurement* coordinateMeasurement = m_measurementFactory.createOne(detector, hit->getArrayIndex(),
28 return coordinateMeasurement;
31 template <
class HitType, Const::EDetector detector>
40 return coordinateTrackPoint;
55 signed char rightLeftGenfitInformation = 0;
57 if (rightLeftHitInformation == RecoHitInformation::RightLeftInformation::c_left) {
58 rightLeftGenfitInformation = -1;
59 }
else if (rightLeftHitInformation == RecoHitInformation::RightLeftInformation::c_right) {
60 rightLeftGenfitInformation = 1;
66 rightLeftGenfitInformation));
73 return coordinateMeasurement;
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...
BaseMeasurementCreatorFromHit(const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
Creates a MeasurementCreator which handles the creation of measurements of a given kind.
const genfit::MeasurementFactory< genfit::AbsMeasurement > & m_measurementFactory
A reference to the prefilled measurement factory.
genfit::TrackPoint * createTrackPointWithRecoHitInformation(genfit::AbsMeasurement *coordinateMeasurement, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const
Helper: Create a TrackPoint from a measurement with a given RecoHitInformation.
Base class for all measurement creators.
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
static genfit::Track & getGenfitTrack(RecoTrack &recoTrack)
Give access to the RecoTrack's genfit::Track.
This is the Reconstruction Event-Data Model Track.
int getArrayIndex() const
Returns this object's array index (in StoreArray), or -1 if not found.
Contains the measurement and covariance in raw detector coordinates.
measurement_T * createOne(int detID, int index, const TrackCandHit *hit) const
Create a Measurement.
Object containing AbsMeasurement and AbsFitterInfo objects.
Hit object for use in TrackCand.
Abstract base class for different kinds of events.