Define states for CKF algorithm, which can be seed track or CDC wire hit.
More...
#include <CDCCKFState.h>
Define states for CKF algorithm, which can be seed track or CDC wire hit.
Definition at line 24 of file CDCCKFState.h.
◆ CDCCKFState() [1/2]
constructor from the seed recoTrack and genfit trackState
Definition at line 27 of file CDCCKFState.h.
27 :
28 m_seed(seed), m_trackState(trackState) {}
◆ CDCCKFState() [2/2]
constructor from the CDC wireHit
Definition at line 31 of file CDCCKFState.h.
31: m_cdcWireHit(wireHit) {}
◆ getArcLength()
double getArcLength |
( |
| ) |
const |
|
inline |
Return the arc-length along the tracjectory to the hit.
Definition at line 93 of file CDCCKFState.h.
94 {
95 return m_arcLength;
96 }
◆ getChi2()
Get state chi2.
Definition at line 129 of file CDCCKFState.h.
130 {
131 return m_chi2;
132 }
◆ getHitDistance()
double getHitDistance |
( |
| ) |
const |
|
inline |
Return hit distance to the trajectory.
Definition at line 105 of file CDCCKFState.h.
106 {
107 return m_hitDistance;
108 }
◆ getMCRecoTrack()
const RecoTrack * getMCRecoTrack |
( |
const std::string & | mcRecoTrackStoreArrayName = "MCRecoTracks" | ) |
const |
|
inline |
Match seed to the MC track, return it. Works for seed-states only.
Definition at line 48 of file CDCCKFState.h.
49 {
50 const RecoTrack* seed = getSeed();
51 return seed->getRelated<RecoTrack>(mcRecoTrackStoreArrayName);
52 }
◆ getReconstructedZ()
double getReconstructedZ |
( |
| ) |
const |
|
inline |
Get state Z information.
Definition at line 141 of file CDCCKFState.h.
142 {
143 return m_reconstructedZ;
144 }
◆ getRLinfo()
Return right-left info (check if present first)
Definition at line 80 of file CDCCKFState.h.
81 {
82 B2ASSERT("LR info is not present yet", m_rl != TrackFindingCDC::ERightLeft::c_Unknown);
83 return m_rl;
84 }
◆ getSeed()
Get RecoTrack seed corresponding to the state.
Definition at line 41 of file CDCCKFState.h.
42 {
43 B2ASSERT("State does not represent a seed", static_cast<bool>(m_seed));
44 return *m_seed;
45 }
◆ getTrackState()
const genfit::MeasuredStateOnPlane & getTrackState |
( |
| ) |
const |
|
inline |
Get genfit track state (but first check if already present)
Definition at line 61 of file CDCCKFState.h.
62 {
63 B2ASSERT("State does not have a track state (yet)", static_cast<bool>(m_trackState));
64 return *m_trackState;
65 }
◆ getTrajectory()
Helper method to get trajectory from the trackState.
Definition at line 147 of file CDCCKFState.h.
148 {
149 const auto& trackState = getTrackState();
150 const TrackFindingCDC::Vector3D trackPosition(trackState.getPos());
151 const TrackFindingCDC::Vector3D trackMomentum(trackState.getMom());
152 return TrackFindingCDC::CDCTrajectory3D(trackPosition, trackState.getTime(),
153 trackMomentum, trackState.getCharge());
154 }
◆ getWeight()
double getWeight |
( |
| ) |
const |
|
inline |
Get state weight.
Definition at line 117 of file CDCCKFState.h.
118 {
119 return m_weight;
120 }
◆ getWireHit()
Get CDCWireHit corresponding to the state.
Definition at line 34 of file CDCCKFState.h.
35 {
36 B2ASSERT("State does not represent a wire hit", static_cast<bool>(m_cdcWireHit));
37 return *m_cdcWireHit;
38 }
◆ isSeed()
Returns true if the state corresponds to the seed track.
Definition at line 55 of file CDCCKFState.h.
56 {
57 return static_cast<bool>(m_seed);
58 }
◆ setArcLength()
void setArcLength |
( |
double | arcLength | ) |
|
|
inline |
Set the arc-length along the tracjectory to the hit.
Definition at line 87 of file CDCCKFState.h.
88 {
89 m_arcLength = arcLength;
90 }
◆ setChi2()
void setChi2 |
( |
double | chi2 | ) |
|
|
inline |
Set set chi2.
Definition at line 123 of file CDCCKFState.h.
124 {
125 m_chi2 = chi2;
126 }
◆ setHitDistance()
void setHitDistance |
( |
double | hitDistance | ) |
|
|
inline |
Set hit distance to the trajectory.
Definition at line 99 of file CDCCKFState.h.
100 {
101 m_hitDistance = hitDistance;
102 }
◆ setReconstructedZ()
void setReconstructedZ |
( |
double | reconstructedZ | ) |
|
|
inline |
Set state Z information.
Definition at line 135 of file CDCCKFState.h.
136 {
137 m_reconstructedZ = reconstructedZ;
138 }
◆ setRLinfo()
Set right-left info for the hit.
Definition at line 74 of file CDCCKFState.h.
◆ setTrackState()
void setTrackState |
( |
const genfit::MeasuredStateOnPlane & | trackState | ) |
|
|
inline |
Store genfit Measured state on plane.
Definition at line 68 of file CDCCKFState.h.
69 {
70 m_trackState = trackState;
71 }
◆ setWeight()
void setWeight |
( |
double | weight | ) |
|
|
inline |
Set state weight.
Definition at line 111 of file CDCCKFState.h.
112 {
113 m_weight = weight;
114 }
◆ m_arcLength
arc length along the trajectory to the hit
Definition at line 166 of file CDCCKFState.h.
◆ m_cdcWireHit
(optional) pointer to the wire hit
Definition at line 160 of file CDCCKFState.h.
◆ m_chi2
state chi2 (using genfit extrapolation)
Definition at line 175 of file CDCCKFState.h.
◆ m_hitDistance
distance from the trajectory to the hit
Definition at line 169 of file CDCCKFState.h.
◆ m_reconstructedZ
double m_reconstructedZ = 0 |
|
private |
◆ m_rl
Store if the track is on the right or left side of the hit.
Definition at line 181 of file CDCCKFState.h.
◆ m_seed
(optional) pointer to the seed track
Definition at line 158 of file CDCCKFState.h.
◆ m_trackState
std::optional<genfit::MeasuredStateOnPlane> m_trackState |
|
private |
(optional) genfit MeasuredStateOnPlane
Definition at line 163 of file CDCCKFState.h.
◆ m_weight
The documentation for this class was generated from the following file: