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

Triplet class represents a short 3-hits track segment called a "triplet". More...

#include <CaTriplet.h>

Public Member Functions

 Triplet ()=default
 Default constructor.
 
 Triplet (ca::HitIndex_t iHitL, ca::HitIndex_t iHitM, ca::HitIndex_t iHitR, unsigned int iStaL, unsigned int iStaM, unsigned int iStaR, unsigned char Level, unsigned int firstNeighbour, char nNeighbours, fscal Chi2, fscal Qp, fscal Cqp, fscal tx, fscal Ctx, fscal ty, fscal Cty, bool isMomentumFitted)
 Constructor.
 
void SetLevel (unsigned char Level)
 Setters and getters.
 
unsigned char GetLevel () const
 
ca::HitIndex_t GetLHit () const
 
ca::HitIndex_t GetMHit () const
 
ca::HitIndex_t GetRHit () const
 
void SetNNeighbours (int n)
 
int GetNNeighbours () const
 
void SetFNeighbour (unsigned int n)
 
unsigned int GetFNeighbour () const
 
fscal GetQp () const
 
fscal GetChi2 () const
 
fscal GetTime () const
 
int GetLSta () const
 
int GetMSta () const
 
int GetRSta () const
 
fscal GetCqp () const
 
fscal GetTx () const
 
fscal GetCtx () const
 
fscal GetTy () const
 
fscal GetCty () const
 
bool IsMomentumFitted () const
 
void SetIsMomentumFitted (bool val)
 
std::string ToString (int indentLevel=0) const
 

Private Attributes

fscal fChi2 {0.}
 chi^2
 
fscal fQp {0.}
 q/p
 
fscal fCqp {0.}
 RMS^2 of q/p.
 
fscal fTx {0.}
 tx at the left hit
 
fscal fCtx {0.}
 RMS^2 of tx.
 
fscal fTy {0.}
 ty at the left hit
 
fscal fCty {0.}
 RMS^2 of ty.
 
unsigned int fFirstNeighbour {0}
 ID of the first neighbouring triplet.
 
ca::HitIndex_t fHitL {0}
 left hit index (16b) in vHits array
 
ca::HitIndex_t fHitM {0}
 middle hit index (16b)
 
ca::HitIndex_t fHitR {0}
 right hit index (16b)
 
int fNneighbours {0}
 n of neighbouring triplets
 
unsigned char fLevel {0}
 
unsigned short fSta {0}
 packed station numbers: staL (12b), staM-1-staL (2b), staR-2-staL (2b)
 
bool fIsMomentumFitted {0}
 if the triplet momentum is fitted
 

Detailed Description

Triplet class represents a short 3-hits track segment called a "triplet".

Definition at line 22 of file CaTriplet.h.

Constructor & Destructor Documentation

◆ Triplet() [1/2]

cbm::algo::ca::Triplet::Triplet ( )
default

Default constructor.

◆ Triplet() [2/2]

cbm::algo::ca::Triplet::Triplet ( ca::HitIndex_t iHitL,
ca::HitIndex_t iHitM,
ca::HitIndex_t iHitR,
unsigned int iStaL,
unsigned int iStaM,
unsigned int iStaR,
unsigned char Level,
unsigned int firstNeighbour,
char nNeighbours,
fscal Chi2,
fscal Qp,
fscal Cqp,
fscal tx,
fscal Ctx,
fscal ty,
fscal Cty,
bool isMomentumFitted )
inline

Constructor.

Definition at line 28 of file CaTriplet.h.

Member Function Documentation

◆ GetChi2()

fscal cbm::algo::ca::Triplet::GetChi2 ( ) const
inline

Definition at line 65 of file CaTriplet.h.

References fChi2.

◆ GetCqp()

fscal cbm::algo::ca::Triplet::GetCqp ( ) const
inline

Definition at line 72 of file CaTriplet.h.

References fCqp.

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

◆ GetCtx()

fscal cbm::algo::ca::Triplet::GetCtx ( ) const
inline

Definition at line 74 of file CaTriplet.h.

References fCtx.

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

◆ GetCty()

fscal cbm::algo::ca::Triplet::GetCty ( ) const
inline

Definition at line 76 of file CaTriplet.h.

References fCty.

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

◆ GetFNeighbour()

unsigned int cbm::algo::ca::Triplet::GetFNeighbour ( ) const
inline

Definition at line 62 of file CaTriplet.h.

References fFirstNeighbour.

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

◆ GetLevel()

unsigned char cbm::algo::ca::Triplet::GetLevel ( ) const
inline

◆ GetLHit()

ca::HitIndex_t cbm::algo::ca::Triplet::GetLHit ( ) const
inline

◆ GetLSta()

int cbm::algo::ca::Triplet::GetLSta ( ) const
inline

◆ GetMHit()

ca::HitIndex_t cbm::algo::ca::Triplet::GetMHit ( ) const
inline

◆ GetMSta()

int cbm::algo::ca::Triplet::GetMSta ( ) const
inline

◆ GetNNeighbours()

int cbm::algo::ca::Triplet::GetNNeighbours ( ) const
inline

Definition at line 59 of file CaTriplet.h.

References fNneighbours.

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

◆ GetQp()

fscal cbm::algo::ca::Triplet::GetQp ( ) const
inline

Definition at line 64 of file CaTriplet.h.

References fQp.

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

◆ GetRHit()

ca::HitIndex_t cbm::algo::ca::Triplet::GetRHit ( ) const
inline

◆ GetRSta()

int cbm::algo::ca::Triplet::GetRSta ( ) const
inline

Definition at line 70 of file CaTriplet.h.

References fSta, and GetLSta().

