Belle II Software  release-08-01-10
CKFState< ASeed, AHit > Class Template Reference

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>

Collaboration diagram for CKFState< ASeed, AHit >:

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.
 
CKFStateoperator= (const CKFState &)=delete
 No copy constructor.
 
CKFStateoperator= (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 SeedgetSeed () const
 Return the track this state is related to.
 
const HitgetHit () 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::MeasuredStateOnPlanegetMeasuredStateOnPlane () 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::AutomatonCellgetAutomatonCell ()
 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 Seedm_seed = nullptr
 The seed this state is related with.
 
const Hitm_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.
 

Detailed Description

template<class ASeed, class AHit>
class Belle2::CKFState< ASeed, AHit >

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.


The documentation for this class was generated from the following file: