CbmRoot
Loading...
Searching...
No Matches
CbmKfTrackFitter< FlagFitTime >::Trajectory Class Reference

Trajectory with hit information stored in node user references. More...

#include <CbmKfTrackFitter.h>

Inheritance diagram for CbmKfTrackFitter< FlagFitTime >::Trajectory:
[legend]
Collaboration diagram for CbmKfTrackFitter< FlagFitTime >::Trajectory:
[legend]

Public Member Functions

void SetHitSystemId (size_t nodeIndex, ECbmModuleId sysId)
 
void SetHitAddress (size_t nodeIndex, int address)
 
void SetHitIndex (size_t nodeIndex, int index)
 
void SetKfSetup (std::shared_ptr< const Setup< double > > kfSetup)
 Set Kalman Filter setup.
 
size_t GetNofNodes () const
 Get number of nodes on the trajectory.
 
const Node & GetNode (const size_t index) const
 Get const reference to the node by its index.
 
const std::vector< Node > & GetNodes () const
 Get reference to the vector of nodes.
 
const std::array< int, 10 > & GetNodeUserReferences (const size_t index) const
 Get user reference of the node by its index.
 
std::array< int, 10 > & GetNodeUserReferences (const size_t index)
 Get reference to the user references of the node by its index.
 
int GetFirstMeasurementNodeId () const
 Get index of the first node with measurement.
 
int GetLastMeasurementNodeId () const
 Get index of the last node with measurement.
 
const Node & GetFirstMeasurementNode () const
 Get reference to the first node with measurement.
 
const Node & GetLastMeasurementNode () const
 Get reference to the last node with measurement.
 
int GetNofMeasurements () const
 Get number of nodes with measurements.
 
bool IsFitted () const
 Check if the trajectory is fitted.
 
bool IsFullyExtrapolated () const
 Check if the trajectory is extrapolated beyond the first and last measurements.
 
double GetQaChi2Downstream () const
 Get chi2 from the downstream fit iteration, needed for QA.
 
void Clear ()
 Clear the trajectory.
 
void AddNode (const Node &node)
 Add a node to the trajectory.
 
void AddNodes (const std::vector< Node > &nodes)
 Add multiple nodes to the trajectory.
 
void DisableMeasurementAtNode (const size_t index)
 Disable measurement at the given node.
 
void ModifyNode (const size_t index, const Node &node)
 Modify node at the given index.
 

Static Public Member Functions

static ECbmModuleId GetHitSystemId (const Node &node)
 
static int GetHitAddress (const Node &node)
 
static int GetHitIndex (const Node &node)
 
static void SetHitSystemId (Node &node, ECbmModuleId sysId)
 
static void SetHitAddress (Node &node, int address)
 
static void SetHitIndex (Node &node, int index)
 

Protected Member Functions

void MakeConsistent ()
 sort the nodes in Z, add missing material layers and set fFirstMeasureNode and fLastMeasureNode
 
Node & GetNodeReference (const size_t index)
 Get reference to the node by its index.
 

Protected Attributes

std::shared_ptr< const Setup< double > > fKfSetup
 Kalman Filter setup.
 
std::vector< Node > fNodes
 nodes on the trajectory
 
int fFirstMeasurementNodeId
 index of the first node with measurement
 
int fLastMeasurementNodeId
 index of the last node with measurement
 
int fNmeasurements
 number of nodes with measurements
 
bool fIsFitted
 true if the trajectory at all the nodes between the first and the last measurements are fitted
 
bool fIsFullyExtrapolated
 true if the trajectory is successfully extrapolated beyond the first and last measurements
 
double fQaChi2Downstream
 chi2 from the downstream fit iteration, needed for QA
 

Detailed Description

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
class CbmKfTrackFitter< FlagFitTime >::Trajectory

Trajectory with hit information stored in node user references.

Definition at line 39 of file CbmKfTrackFitter.h.

Member Function Documentation

◆ AddNode()

void cbm::algo::kf::Trajectory< double >::AddNode ( const Node & node)
inlineinherited

Add a node to the trajectory.

Definition at line 189 of file KfTrajectory.h.

◆ AddNodes()

void cbm::algo::kf::Trajectory< double >::AddNodes ( const std::vector< Node > & nodes)
inlineinherited

Add multiple nodes to the trajectory.

Definition at line 196 of file KfTrajectory.h.

◆ Clear()

void cbm::algo::kf::Trajectory< double >::Clear ( )
inlineinherited

Clear the trajectory.

Definition at line 177 of file KfTrajectory.h.

◆ DisableMeasurementAtNode()

void cbm::algo::kf::Trajectory< double >::DisableMeasurementAtNode ( const size_t index)
inlineinherited

Disable measurement at the given node.

Definition at line 206 of file KfTrajectory.h.

◆ GetFirstMeasurementNode()

const Node & cbm::algo::kf::Trajectory< double >::GetFirstMeasurementNode ( ) const
inlineinherited

Get reference to the first node with measurement.

Definition at line 151 of file KfTrajectory.h.

◆ GetFirstMeasurementNodeId()

int cbm::algo::kf::Trajectory< double >::GetFirstMeasurementNodeId ( ) const
inlineinherited

Get index of the first node with measurement.

Definition at line 145 of file KfTrajectory.h.

◆ GetHitAddress()

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
static int CbmKfTrackFitter< FlagFitTime >::Trajectory::GetHitAddress ( const Node & node)
inlinestatic

◆ GetHitIndex()

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
static int CbmKfTrackFitter< FlagFitTime >::Trajectory::GetHitIndex ( const Node & node)
inlinestatic

Definition at line 48 of file CbmKfTrackFitter.h.

Referenced by CbmRecoQaTask::Exec().

◆ GetHitSystemId()

◆ GetLastMeasurementNode()

const Node & cbm::algo::kf::Trajectory< double >::GetLastMeasurementNode ( ) const
inlineinherited

Get reference to the last node with measurement.

Definition at line 158 of file KfTrajectory.h.

◆ GetLastMeasurementNodeId()

int cbm::algo::kf::Trajectory< double >::GetLastMeasurementNodeId ( ) const
inlineinherited

Get index of the last node with measurement.

Definition at line 148 of file KfTrajectory.h.

◆ GetNode()

const Node & cbm::algo::kf::Trajectory< double >::GetNode ( const size_t index) const
inlineinherited

Get const reference to the node by its index.

Definition at line 133 of file KfTrajectory.h.

◆ GetNodeReference()

Node & cbm::algo::kf::Trajectory< double >::GetNodeReference ( const size_t index)
inlineprotectedinherited

Get reference to the node by its index.

Definition at line 246 of file KfTrajectory.h.

◆ GetNodes()

const std::vector< Node > & cbm::algo::kf::Trajectory< double >::GetNodes ( ) const
inlineinherited

Get reference to the vector of nodes.

Definition at line 136 of file KfTrajectory.h.

◆ GetNodeUserReferences() [1/2]

std::array< int, 10 > & cbm::algo::kf::Trajectory< double >::GetNodeUserReferences ( const size_t index)
inlineinherited

Get reference to the user references of the node by its index.

Definition at line 142 of file KfTrajectory.h.

◆ GetNodeUserReferences() [2/2]

const std::array< int, 10 > & cbm::algo::kf::Trajectory< double >::GetNodeUserReferences ( const size_t index) const
inlineinherited

Get user reference of the node by its index.

Definition at line 139 of file KfTrajectory.h.

◆ GetNofMeasurements()

int cbm::algo::kf::Trajectory< double >::GetNofMeasurements ( ) const
inlineinherited

Get number of nodes with measurements.

Definition at line 165 of file KfTrajectory.h.

◆ GetNofNodes()

size_t cbm::algo::kf::Trajectory< double >::GetNofNodes ( ) const
inlineinherited

Get number of nodes on the trajectory.

Definition at line 130 of file KfTrajectory.h.

◆ GetQaChi2Downstream()

double cbm::algo::kf::Trajectory< double >::GetQaChi2Downstream ( ) const
inlineinherited

Get chi2 from the downstream fit iteration, needed for QA.

Definition at line 174 of file KfTrajectory.h.

◆ IsFitted()

bool cbm::algo::kf::Trajectory< double >::IsFitted ( ) const
inlineinherited

Check if the trajectory is fitted.

Definition at line 168 of file KfTrajectory.h.

◆ IsFullyExtrapolated()

bool cbm::algo::kf::Trajectory< double >::IsFullyExtrapolated ( ) const
inlineinherited

Check if the trajectory is extrapolated beyond the first and last measurements.

Definition at line 171 of file KfTrajectory.h.

◆ MakeConsistent()

void Trajectory::MakeConsistent ( )
inlineprotectedinherited

sort the nodes in Z, add missing material layers and set fFirstMeasureNode and fLastMeasureNode

Definition at line 243 of file KfTrajectory.cxx.

◆ ModifyNode()

void cbm::algo::kf::Trajectory< double >::ModifyNode ( const size_t index,
const Node & node )
inlineinherited

Modify node at the given index.

Definition at line 235 of file KfTrajectory.h.

◆ SetHitAddress() [1/2]

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
static void CbmKfTrackFitter< FlagFitTime >::Trajectory::SetHitAddress ( Node & node,
int address )
inlinestatic

◆ SetHitAddress() [2/2]

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
void CbmKfTrackFitter< FlagFitTime >::Trajectory::SetHitAddress ( size_t nodeIndex,
int address )
inline

Definition at line 58 of file CbmKfTrackFitter.h.

References cbm::algo::kf::Trajectory< double >::fNodes, and SetHitAddress().

Referenced by SetHitAddress().

◆ SetHitIndex() [1/2]

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
static void CbmKfTrackFitter< FlagFitTime >::Trajectory::SetHitIndex ( Node & node,
int index )
inlinestatic

◆ SetHitIndex() [2/2]

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
void CbmKfTrackFitter< FlagFitTime >::Trajectory::SetHitIndex ( size_t nodeIndex,
int index )
inline

Definition at line 60 of file CbmKfTrackFitter.h.

References cbm::algo::kf::Trajectory< double >::fNodes, and SetHitIndex().

Referenced by SetHitIndex().

◆ SetHitSystemId() [1/2]

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
static void CbmKfTrackFitter< FlagFitTime >::Trajectory::SetHitSystemId ( Node & node,
ECbmModuleId sysId )
inlinestatic

◆ SetHitSystemId() [2/2]

template<cbm::algo::kf::DoFitTime FlagFitTime = cbm::algo::kf::DoFitTime::Y>
void CbmKfTrackFitter< FlagFitTime >::Trajectory::SetHitSystemId ( size_t nodeIndex,
ECbmModuleId sysId )
inline

Definition at line 56 of file CbmKfTrackFitter.h.

References cbm::algo::kf::Trajectory< double >::fNodes, and SetHitSystemId().

Referenced by SetHitSystemId().

◆ SetKfSetup()

void cbm::algo::kf::Trajectory< double >::SetKfSetup ( std::shared_ptr< const Setup< double > > kfSetup)
inlineinherited

Set Kalman Filter setup.

Definition at line 127 of file KfTrajectory.h.

Member Data Documentation

◆ fFirstMeasurementNodeId

int cbm::algo::kf::Trajectory< double >::fFirstMeasurementNodeId
protectedinherited

index of the first node with measurement

Definition at line 253 of file KfTrajectory.h.

◆ fIsFitted

bool cbm::algo::kf::Trajectory< double >::fIsFitted
protectedinherited

true if the trajectory at all the nodes between the first and the last measurements are fitted

Definition at line 257 of file KfTrajectory.h.

◆ fIsFullyExtrapolated

bool cbm::algo::kf::Trajectory< double >::fIsFullyExtrapolated
protectedinherited

true if the trajectory is successfully extrapolated beyond the first and last measurements

Definition at line 260 of file KfTrajectory.h.

◆ fKfSetup

std::shared_ptr<const Setup<double> > cbm::algo::kf::Trajectory< double >::fKfSetup
protectedinherited

Kalman Filter setup.

Definition at line 249 of file KfTrajectory.h.

◆ fLastMeasurementNodeId

int cbm::algo::kf::Trajectory< double >::fLastMeasurementNodeId
protectedinherited

index of the last node with measurement

Definition at line 254 of file KfTrajectory.h.

◆ fNmeasurements

int cbm::algo::kf::Trajectory< double >::fNmeasurements
protectedinherited

number of nodes with measurements

Definition at line 255 of file KfTrajectory.h.

◆ fNodes

◆ fQaChi2Downstream

double cbm::algo::kf::Trajectory< double >::fQaChi2Downstream
protectedinherited

chi2 from the downstream fit iteration, needed for QA

Definition at line 263 of file KfTrajectory.h.


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