Referenced by cbm::algo::ca::TrackFinderWindow::checkTripletMatch(), and ToString().

◆ GetTime()

fscal cbm::algo::ca::Triplet::GetTime ( ) const
inline

Definition at line 66 of file CaTriplet.h.

◆ GetTx()

fscal cbm::algo::ca::Triplet::GetTx ( ) const
inline

Definition at line 73 of file CaTriplet.h.

References fTx.

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

◆ GetTy()

fscal cbm::algo::ca::Triplet::GetTy ( ) const
inline

Definition at line 75 of file CaTriplet.h.

References fTy.

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

◆ IsMomentumFitted()

bool cbm::algo::ca::Triplet::IsMomentumFitted ( ) const
inline

Definition at line 78 of file CaTriplet.h.

References fIsMomentumFitted.

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

◆ SetFNeighbour()

void cbm::algo::ca::Triplet::SetFNeighbour ( unsigned int n)
inline

Definition at line 61 of file CaTriplet.h.

References fFirstNeighbour.

◆ SetIsMomentumFitted()

void cbm::algo::ca::Triplet::SetIsMomentumFitted ( bool val)
inline

Definition at line 79 of file CaTriplet.h.

References fIsMomentumFitted.

◆ SetLevel()

void cbm::algo::ca::Triplet::SetLevel ( unsigned char Level)
inline

Setters and getters.

Definition at line 51 of file CaTriplet.h.

References fLevel.

◆ SetNNeighbours()

void cbm::algo::ca::Triplet::SetNNeighbours ( int n)
inline

Definition at line 58 of file CaTriplet.h.

References fNneighbours.

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

◆ ToString()

std::string cbm::algo::ca::Triplet::ToString ( int indentLevel = 0) const

String representation of class contents

Parameters
indentLevelnumber of indent characters in the output

print the triplet parameters

Definition at line 10 of file CaTriplet.cxx.

References fChi2, fCqp, fCtx, fCty, fFirstNeighbour, fHitL, fHitM, fHitR, fLevel, fNneighbours, fQp, fTx, fTy, GetLSta(), GetMSta(), and GetRSta().

Member Data Documentation

◆ fChi2

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

chi^2


Data members

Definition at line 89 of file CaTriplet.h.

Referenced by GetChi2(), and ToString().

◆ fCqp

fscal cbm::algo::ca::Triplet::fCqp {0.}
private

RMS^2 of q/p.

Definition at line 91 of file CaTriplet.h.

Referenced by GetCqp(), and ToString().

◆ fCtx

fscal cbm::algo::ca::Triplet::fCtx {0.}
private

RMS^2 of tx.

Definition at line 93 of file CaTriplet.h.

Referenced by GetCtx(), and ToString().

◆ fCty

fscal cbm::algo::ca::Triplet::fCty {0.}
private

RMS^2 of ty.

Definition at line 95 of file CaTriplet.h.

Referenced by GetCty(), and ToString().

◆ fFirstNeighbour

unsigned int cbm::algo::ca::Triplet::fFirstNeighbour {0}
private

ID of the first neighbouring triplet.

Definition at line 97 of file CaTriplet.h.

Referenced by GetFNeighbour(), SetFNeighbour(), and ToString().

◆ fHitL

ca::HitIndex_t cbm::algo::ca::Triplet::fHitL {0}
private

left hit index (16b) in vHits array

Definition at line 98 of file CaTriplet.h.

Referenced by GetLHit(), and ToString().

◆ fHitM

ca::HitIndex_t cbm::algo::ca::Triplet::fHitM {0}
private

middle hit index (16b)

Definition at line 99 of file CaTriplet.h.

Referenced by GetMHit(), and ToString().

◆ fHitR

ca::HitIndex_t cbm::algo::ca::Triplet::fHitR {0}
private

right hit index (16b)

Definition at line 100 of file CaTriplet.h.

Referenced by GetRHit(), and ToString().

◆ fIsMomentumFitted

bool cbm::algo::ca::Triplet::fIsMomentumFitted {0}
private

if the triplet momentum is fitted

Definition at line 109 of file CaTriplet.h.

Referenced by IsMomentumFitted(), and SetIsMomentumFitted().

◆ fLevel

unsigned char cbm::algo::ca::Triplet::fLevel {0}
private

Triplet level - its possible position on the longest track candidate it belongs to. level 0 = rightmost triplet of a track candidate level k = k-ths triplet along the track counting upstream, from right to left.

Definition at line 106 of file CaTriplet.h.

Referenced by GetLevel(), SetLevel(), and ToString().

◆ fNneighbours

int cbm::algo::ca::Triplet::fNneighbours {0}
private

n of neighbouring triplets

Definition at line 101 of file CaTriplet.h.

Referenced by GetNNeighbours(), SetNNeighbours(), and ToString().

◆ fQp

fscal cbm::algo::ca::Triplet::fQp {0.}
private

q/p

Definition at line 90 of file CaTriplet.h.

Referenced by GetQp(), and ToString().

◆ fSta

unsigned short cbm::algo::ca::Triplet::fSta {0}
private

packed station numbers: staL (12b), staM-1-staL (2b), staR-2-staL (2b)

Definition at line 108 of file CaTriplet.h.

Referenced by GetLSta(), GetMSta(), and GetRSta().

◆ fTx

fscal cbm::algo::ca::Triplet::fTx {0.}
private

tx at the left hit

Definition at line 92 of file CaTriplet.h.

Referenced by GetTx(), and ToString().

◆ fTy

fscal cbm::algo::ca::Triplet::fTy {0.}
private

ty at the left hit

Definition at line 94 of file CaTriplet.h.

Referenced by GetTy(), and ToString().


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