9#include <tracking/ckf/svd/entities/CKFToSVDState.h>
10#include <tracking/dataobjects/RecoTrack.h>
11#include <tracking/spacePointCreation/SpacePoint.h>
12#include <svd/dataobjects/SVDCluster.h>
14#include <genfit/MeasuredStateOnPlane.h>
45 return recoHit.constructPlane(state);
50 B2ASSERT(
"You are asking for the reco hit, although no hit is present.", not
m_recoHits.empty());
56 B2ASSERT(
"You are asking for reco hits, although no hit is present.", not
m_recoHits.empty());
64 m_recoHits.emplace_back(&svdCluster);
71 m_stateCache.sensorCenterPhi = sensorInfo.pointToGlobal(ROOT::Math::XYZVector(0., 0., 0.),
true).Phi();
74 m_stateCache.localNormalizedu = hit->getNormalizedLocalU();
75 m_stateCache.localNormalizedv = hit->getNormalizedLocalV();
86 B2FATAL(
"You are resetting the related track to a different value!");
const genfit::MeasuredStateOnPlane & getMeasuredStateOnPlane() const
const Hit * getHit() const
void setMeasuredStateOnPlane(const genfit::MeasuredStateOnPlane &mSoP)
const RecoTrack * getRelatedSVDTrack() const
Return the related SVD track, if we go along one of them (or a nullptr)
unsigned int getGeometricalLayer() const
Extract the real layer this state sits on.
genfit::SharedPlanePtr getPlane(const genfit::MeasuredStateOnPlane &state) const
Return the plane of the first SVD cluster.
std::vector< SVDRecoHit > m_recoHits
Precache the PXDRecoHits for runtime performance reasons.
const std::vector< SVDRecoHit > & getRecoHits() const
Helper function for getting the already created reco hits (runtime reasons)
const SVDRecoHit & getRecoHit() const
Helper function for getting the already created reco hit (runtime reasons)
void setRelatedSVDTrack(const RecoTrack *relatedSVDTrack)
Set the related SVD track, if we go along one of them (or a nullptr)
CKFToSVDState(const SpacePoint *hit)
When constructed by a hit, set the reco hit.
const RecoTrack * m_relatedSVDTrack
The related SVD track, if we go along one of them (or a nullptr)
This is the Reconstruction Event-Data Model Track.
The SVD Cluster class This class stores all information about reconstructed SVD clusters.
SVDRecoHit - an extended form of SVDHit containing geometry information.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
VxdID getVxdID() const
Return the VxdID of the sensor on which the the cluster of the SpacePoint lives.
static GeoCache & getInstance()
Return a reference to the singleton instance.
Base class to provide Sensor Information for PXD and SVD.
baseType getLayerNumber() const
Get the layer id.
Abstract base class for different kinds of events.