8 #include <tracking/ckf/svd/filters/results/RelationSVDResultVarSet.h>
10 #include <tracking/dataobjects/RecoTrack.h>
13 using namespace TrackFindingCDC;
17 const RecoTrack* svdTrack = result->getRelatedSVDRecoTrack();
18 B2ASSERT(
"Should have a related SVD track at this stage;", svdTrack);
21 B2ASSERT(
"SVD hits must be present", not svdHits.empty());
27 const auto& firstSVDHitIterator = std::max_element(svdHits.begin(), svdHits.end(), sortBySVDLayer);
28 var<named(
"svd_highest_layer")>() = (*firstSVDHitIterator)->getSensorID().getLayerNumber();
30 const RecoTrack* relatedSVDRecoTrack = result->getRelatedSVDRecoTrack();
31 if (relatedSVDRecoTrack) {
32 var<named(
"number_of_hits_related_svd_track")>() = relatedSVDRecoTrack->
getNumberOfSVDHits();
34 var<named(
"number_of_hits_related_svd_track")>() = -1;
Specialized CKF Result for extrapolating into the SVD.
This is the Reconstruction Event-Data Model Track.
std::vector< Belle2::RecoTrack::UsedSVDHit * > getSVDHitList() const
Return an unsorted list of svd hits.
unsigned int getNumberOfSVDHits() const
Return the number of svd hits.
bool extract(const CKFToSVDResult *object) final
Generate and assign the variables from the object.
The SVD Cluster class This class stores all information about reconstructed SVD clusters.
VxdID getSensorID() const
Get the sensor ID.
baseType getLayerNumber() const
Get the layer id.
Abstract base class for different kinds of events.