Belle II Software  release-08-01-10
CDCMeasurementCreatorFactory.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 
13 namespace Belle2 {
20  MeasurementCreatorFactory<CDCBaseMeasurementCreator> {
21 
22  public:
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:
41  };
43 }
Base Class to create measurements based on a given hit related to the RecoTrack.
Add all measurement creators related to CDC hits.
CDCBaseMeasurementCreator * createMeasurementCreatorFromName(const std::string &creatorName) const override
Only a simple reco hit creator is implemented in the moment.
CDCMeasurementCreatorFactory(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.
This is the base class for all MeasurementCreatorFactories used in the MeasurementCreatorModule.
CoordinateMeasurementCreator< RecoHitInformation::UsedCDCHit, Const::CDC > CDCCoordinateMeasurementCreator
Needed for templating.
Abstract base class for different kinds of events.