Belle II Software development
SVDMeasurementCreatorFactory.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#include <tracking/trackFitting/measurementCreator/creators/VXDMomentumEstimationMeasurementCreator.h>
13
14namespace Belle2 {
21 MeasurementCreatorFactory<SVDBaseMeasurementCreator> {
22
23 public:
25 explicit SVDMeasurementCreatorFactory(const genfit::MeasurementFactory<genfit::AbsMeasurement>& measurementFactory) :
27 m_measurementFactory(measurementFactory) {}
28
31 const std::string& creatorName) const override
32 {
33 if (creatorName == "RecoHitCreator") {
35 } else if (creatorName == "MomentumEstimationCreator") {
37 }
38
39 return nullptr;
40 }
41 private:
43 const genfit::MeasurementFactory<genfit::AbsMeasurement>& m_measurementFactory;
44 };
46}
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.
Add all measurement creators related to SVD hits.
SVDMeasurementCreatorFactory(const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
Initialize with a measurement factory.
SVDBaseMeasurementCreator * createMeasurementCreatorFromName(const std::string &creatorName) const override
Only a simple reco hit creator and the momentum estimation is implemented in the moment.
const genfit::MeasurementFactory< genfit::AbsMeasurement > & m_measurementFactory
A reference to the prefilled measurement factory.
CoordinateMeasurementCreator< RecoHitInformation::UsedSVDHit, Const::SVD > SVDCoordinateMeasurementCreator
Hit to reco hit measurement creator for the SVD.
VXDMomentumEstimationMeasurementCreator< RecoHitInformation::UsedSVDHit, Const::SVD > SVDMomentumMeasurementCreator
Momentum measurement creator for the SVD.
Abstract base class for different kinds of events.