9#include <tracking/ckf/svd/entities/CKFToSVDResult.h>
11#include <tracking/trackingUtilities/utilities/ReversedRange.h>
13#include <tracking/dataobjects/RecoTrack.h>
14#include <tracking/spacePointCreation/SpacePoint.h>
15#include <svd/dataobjects/SVDCluster.h>
20 Super(path, path.back()->getMeasuredStateOnPlane())
22 B2ASSERT(
"Path should not be empty", not path.empty());
25 const RecoTrack* relatedSVDTrack = state->getRelatedSVDTrack();
27 B2ASSERT(
"There is a state with a different VXD track in it!",
m_relatedSVDRecoTrack == relatedSVDTrack);
36 unsigned int sortingParameter = 0;
37 for (
const SpacePoint* spacePoint : TrackingUtilities::reversedRange(
getHits())) {
39 for (
const SVDCluster& cluster : relatedClusters) {
40 recoTrack.
addSVDHit(&cluster, sortingParameter, Belle2::RecoHitInformation::c_CDCtoSVDCKF);
const std::vector< const SpacePoint * > & getHits() const
const RecoTrack * m_relatedSVDRecoTrack
The related SVD track, if we go along one of them (or a nullptr)
const RecoTrack * getRelatedSVDRecoTrack() const
Return the related SVD track, if we go along one of them.
void addToRecoTrack(RecoTrack &recoTrack) const
Called in the exporter findlet for adding this to a already created reco track.
CKFToSVDResult(const std::vector< TrackingUtilities::WithWeight< const CKFToSVDState * > > &path)
Constructor using a path.
CKFResult< RecoTrack, SpacePoint > Super
The parent class.
This is the Reconstruction Event-Data Model Track.
bool addSVDHit(const UsedSVDHit *svdHit, const unsigned int sortingParameter, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds a svd hit with the given information to the reco track.
Class for type safe access to objects that are referred to in relations.
The SVD Cluster class This class stores all information about reconstructed SVD clusters.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
A mixin class to attach a weight to an object.
Abstract base class for different kinds of events.