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

Object for temporary storage of a CKF tree search result. More...

#include <CKFResult.h>

Collaboration diagram for CKFResult< ASeed, AHit >:

Public Types

using Seed = ASeed
 Copy seed definition.
 
using Hit = AHit
 Copy hit definition.
 

Public Member Functions

template<class AState >
 CKFResult (const std::vector< TrackFindingCDC::WithWeight< const AState * >> &path, const genfit::MeasuredStateOnPlane &mSoP)
 Constructor from the path of the result and the final mSoP, which defines the track position of the resulting track.
 
const std::vector< const AHit * > & getHits () const
 Getter for the stored hits.
 
const ASeed * getSeed () const
 Getter for the stored seeds.
 
double getChi2 () const
 Getter for the chi2.
 
double getMaximalChi2 () const
 Getter for the maximal chi2 of all stored hits. NAN means there is no valid chi2 at all.
 
double getMinimalChi2 () const
 Getter for the minimal chi2 of all stored hits. NAN means there is no valid chi2 at all.
 
const ROOT::Math::XYZVector & getPosition () const
 Get the position this track should start at.
 
const ROOT::Math::XYZVector & getMomentum () const
 Get the momentum this track should start at (defined at the position)
 
short getCharge () const
 Set the charge of the track.
 
double getWeightSum () const
 Getter for the sum of weights.
 
const genfit::MeasuredStateOnPlanegetSeedMSoP () const
 Getter for the mSoP of the seed associated with this result.
 
const genfit::MeasuredStateOnPlanegetMSoP () const
 Getter for the mSoP associated with this result.
 

Private Attributes

const ASeed * m_seed
 The stored seed.
 
std::vector< const AHit * > m_hits
 The stored hits.
 
double m_chi2 = 0
 The stored chi2.
 
double m_maximalChi2 = NAN
 The maximal chi2 of the single states. NAN means there is no valid chi2 at all.
 
double m_minimalChi2 = NAN
 The minimal chi2 of the single states NAN means there is no valid chi2 at all.
 
ROOT::Math::XYZVector m_trackPosition
 The position this track should start at.
 
ROOT::Math::XYZVector m_trackMomentum
 The momentum this track should start at (defined at the position)
 
short m_trackCharge = 0
 The charge of the track.
 
TrackFindingCDC::Weight m_weightSum = 0
 The stored sum of weights.
 
genfit::MeasuredStateOnPlane m_seedMSoP
 The measured state on plane, which was used from the seed.
 
genfit::MeasuredStateOnPlane m_mSoP
 The measured state on plane, which this result was initialized with.
 

Detailed Description

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

Object for temporary storage of a CKF tree search result.

It stores the seed together with the associated hits and a chi2 value. This object will not be stored to the DataStore, but is only for internal usage.

All sub-detector CKFs should inherit their own object from this.

Definition at line 30 of file CKFResult.h.


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