Belle II Software  release-08-01-10
PXDMeasurementCreatorFactory.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 
14 namespace Belle2 {
21  MeasurementCreatorFactory<PXDBaseMeasurementCreator> {
22 
23  public:
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:
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 PXD hits.
PXDMeasurementCreatorFactory(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.
PXDBaseMeasurementCreator * createMeasurementCreatorFromName(const std::string &creatorName) const override
Only a simple reco hit creator and the momentum estimation is implemented in the moment.
VXDMomentumEstimationMeasurementCreator< RecoHitInformation::UsedPXDHit, Const::PXD > PXDMomentumMeasurementCreator
Momentum measurement creator for the PXD.
CoordinateMeasurementCreator< RecoHitInformation::UsedPXDHit, Const::PXD > PXDCoordinateMeasurementCreator
Hit to reco hit measurement creator for the PXD.
Abstract base class for different kinds of events.