Belle II Software  release-05-01-25
CKFToSVDState.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun, Christian Wessel *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <tracking/ckf/general/entities/CKFState.h>
12 #include <svd/reconstruction/SVDRecoHit.h>
13 #include <genfit/SharedPlanePtr.h>
14 
15 namespace genfit {
16  class MeasuredStateOnPlane;
17 }
18 
19 namespace Belle2 {
24  class RecoTrack;
25  class SpacePoint;
26  class SVDRecoHit;
27 
29  class CKFToSVDState : public CKFState<RecoTrack, SpacePoint> {
30  public:
32  explicit CKFToSVDState(const SpacePoint* hit);
33 
35  explicit CKFToSVDState(const RecoTrack* seed, bool reversed = false);
36 
38  unsigned int getGeometricalLayer() const;
39 
42 
44  const SVDRecoHit& getRecoHit() const;
45 
47  const std::vector<SVDRecoHit>& getRecoHits() const;
48 
50  const RecoTrack* getRelatedSVDTrack() const;
51 
53  void setRelatedSVDTrack(const RecoTrack* relatedSVDTrack);
54 
56  const struct stateCache& getStateCache() const {
57  return m_stateCache;
58  }
59 
60  private:
62  std::vector<SVDRecoHit> m_recoHits;
63 
65  const RecoTrack* m_relatedSVDTrack = nullptr;
66  };
68 }
Belle2::SVDRecoHit
SVDRecoHit - an extended form of SVDHit containing geometry information.
Definition: SVDRecoHit.h:57
genfit::SharedPlanePtr
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
Definition: SharedPlanePtr.h:40
Belle2::CKFToSVDState::setRelatedSVDTrack
void setRelatedSVDTrack(const RecoTrack *relatedSVDTrack)
Set the related SVD track, if we go along one of them (or a nullptr)
Definition: CKFToSVDState.cc:87
genfit::MeasuredStateOnPlane
#StateOnPlane with additional covariance matrix.
Definition: MeasuredStateOnPlane.h:39
Belle2::CKFToSVDState::CKFToSVDState
CKFToSVDState(const SpacePoint *hit)
When constructed by a hit, set the reco hit.
Definition: CKFToSVDState.cc:62
Belle2::CKFToSVDState::m_relatedSVDTrack
const RecoTrack * m_relatedSVDTrack
The related SVD track, if we go along one of them (or a nullptr)
Definition: CKFToSVDState.h:65
Belle2::CKFToSVDState::getRecoHits
const std::vector< SVDRecoHit > & getRecoHits() const
Helper function for getting the already created reco hits (runtime reasons)
Definition: CKFToSVDState.cc:56
genfit
Defines for I/O streams used for error and debug printing.
Definition: AlignablePXDRecoHit.h:19
Belle2::CKFState< RecoTrack, SpacePoint >::m_stateCache
stateCache m_stateCache
Cache the most important data of this state for better runtime performance.
Definition: CKFState.h:158
Belle2::CKFState
State object to store one step in the CKF algorithm together with its parent (the state before),...
Definition: CKFState.h:39
Belle2::SpacePoint
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:52
Belle2::RecoTrack
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:78
Belle2::CKFToSVDState::getPlane
genfit::SharedPlanePtr getPlane(const genfit::MeasuredStateOnPlane &state) const
Return the plane of the first SVD cluster.
Definition: CKFToSVDState.cc:44
Belle2::CKFToSVDState::getGeometricalLayer
unsigned int getGeometricalLayer() const
Extract the real layer this state sits on.
Definition: CKFToSVDState.cc:33
Belle2::CKFToSVDState::getRelatedSVDTrack
const RecoTrack * getRelatedSVDTrack() const
Return the related SVD track, if we go along one of them (or a nullptr)
Definition: CKFToSVDState.cc:82
Belle2::CKFToSVDState::getRecoHit
const SVDRecoHit & getRecoHit() const
Helper function for getting the already created reco hit (runtime reasons)
Definition: CKFToSVDState.cc:50
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CKFToSVDState::m_recoHits
std::vector< SVDRecoHit > m_recoHits
Precache the PXDRecoHits for runtime performance reasons.
Definition: CKFToSVDState.h:62
Belle2::CKFToSVDState::getStateCache
const struct stateCache & getStateCache() const
Get the cached data of this state.
Definition: CKFToSVDState.h:56
Belle2::CKFToSVDState
Specialized CKF State for extrapolating into the SVD.
Definition: CKFToSVDState.h:29