Belle II Software  release-05-01-25
CKFToPXDState.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 <pxd/reconstruction/PXDRecoHit.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 PXDRecoHit;
27 
29  class CKFToPXDState : public CKFState<RecoTrack, SpacePoint> {
30  public:
32  explicit CKFToPXDState(const SpacePoint* hit);
33 
35  explicit CKFToPXDState(const RecoTrack* seed, bool reversed = false);
36 
38  unsigned int getGeometricalLayer() const;
39 
42 
44  const PXDRecoHit& getRecoHit() const;
45 
47  const std::vector<PXDRecoHit>& getRecoHits() const;
48 
50  const struct stateCache& getStateCache() const {
51  return m_stateCache;
52  }
53 
54  private:
56  std::vector<PXDRecoHit> m_recoHits;
57  };
59 }
genfit::SharedPlanePtr
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
Definition: SharedPlanePtr.h:40
genfit::MeasuredStateOnPlane
#StateOnPlane with additional covariance matrix.
Definition: MeasuredStateOnPlane.h:39
Belle2::CKFToPXDState::m_recoHits
std::vector< PXDRecoHit > m_recoHits
Precache the PXDRecoHits for runtime performance reasons.
Definition: CKFToPXDState.h:56
Belle2::CKFToPXDState
Specialized CKF State for extrapolating into the PXD.
Definition: CKFToPXDState.h:29
Belle2::CKFToPXDState::getGeometricalLayer
unsigned int getGeometricalLayer() const
Extract the real layer this state sits on.
Definition: CKFToPXDState.cc:33
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::PXDRecoHit
PXDRecoHit - an extended form of PXDCluster containing geometry information.
Definition: PXDRecoHit.h:61
Belle2::CKFState
State object to store one step in the CKF algorithm together with its parent (the state before),...
Definition: CKFState.h:39
Belle2::CKFToPXDState::getRecoHit
const PXDRecoHit & getRecoHit() const
Helper function for getting the already created reco hit (runtime reasons)
Definition: CKFToPXDState.cc:50
Belle2::CKFToPXDState::getPlane
genfit::SharedPlanePtr getPlane(const genfit::MeasuredStateOnPlane &state) const
Return the plane of the first PXD cluster.
Definition: CKFToPXDState.cc:44
Belle2::CKFToPXDState::CKFToPXDState
CKFToPXDState(const SpacePoint *hit)
When constructed by a hit, set the reco hit.
Definition: CKFToPXDState.cc:62
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::CKFToPXDState::getStateCache
const struct stateCache & getStateCache() const
Get the cached data of this state.
Definition: CKFToPXDState.h:50
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CKFToPXDState::getRecoHits
const std::vector< PXDRecoHit > & getRecoHits() const
Helper function for getting the already created reco hits (runtime reasons)
Definition: CKFToPXDState.cc:56