CbmRoot
Loading...
Searching...
No Matches
cbm::algo::ca::Branch Class Reference

#include <CaBranch.h>

Collaboration diagram for cbm::algo::ca::Branch:
[legend]

Public Member Functions

 Branch ()
 default constructor
 
void SetStation (int iStation)
 
void SetChi2 (fscal chi2)
 
void SetId (int Id)
 
void SetAlive (bool isAlive)
 
void AddHit (ca::HitIndex_t hitIndex)
 
void ResetHits ()
 
int NofHits () const
 
int Station () const
 
fscal Chi2 () const
 
int Id () const
 
bool IsAlive () const
 
const Vector< ca::HitIndex_t > & Hits () const
 
Vector< ca::HitIndex_t > & RefHits ()
 
bool IsBetterThan (const Branch &b) const
 

Private Attributes

int fStation {0}
 
fscal fChi2 {0.}
 
int fId {0}
 
bool fIsAlive {0}
 
Vector< ca::HitIndex_tfHits {"Branch::fHits"}
 

Detailed Description

The class describes a combinatorial branch of the CA tracker

Definition at line 18 of file CaBranch.h.

Constructor & Destructor Documentation

◆ Branch()

cbm::algo::ca::Branch::Branch ( )
inline

default constructor

Definition at line 21 of file CaBranch.h.

References fHits, and cbm::algo::ca::Vector< T >::reserve().

Member Function Documentation

◆ AddHit()

void cbm::algo::ca::Branch::AddHit ( ca::HitIndex_t hitIndex)
inline

◆ Chi2()

◆ Hits()

◆ Id()

int cbm::algo::ca::Branch::Id ( ) const
inline

Definition at line 37 of file CaBranch.h.

References fId.

Referenced by SetId().

◆ IsAlive()

bool cbm::algo::ca::Branch::IsAlive ( ) const
inline

Definition at line 38 of file CaBranch.h.

References fIsAlive.

Referenced by cbm::algo::ca::TrackFinderWindow::SelectTracks().

◆ IsBetterThan()

bool cbm::algo::ca::Branch::IsBetterThan ( const Branch & b) const
inline

Methods

Definition at line 46 of file CaBranch.h.

References Chi2(), NofHits(), and Station().

◆ NofHits()

◆ RefHits()

Vector< ca::HitIndex_t > & cbm::algo::ca::Branch::RefHits ( )
inline

Definition at line 41 of file CaBranch.h.

References fHits.

Referenced by cbm::algo::ca::TrackExtender::FindMoreHits().

◆ ResetHits()

void cbm::algo::ca::Branch::ResetHits ( )
inline

Definition at line 32 of file CaBranch.h.

References fHits.

◆ SetAlive()

void cbm::algo::ca::Branch::SetAlive ( bool isAlive)
inline

Definition at line 29 of file CaBranch.h.

References fIsAlive.

Referenced by cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates().

◆ SetChi2()

void cbm::algo::ca::Branch::SetChi2 ( fscal chi2)
inline

◆ SetId()

void cbm::algo::ca::Branch::SetId ( int Id)
inline

Definition at line 28 of file CaBranch.h.

References fId, and Id().

Referenced by cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates().

◆ SetStation()

void cbm::algo::ca::Branch::SetStation ( int iStation)
inline

Setters and getters

Definition at line 26 of file CaBranch.h.

References fStation.

Referenced by cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates().

◆ Station()

int cbm::algo::ca::Branch::Station ( ) const
inline

Definition at line 35 of file CaBranch.h.

References fStation.

Referenced by IsBetterThan().

Member Data Documentation

◆ fChi2

fscal cbm::algo::ca::Branch::fChi2 {0.}
private

Definition at line 58 of file CaBranch.h.

Referenced by Chi2(), and SetChi2().

◆ fHits

Vector<ca::HitIndex_t> cbm::algo::ca::Branch::fHits {"Branch::fHits"}
private

Definition at line 61 of file CaBranch.h.

Referenced by AddHit(), Branch(), Hits(), NofHits(), RefHits(), and ResetHits().

◆ fId

int cbm::algo::ca::Branch::fId {0}
private

Definition at line 59 of file CaBranch.h.

Referenced by Id(), and SetId().

◆ fIsAlive

bool cbm::algo::ca::Branch::fIsAlive {0}
private

Definition at line 60 of file CaBranch.h.

Referenced by IsAlive(), and SetAlive().

◆ fStation

int cbm::algo::ca::Branch::fStation {0}
private

Data members

Definition at line 57 of file CaBranch.h.

Referenced by SetStation(), and Station().


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