Belle II Software development
CoordinateMeasurementCreator< HitType, detector > Class Template Reference

A measurement creator for normal coordinate measurements out of cdc/svd/pxd hits. More...

#include <CoordinateMeasurementCreator.h>

Inheritance diagram for CoordinateMeasurementCreator< HitType, detector >:
BaseMeasurementCreatorFromHit< HitType, detector > BaseMeasurementCreator

Public Member Functions

 CoordinateMeasurementCreator (const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
 Constructor.
 
std::vector< genfit::TrackPoint * > createMeasurementPoints (HitType *hit, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const override
 Create measurements based on coordinate measurements.
 
virtual ~CoordinateMeasurementCreator ()
 Destructor.
 
virtual void setParameter (const std::string &parameterName, const std::string &parameterValue)
 Use this to set the parameters of the creator.
 

Protected Member Functions

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.
 

Detailed Description

template<class HitType, Const::EDetector detector>
class Belle2::CoordinateMeasurementCreator< HitType, detector >

A measurement creator for normal coordinate measurements out of cdc/svd/pxd hits.

Definition at line 22 of file CoordinateMeasurementCreator.h.

Constructor & Destructor Documentation

◆ CoordinateMeasurementCreator()

template<class HitType, Const::EDetector detector>
CoordinateMeasurementCreator ( const genfit::MeasurementFactory< genfit::AbsMeasurement > & measurementFactory)
explicit

Constructor.

Definition at line 13 of file CoordinateMeasurementCreator.cc.

14 :
BaseMeasurementCreatorFromHit(const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
Creates a MeasurementCreator which handles the creation of measurements of a given kind.
A measurement creator for normal coordinate measurements out of cdc/svd/pxd hits.

◆ ~CoordinateMeasurementCreator()

template<class HitType, Const::EDetector detector>
virtual ~CoordinateMeasurementCreator ( )
inlinevirtual

Destructor.

Definition at line 31 of file CoordinateMeasurementCreator.h.

31{ }

Member Function Documentation

◆ createCoordinateMeasurement()

template<class HitType, Const::EDetector detector>
genfit::AbsMeasurement * createCoordinateMeasurement ( HitType * hit,
const RecoHitInformation & recoHitInformation ) const
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.

Parameters
hit
recoHitInformation
Returns
a coordinate AbsMeasurement as pointer.

Definition at line 21 of file BaseMeasurementCreatorFromHit.cc.

23{
24 // No one is using the trackCandHit (neither in SVDRecoHit nor in PXDRecoHit). So we do not provide any here!
26 nullptr);
27
29}
Base Class to create measurements based on a given hit related to the RecoTrack.
const genfit::MeasurementFactory< genfit::AbsMeasurement > & m_measurementFactory
A reference to the prefilled measurement factory.

◆ createMeasurementPoints()

template<class HitType, Const::EDetector detector>
std::vector< genfit::TrackPoint * > createMeasurementPoints ( HitType * hit,
RecoTrack & recoTrack,
const RecoHitInformation & recoHitInformation ) const
overridevirtual

Create measurements based on coordinate measurements.

Implements BaseMeasurementCreatorFromHit< HitType, detector >.

Definition at line 18 of file CoordinateMeasurementCreator.cc.

21{
23
26
27 return {trackPoint};
28}
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.

◆ createTrackPointWithRecoHitInformation()

template<class HitType, Const::EDetector detector>
genfit::TrackPoint * createTrackPointWithRecoHitInformation ( genfit::AbsMeasurement * coordinateMeasurement,
RecoTrack & recoTrack,
const RecoHitInformation & recoHitInformation ) const
protectedinherited

Helper: Create a TrackPoint from a measurement with a given RecoHitInformation.

Definition at line 32 of file BaseMeasurementCreatorFromHit.cc.

◆ setParameter()

virtual void setParameter ( const std::string & parameterName,
const std::string & parameterValue )
inlinevirtualinherited

Member Data Documentation

◆ m_measurementFactory

template<class HitType, Const::EDetector detector>
const genfit::MeasurementFactory<genfit::AbsMeasurement>& m_measurementFactory
privateinherited

A reference to the prefilled measurement factory.

Definition at line 72 of file BaseMeasurementCreatorFromHit.h.


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