Belle II Software development
BaseMeasurementCreator Class Referenceabstract

Base class for all measurement creators. More...

#include <BaseMeasurementCreator.h>

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

Public Member Functions

 BaseMeasurementCreator ()
 Creates a MeasurementCreator which handles the creation of track points with measurements of a given kind.
 
virtual ~BaseMeasurementCreator ()
 Destructor.
 
virtual std::vector< genfit::TrackPoint * > createMeasurementPoints (RecoTrack &recoTrack) const =0
 Overload this method to create track points with measurements.
 
virtual void setParameter (const std::string &parameterName, const std::string &parameterValue)
 Use this to set the parameters of the creator.
 

Detailed Description

Base class for all measurement creators.

These creators are used for creating (possible single elemented) lists of TrackPoint-pointers for a given reco track. It is executed by the measurement creator factories used in the MeasurementCreatorModule. Examples for the TrackPoints are coordinate measurements with reconstructed hits or momentum estimations from dEdX in the VXD. For each of these TrackPpoint-Types you can implement a single MeasurementCreator.

Definition at line 31 of file BaseMeasurementCreator.h.

Constructor & Destructor Documentation

◆ BaseMeasurementCreator()

Creates a MeasurementCreator which handles the creation of track points with measurements of a given kind.

Definition at line 34 of file BaseMeasurementCreator.h.

34{}

◆ ~BaseMeasurementCreator()

virtual ~BaseMeasurementCreator ( )
inlinevirtual

Destructor.

Definition at line 37 of file BaseMeasurementCreator.h.

37{ }

Member Function Documentation

◆ createMeasurementPoints()

virtual std::vector< genfit::TrackPoint * > createMeasurementPoints ( RecoTrack recoTrack) const
pure virtual

Overload this method to create track points with measurements.

The ordering of the track points in this list has two meanings:

  1. Genfit will process the first hit first.
  2. Only the first hit will be related to the reco hit information. This means, if this track point is downvoted by genfit, the hit will also be marked.

Implemented in BaseMeasurementCreatorFromHit< HitType, detector >.

◆ setParameter()

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

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.

48 {
49 B2FATAL("A parameter with the name " << parameterName << " and the value " << parameterValue << " could not be set.");
50 }

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