Belle II Software development
CKFToPXDState.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9#include <tracking/ckf/general/entities/CKFState.h>
10#include <pxd/reconstruction/PXDRecoHit.h>
11#include <genfit/SharedPlanePtr.h>
12
13namespace genfit {
14 class MeasuredStateOnPlane;
15}
16
17namespace Belle2 {
22 class RecoTrack;
23 class SpacePoint;
24 class PXDRecoHit;
25
27 class CKFToPXDState : public CKFState<RecoTrack, SpacePoint> {
28 public:
30 explicit CKFToPXDState(const SpacePoint* hit);
31
33 explicit CKFToPXDState(const RecoTrack* seed, bool reversed = false);
34
36 unsigned int getGeometricalLayer() const;
37
39 genfit::SharedPlanePtr getPlane(const genfit::MeasuredStateOnPlane& state) const;
40
42 const PXDRecoHit& getRecoHit() const;
43
45 const std::vector<PXDRecoHit>& getRecoHits() const;
46
48 const struct stateCache& getStateCache() const {
49 return m_stateCache;
50 }
51
52 private:
54 std::vector<PXDRecoHit> m_recoHits;
55 };
57}
State object to store one step in the CKF algorithm together with its parent (the state before),...
Definition: CKFState.h:29
stateCache m_stateCache
Cache the most important data of this state for better runtime performance.
Definition: CKFState.h:154
Specialized CKF State for extrapolating into the PXD.
Definition: CKFToPXDState.h:27
const struct stateCache & getStateCache() const
Get the cached data of this state.
Definition: CKFToPXDState.h:48
unsigned int getGeometricalLayer() const
Extract the real layer this state sits on.
const PXDRecoHit & getRecoHit() const
Helper function for getting the already created reco hit (runtime reasons)
genfit::SharedPlanePtr getPlane(const genfit::MeasuredStateOnPlane &state) const
Return the plane of the first PXD cluster.
const std::vector< PXDRecoHit > & getRecoHits() const
Helper function for getting the already created reco hits (runtime reasons)
std::vector< PXDRecoHit > m_recoHits
Precache the PXDRecoHits for runtime performance reasons.
Definition: CKFToPXDState.h:54
PXDRecoHit - an extended form of PXDCluster containing geometry information.
Definition: PXDRecoHit.h:49
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:42
Abstract base class for different kinds of events.