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 26 of file CDCCKFState.h.
◆ CDCCKFState() [1/2]
constructor from the seed recoTrack and genfit trackState
Definition at line 29 of file CDCCKFState.h.
29 :
30 m_seed(seed), m_trackState(trackState) {}
◆ CDCCKFState() [2/2]
constructor from the CDC wireHit
Definition at line 33 of file CDCCKFState.h.
33: m_cdcWireHit(wireHit) {}
◆ getArcLength()
| double getArcLength |
( |
| ) |
const |
|
inline |
Return the arc-length along the tracjectory to the hit.
Definition at line 95 of file CDCCKFState.h.
96 {
97 return m_arcLength;
98 }
◆ getChi2()
Get state chi2.
Definition at line 131 of file CDCCKFState.h.
132 {
133 return m_chi2;
134 }
◆ getHitDistance()
| double getHitDistance |
( |
| ) |
const |
|
inline |
Return hit distance to the trajectory.
Definition at line 107 of file CDCCKFState.h.
108 {
109 return m_hitDistance;
110 }
◆ 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 50 of file CDCCKFState.h.
51 {
52 const RecoTrack* seed = getSeed();
53 return seed->getRelated<RecoTrack>(mcRecoTrackStoreArrayName);
54 }
◆ getReconstructedZ()
| double getReconstructedZ |
( |
| ) |
const |
|
inline |
Get state Z information.
Definition at line 143 of file CDCCKFState.h.
144 {
145 return m_reconstructedZ;
146 }
◆ getRLinfo()
Return right-left info (check if present first)
Definition at line 82 of file CDCCKFState.h.
83 {
84 B2ASSERT("LR info is not present yet", m_rl != TrackingUtilities::ERightLeft::c_Unknown);
85 return m_rl;
86 }
◆ getSeed()
Get RecoTrack seed corresponding to the state.
Definition at line 43 of file CDCCKFState.h.
44 {
45 B2ASSERT("State does not represent a seed", static_cast<bool>(m_seed));
46 return *m_seed;
47 }
◆ getTrackState()
| const genfit::MeasuredStateOnPlane & getTrackState |
( |
| ) |
const |
|
inline |
Get genfit track state (but first check if already present)
Definition at line 63 of file CDCCKFState.h.
64 {
65 B2ASSERT("State does not have a track state (yet)", static_cast<bool>(m_trackState));
66 return *m_trackState;
67 }
◆ getTrajectory()
Helper method to get trajectory from the trackState.
Definition at line 149 of file CDCCKFState.h.
150 {
151 const auto& trackState = getTrackState();
152 const ROOT::Math::XYZVector trackPosition(trackState.getPos());
153 const ROOT::Math::XYZVector trackMomentum(trackState.getMom());
154 return TrackingUtilities::CDCTrajectory3D(trackPosition, trackState.getTime(),
155 trackMomentum, trackState.getCharge());
156 }
◆ getWeight()
| double getWeight |
( |
| ) |
const |
|
inline |
Get state weight.
Definition at line 119 of file CDCCKFState.h.
120 {
121 return m_weight;
122 }
◆ getWireHit()
Get CDCWireHit corresponding to the state.
Definition at line 36 of file CDCCKFState.h.
37 {
38 B2ASSERT("State does not represent a wire hit", static_cast<bool>(m_cdcWireHit));
39 return *m_cdcWireHit;
40 }
◆ isSeed()
Returns true if the state corresponds to the seed track.
Definition at line 57 of file CDCCKFState.h.
58 {
59 return static_cast<bool>(m_seed);
60 }
◆ setArcLength()
| void setArcLength |
( |
double | arcLength | ) |
|
|
inline |
Set the arc-length along the tracjectory to the hit.
Definition at line 89 of file CDCCKFState.h.
90 {
91 m_arcLength = arcLength;
92 }
◆ setChi2()
| void setChi2 |
( |
double | chi2 | ) |
|
|
inline |
Set set chi2.
Definition at line 125 of file CDCCKFState.h.
126 {
127 m_chi2 = chi2;
128 }
◆ setHitDistance()
| void setHitDistance |
( |
double | hitDistance | ) |
|
|
inline |
Set hit distance to the trajectory.
Definition at line 101 of file CDCCKFState.h.
102 {
103 m_hitDistance = hitDistance;
104 }
◆ setReconstructedZ()
| void setReconstructedZ |
( |
double | reconstructedZ | ) |
|
|
inline |
Set state Z information.
Definition at line 137 of file CDCCKFState.h.
138 {
139 m_reconstructedZ = reconstructedZ;
140 }
◆ setRLinfo()
Set right-left info for the hit.
Definition at line 76 of file CDCCKFState.h.
◆ setTrackState()
| void setTrackState |
( |
const genfit::MeasuredStateOnPlane & | trackState | ) |
|
|
inline |
Store genfit Measured state on plane.
Definition at line 70 of file CDCCKFState.h.
71 {
72 m_trackState = trackState;
73 }
◆ setWeight()
| void setWeight |
( |
double | weight | ) |
|
|
inline |
Set state weight.
Definition at line 113 of file CDCCKFState.h.
114 {
115 m_weight = weight;
116 }
◆ m_arcLength
arc length along the trajectory to the hit
Definition at line 168 of file CDCCKFState.h.
◆ m_cdcWireHit
(optional) pointer to the wire hit
Definition at line 162 of file CDCCKFState.h.
◆ m_chi2
state chi2 (using genfit extrapolation)
Definition at line 177 of file CDCCKFState.h.
◆ m_hitDistance
distance from the trajectory to the hit
Definition at line 171 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 183 of file CDCCKFState.h.
◆ m_seed
(optional) pointer to the seed track
Definition at line 160 of file CDCCKFState.h.
◆ m_trackState
| std::optional<genfit::MeasuredStateOnPlane> m_trackState |
|
private |
(optional) genfit MeasuredStateOnPlane
Definition at line 165 of file CDCCKFState.h.
◆ m_weight
The documentation for this class was generated from the following file: