Belle II Software development
BaseMeasurementCreator.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <framework/logging/Logger.h>
11#include <vector>
12
13namespace genfit {
14 class TrackPoint;
15}
16
17namespace Belle2 {
22 class RecoTrack;
23
32 public:
35
38
44 virtual std::vector<genfit::TrackPoint*> createMeasurementPoints(RecoTrack& recoTrack) const = 0;
45
47 virtual void setParameter(const std::string& parameterName, const std::string& parameterValue)
48 {
49 B2FATAL("A parameter with the name " << parameterName << " and the value " << parameterValue << " could not be set.");
50 }
51 };
53}
Base class for all measurement creators.
BaseMeasurementCreator()
Creates a MeasurementCreator which handles the creation of track points with measurements of a given ...
virtual void setParameter(const std::string &parameterName, const std::string &parameterValue)
Use this to set the parameters of the creator.
virtual std::vector< genfit::TrackPoint * > createMeasurementPoints(RecoTrack &recoTrack) const =0
Overload this method to create track points with measurements.
virtual ~BaseMeasurementCreator()
Destructor.
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
Abstract base class for different kinds of events.