Belle II Software
release-08-01-10
|
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.