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 25 of file CDCCKFState.h.
◆ CDCCKFState() [1/2]
constructor from the seed recoTrack and genfit trackState
Definition at line 28 of file CDCCKFState.h.
28 :
std::optional< const RecoTrack * > m_seed
(optional) pointer to the seed track
std::optional< genfit::MeasuredStateOnPlane > m_trackState
(optional) genfit MeasuredStateOnPlane
◆ CDCCKFState() [2/2]
constructor from the CDC wireHit
Definition at line 32 of file CDCCKFState.h.
std::optional< const TrackFindingCDC::CDCWireHit * > m_cdcWireHit
(optional) pointer to the wire hit
◆ getArcLength()
double getArcLength |
( |
| ) |
const |
|
inline |
Return the arc-length along the tracjectory to the hit.
Definition at line 94 of file CDCCKFState.h.
95 {
97 }
double m_arcLength
arc length along the trajectory to the hit
◆ getChi2()
Get state chi2.
Definition at line 130 of file CDCCKFState.h.
131 {
133 }
double m_chi2
state chi2 (using genfit extrapolation)
◆ getHitDistance()
double getHitDistance |
( |
| ) |
const |
|
inline |
Return hit distance to the trajectory.
Definition at line 106 of file CDCCKFState.h.
107 {
109 }
double m_hitDistance
distance from the trajectory to the hit
◆ 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 49 of file CDCCKFState.h.
50 {
51 const RecoTrack* seed =
getSeed();
52 return seed->getRelated<RecoTrack>(mcRecoTrackStoreArrayName);
53 }
const RecoTrack * getSeed() const
Get RecoTrack seed corresponding to the state.
◆ getReconstructedZ()
double getReconstructedZ |
( |
| ) |
const |
|
inline |
Get state Z information.
Definition at line 142 of file CDCCKFState.h.
143 {
145 }
double m_reconstructedZ
reconstructed Z coordinate
◆ getRLinfo()
Return right-left info (check if present first)
Definition at line 81 of file CDCCKFState.h.
82 {
83 B2ASSERT(
"LR info is not present yet",
m_rl != TrackFindingCDC::ERightLeft::c_Unknown);
85 }
TrackFindingCDC::ERightLeft m_rl
Store if the track is on the right or left side of the hit.
◆ getSeed()
Get RecoTrack seed corresponding to the state.
Definition at line 42 of file CDCCKFState.h.
43 {
44 B2ASSERT(
"State does not represent a seed",
static_cast<bool>(
m_seed));
46 }
◆ getTrackState()
const genfit::MeasuredStateOnPlane & getTrackState |
( |
| ) |
const |
|
inline |
Get genfit track state (but first check if already present)
Definition at line 62 of file CDCCKFState.h.
63 {
64 B2ASSERT(
"State does not have a track state (yet)",
static_cast<bool>(
m_trackState));
66 }
◆ getTrajectory()
Helper method to get trajectory from the trackState.
Definition at line 148 of file CDCCKFState.h.
149 {
151 const TrackFindingCDC::Vector3D trackPosition(trackState.getPos());
152 const TrackFindingCDC::Vector3D trackMomentum(trackState.getMom());
153 return TrackFindingCDC::CDCTrajectory3D(trackPosition, trackState.getTime(),
154 trackMomentum, trackState.getCharge());
155 }
const genfit::MeasuredStateOnPlane & getTrackState() const
Get genfit track state (but first check if already present)
◆ getWeight()
double getWeight |
( |
| ) |
const |
|
inline |
Get state weight.
Definition at line 118 of file CDCCKFState.h.
119 {
121 }
double m_weight
state weight
◆ getWireHit()
Get CDCWireHit corresponding to the state.
Definition at line 35 of file CDCCKFState.h.
36 {
37 B2ASSERT(
"State does not represent a wire hit",
static_cast<bool>(
m_cdcWireHit));
39 }
◆ isSeed()
Returns true if the state corresponds to the seed track.
Definition at line 56 of file CDCCKFState.h.
57 {
58 return static_cast<bool>(
m_seed);
59 }
◆ setArcLength()
void setArcLength |
( |
double |
arcLength | ) |
|
|
inline |
Set the arc-length along the tracjectory to the hit.
Definition at line 88 of file CDCCKFState.h.
◆ setChi2()
void setChi2 |
( |
double |
chi2 | ) |
|
|
inline |
◆ setHitDistance()
void setHitDistance |
( |
double |
hitDistance | ) |
|
|
inline |
Set hit distance to the trajectory.
Definition at line 100 of file CDCCKFState.h.
◆ setReconstructedZ()
void setReconstructedZ |
( |
double |
reconstructedZ | ) |
|
|
inline |
◆ setRLinfo()
Set right-left info for the hit.
Definition at line 75 of file CDCCKFState.h.
◆ setTrackState()
void setTrackState |
( |
const genfit::MeasuredStateOnPlane & |
trackState | ) |
|
|
inline |
Store genfit Measured state on plane.
Definition at line 69 of file CDCCKFState.h.
◆ setWeight()
void setWeight |
( |
double |
weight | ) |
|
|
inline |
◆ m_arcLength
arc length along the trajectory to the hit
Definition at line 167 of file CDCCKFState.h.
◆ m_cdcWireHit
(optional) pointer to the wire hit
Definition at line 161 of file CDCCKFState.h.
◆ m_chi2
state chi2 (using genfit extrapolation)
Definition at line 176 of file CDCCKFState.h.
◆ m_hitDistance
distance from the trajectory to the hit
Definition at line 170 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 182 of file CDCCKFState.h.
◆ m_seed
(optional) pointer to the seed track
Definition at line 159 of file CDCCKFState.h.
◆ m_trackState
std::optional<genfit::MeasuredStateOnPlane> m_trackState |
|
private |
(optional) genfit MeasuredStateOnPlane
Definition at line 164 of file CDCCKFState.h.
◆ m_weight
The documentation for this class was generated from the following file: