Belle II Software development
CoordinateMeasurementCreator.cc
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#include <tracking/trackFitting/measurementCreator/creators/CoordinateMeasurementCreator.h>
9
10using namespace Belle2;
11
12template <class HitType, Const::EDetector detector>
14 genfit::MeasurementFactory<genfit::AbsMeasurement>& measurementFactory) :
15 BaseMeasurementCreatorFromHit<HitType, detector>(measurementFactory) {}
16
17template <class HitType, Const::EDetector detector>
19 RecoTrack& recoTrack,
20 const RecoHitInformation& recoHitInformation) const
21{
22 genfit::AbsMeasurement* coordinateMeasurement = this->createCoordinateMeasurement(hit, recoHitInformation);
23
24 genfit::TrackPoint* trackPoint =
25 this->createTrackPointWithRecoHitInformation(coordinateMeasurement, recoTrack, recoHitInformation);
26
27 return {trackPoint};
28}
29
30
Base Class to create measurements based on a given hit related to the RecoTrack.
A measurement creator for normal coordinate measurements out of cdc/svd/pxd hits.
std::vector< genfit::TrackPoint * > createMeasurementPoints(HitType *hit, RecoTrack &recoTrack, const RecoHitInformation &recoHitInformation) const override
Create measurements based on coordinate measurements.
CoordinateMeasurementCreator(const genfit::MeasurementFactory< genfit::AbsMeasurement > &measurementFactory)
Constructor.
This class stores additional information to every CDC/SVD/PXD hit stored in a RecoTrack.
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
Abstract base class for different kinds of events.