Belle II Software development
BKLMMeasurementCreatorFactory.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 <tracking/trackFitting/measurementCreator/factories/MeasurementCreatorFactory.h>
11#include <tracking/trackFitting/measurementCreator/creators/CoordinateMeasurementCreator.h>
12
13namespace Belle2 {
20 MeasurementCreatorFactory<BKLMBaseMeasurementCreator> {
21
22 public:
24 explicit BKLMMeasurementCreatorFactory(const genfit::MeasurementFactory<genfit::AbsMeasurement>& measurementFactory) :
26 m_measurementFactory(measurementFactory) {}
27
30 const std::string& creatorName) const override
31 {
32 if (creatorName == "RecoHitCreator") {
34 }
35
36 return nullptr;
37 }
38 private:
40 const genfit::MeasurementFactory<genfit::AbsMeasurement>& m_measurementFactory;
41 };
43}
Add all measurement creators related to BKLM hits.
BKLMMeasurementCreatorFactory(const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
Initialize with a measurement factory.
const genfit::MeasurementFactory< genfit::AbsMeasurement > & m_measurementFactory
A reference to the prefilled measurement factory.
BKLMBaseMeasurementCreator * createMeasurementCreatorFromName(const std::string &creatorName) const override
Only a simple reco hit creator is implemented in the moment.
Base Class to create measurements based on a given hit related to the RecoTrack.
This is the base class for all MeasurementCreatorFactories used in the MeasurementCreatorModule.
CoordinateMeasurementCreator< RecoHitInformation::UsedBKLMHit, Const::BKLM > BKLMCoordinateMeasurementCreator
Hit to reco hit measurement creator for the BKLM.
Abstract base class for different kinds of events.