Belle II Software development
|
State object to store one step in the CKF algorithm together with its parent (the state before), the hit (e.g. More...
#include <CKFState.h>
Classes | |
struct | stateCache |
Cache containing the most important information of this state which will often be needed. More... | |
Public Types | |
using | Seed = ASeed |
Copy the class of the seed track. | |
using | Hit = AHit |
Copy the class of the hits. | |
Public Member Functions | |
CKFState ()=default | |
Default constructor needed for STL containers. | |
CKFState (CKFState &&)=default | |
Move constructor needed for STL containers. | |
CKFState (const CKFState &)=delete | |
No copy constructor. | |
CKFState & | operator= (const CKFState &)=delete |
No copy constructor. | |
CKFState & | operator= (CKFState &&)=default |
Move assignment constructor. | |
~CKFState ()=default | |
Destructor. | |
CKFState (const Seed *seed) | |
Initialize the state as a root without a related hit (but with a seed) | |
CKFState (const Hit *hit) | |
Initialize the state as non-root with a related hit (and with a seed) | |
const Seed * | getSeed () const |
Return the track this state is related to. | |
const Hit * | getHit () const |
Return the SP this state is related to. May be nullptr. | |
double | getChi2 () const |
Return the chi2 set during fitting. Is only valid after fitting. | |
void | setChi2 (double chi2) |
Set the chi2 of this state during fitting. | |
void | setMeasuredStateOnPlane (const genfit::MeasuredStateOnPlane &mSoP) |
Set the mSoP. | |
const genfit::MeasuredStateOnPlane & | getMeasuredStateOnPlane () const |
Get the mSoP if already set during extrapolation (or fitting) | |
bool | isFitted () const |
Check if state was already fitted. | |
bool | mSoPSet () const |
Is the mSoP already set? (= state was already extrapolated) | |
void | reset () |
Reset the state to be seen as "new". | |
TrackFindingCDC::AutomatonCell & | getAutomatonCell () |
Getter for the automaton cell. | |
Protected Attributes | |
stateCache | m_stateCache |
Cache the most important data of this state for better runtime performance. | |
Private Attributes | |
const Seed * | m_seed = nullptr |
The seed this state is related with. | |
const Hit * | m_hit = nullptr |
The hit object this state is attached to. | |
double | m_chi2 = 0 |
Chi2 of this special state with this hit and this reco track. Will only be set after fitting state. | |
genfit::MeasuredStateOnPlane | m_measuredStateOnPlane |
MSoP after advancing. Is undetermined before extrapolating! | |
TrackFindingCDC::AutomatonCell | m_automatonCell |
Memory for the automaton cell. | |
bool | m_isFitted = false |
Flag, if this state was already fitted. | |
bool | m_hasMSoP = false |
Flag, if this state has a valid mSoP. | |
State object to store one step in the CKF algorithm together with its parent (the state before), the hit (e.g.
a space point) and the seed (e.g. a cdc reco track).
Please remember: the states are reused during the algorithm and only once constructed (in the C++ sense).
Definition at line 29 of file CKFState.h.
using Hit = AHit |
Copy the class of the hits.
Definition at line 34 of file CKFState.h.
using Seed = ASeed |
Copy the class of the seed track.
Definition at line 32 of file CKFState.h.
Initialize the state as a root without a related hit (but with a seed)
Definition at line 50 of file CKFState.h.
Initialize the state as non-root with a related hit (and with a seed)
Definition at line 55 of file CKFState.h.
|
inline |
Getter for the automaton cell.
Definition at line 119 of file CKFState.h.
|
inline |
Return the chi2 set during fitting. Is only valid after fitting.
Definition at line 72 of file CKFState.h.
|
inline |
Return the SP this state is related to. May be nullptr.
Definition at line 66 of file CKFState.h.
|
inline |
Get the mSoP if already set during extrapolation (or fitting)
Definition at line 93 of file CKFState.h.
|
inline |
Return the track this state is related to.
Definition at line 60 of file CKFState.h.
|
inline |
Check if state was already fitted.
Definition at line 100 of file CKFState.h.
|
inline |
Is the mSoP already set? (= state was already extrapolated)
Definition at line 106 of file CKFState.h.
|
inline |
Reset the state to be seen as "new".
Definition at line 112 of file CKFState.h.
|
inline |
Set the chi2 of this state during fitting.
Definition at line 79 of file CKFState.h.
|
inline |
Set the mSoP.
Definition at line 86 of file CKFState.h.
|
private |
Memory for the automaton cell.
Definition at line 167 of file CKFState.h.
|
private |
Chi2 of this special state with this hit and this reco track. Will only be set after fitting state.
Definition at line 163 of file CKFState.h.
|
private |
Flag, if this state has a valid mSoP.
Definition at line 171 of file CKFState.h.
|
private |
The hit object this state is attached to.
Definition at line 161 of file CKFState.h.
|
private |
Flag, if this state was already fitted.
Definition at line 169 of file CKFState.h.
|
private |
MSoP after advancing. Is undetermined before extrapolating!
Definition at line 165 of file CKFState.h.
|
private |
The seed this state is related with.
Definition at line 159 of file CKFState.h.
|
protected |
Cache the most important data of this state for better runtime performance.
Definition at line 154 of file CKFState.h.