CbmRoot
lit::parallel::LitScalTrack Class Reference

Scalar track data class. More...

#include <LitScalTrack.h>

Collaboration diagram for lit::parallel::LitScalTrack:
[legend]

Public Member Functions

 LitScalTrack ()
 Constructor. More...
 
virtual ~LitScalTrack ()
 Destructor. More...
 
void AddHit (const LitScalPixelHit *hit)
 Adds hit to track. More...
 
unsigned short GetNofHits () const
 Returns number of hits in track. More...
 
void SetNofHits (unsigned short nofHits)
 Depricated. More...
 
const LitScalPixelHitGetHit (unsigned short index) const
 Returns pointer to the hit. More...
 
const LitTrackParamScalGetParamFirst () const
 Returns first parameter of the track. More...
 
void SetParamFirst (const LitTrackParamScal &param)
 Sets first track parameter. More...
 
const LitTrackParamScalGetParamLast () const
 Returns last parameter of the track. More...
 
void SetParamLast (const LitTrackParamScal &param)
 Sets last track parameter. More...
 
fscal GetChiSq () const
 Returns chi square of the track. More...
 
void SetChiSq (fscal chiSq)
 Sets chi square. More...
 
void IncChiSq (fscal dChiSq)
 Increases chi square by dChiSq. More...
 
unsigned short GetNDF () const
 Returns number of degrees of freedom. More...
 
void SetNDF (unsigned short NDF)
 Sets number of degrees of freedom. More...
 
unsigned short GetNofMissingHits () const
 Returns number of missing hits. More...
 
void SetNofMissingHits (unsigned short nofMissingHits)
 Sets number of missing hits. More...
 
unsigned short GetLastStationId () const
 Returns last station ID. More...
 
void SetLastStationId (unsigned short lastStationId)
 Set last station ID. More...
 
void IncNofMissingHits (unsigned short dNofMissingHits=1)
 Increases number of missing hits by dNofMissingHits. More...
 
unsigned short GetPreviousTrackId () const
 Return Previous track index. More...
 
void SetPreviousTrackId (unsigned short previousTrackId)
 Sets previous trackId. More...
 
bool IsGood () const
 Returns true if track is good. More...
 
void IsGood (bool isGood)
 Sets is good track. More...
 
string ToString () const
 Returns string representation of the class. More...
 

Private Attributes

vector< const LitScalPixelHit * > fHits
 
LitTrackParamScal fParamFirst
 
LitTrackParamScal fParamLast
 
fscal fChiSq
 
unsigned short fNDF
 
unsigned short fNofMissingHits
 
unsigned short fPreviousTrackId
 
unsigned char fLastStationId
 
bool fIsGood
 

Friends

ostream & operator<< (ostream &strm, const LitScalTrack &track)
 Operator << for convenient output to ostream. More...
 

Detailed Description

Scalar track data class.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2009

It is used for input and output scalar data to tracking algorithm.

Definition at line 33 of file LitScalTrack.h.

Constructor & Destructor Documentation

◆ LitScalTrack()

lit::parallel::LitScalTrack::LitScalTrack ( )
inline

Constructor.

Definition at line 38 of file LitScalTrack.h.

References fHits.

◆ ~LitScalTrack()

virtual lit::parallel::LitScalTrack::~LitScalTrack ( )
inlinevirtual

Destructor.

Definition at line 54 of file LitScalTrack.h.

Member Function Documentation

◆ AddHit()

void lit::parallel::LitScalTrack::AddHit ( const LitScalPixelHit hit)
inline

◆ GetChiSq()

fscal lit::parallel::LitScalTrack::GetChiSq ( ) const
inline

Returns chi square of the track.

Returns
Chi square of the track.

Definition at line 116 of file LitScalTrack.h.

References fChiSq.

Referenced by CbmLitConverterParallel::LitScalTrackToCbmTrack(), lit::parallel::CompareLitScalTrackChiSqOverNdfLess::operator()(), and ToString().

◆ GetHit()

const LitScalPixelHit* lit::parallel::LitScalTrack::GetHit ( unsigned short  index) const
inline

Returns pointer to the hit.

Parameters
[in]indexIndex of the hit in track.
Returns
Pointer to hit.

Definition at line 82 of file LitScalTrack.h.

References fHits.

Referenced by lit::parallel::DoSelectSharedHits(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), lit::parallel::LitTrackFitter(), and lit::parallel::LitTrackFinderNN::RemoveHits().

◆ GetLastStationId()

unsigned short lit::parallel::LitScalTrack::GetLastStationId ( ) const
inline

Returns last station ID.

Returns
Last station ID.

Definition at line 160 of file LitScalTrack.h.

References fLastStationId.

Referenced by lit::parallel::CompareLitScalTrackLastStationIdMore::operator()().

◆ GetNDF()

unsigned short lit::parallel::LitScalTrack::GetNDF ( ) const
inline

Returns number of degrees of freedom.

Returns
Number of degrees of freedom.

Definition at line 134 of file LitScalTrack.h.

References fNDF.

Referenced by CbmLitConverterParallel::LitScalTrackToCbmTrack(), lit::parallel::CompareLitScalTrackChiSqOverNdfLess::operator()(), and ToString().

◆ GetNofHits()

◆ GetNofMissingHits()

unsigned short lit::parallel::LitScalTrack::GetNofMissingHits ( ) const
inline

Returns number of missing hits.

Returns
Number of missing hits.

Definition at line 146 of file LitScalTrack.h.

References fNofMissingHits.

Referenced by lit::parallel::LitTrackFinderNN::FollowTracks(), and ToString().

◆ GetParamFirst()

◆ GetParamLast()

◆ GetPreviousTrackId()

unsigned short lit::parallel::LitScalTrack::GetPreviousTrackId ( ) const
inline

◆ IncChiSq()

void lit::parallel::LitScalTrack::IncChiSq ( fscal  dChiSq)
inline

Increases chi square by dChiSq.

Parameters
[in]dChiSqValue of dChiSq.

Definition at line 128 of file LitScalTrack.h.

References fChiSq.

Referenced by lit::parallel::LitTrackFinderNNVecElectron::AddNearestHit(), lit::parallel::LitTrackFinderNNVecMuon::AddNearestHit(), and lit::parallel::LitTrackFinderNN::FollowTracks().

◆ IncNofMissingHits()

void lit::parallel::LitScalTrack::IncNofMissingHits ( unsigned short  dNofMissingHits = 1)
inline

Increases number of missing hits by dNofMissingHits.

Parameters
[in]dNofMissingHitsValue of dNofMissingHits.

Definition at line 174 of file LitScalTrack.h.

References fNofMissingHits.

Referenced by lit::parallel::LitTrackFinderNNVecElectron::CollectHits(), and lit::parallel::LitTrackFinderNNVecMuon::CollectHits().

◆ IsGood() [1/2]

◆ IsGood() [2/2]

void lit::parallel::LitScalTrack::IsGood ( bool  isGood)
inline

Sets is good track.

Parameters
[in]isGoodValue.

Definition at line 202 of file LitScalTrack.h.

References fIsGood.

◆ SetChiSq()

void lit::parallel::LitScalTrack::SetChiSq ( fscal  chiSq)
inline

Sets chi square.

Parameters
[in]chiSqChi square value to be set.

Definition at line 122 of file LitScalTrack.h.

References fChiSq.

Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack().

◆ SetLastStationId()

void lit::parallel::LitScalTrack::SetLastStationId ( unsigned short  lastStationId)
inline

Set last station ID.

Parameters
[in]lastStationIdLast station ID.

Definition at line 166 of file LitScalTrack.h.

References fLastStationId.

Referenced by lit::parallel::DoSortLastStation(), and lit::parallel::LitTrackFinderNN::FollowTracks().

◆ SetNDF()

void lit::parallel::LitScalTrack::SetNDF ( unsigned short  NDF)
inline

◆ SetNofHits()

void lit::parallel::LitScalTrack::SetNofHits ( unsigned short  nofHits)
inline

Depricated.

In general should not be used. One has to add hits using AddHit method. Currently used in track selection algorithm.

Definition at line 75 of file LitScalTrack.h.

References fHits.

Referenced by lit::parallel::DoSortNofHits().

◆ SetNofMissingHits()

void lit::parallel::LitScalTrack::SetNofMissingHits ( unsigned short  nofMissingHits)
inline

Sets number of missing hits.

Parameters
[in]nofMissingHitsNumber of missing hits to be set.

Definition at line 152 of file LitScalTrack.h.

References fNofMissingHits.

Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack(), and lit::parallel::LitTrackFinderNN::FollowTracks().

◆ SetParamFirst()

void lit::parallel::LitScalTrack::SetParamFirst ( const LitTrackParamScal param)
inline

◆ SetParamLast()

◆ SetPreviousTrackId()

void lit::parallel::LitScalTrack::SetPreviousTrackId ( unsigned short  previousTrackId)
inline

◆ ToString()

string lit::parallel::LitScalTrack::ToString ( ) const
inline

Returns string representation of the class.

Returns
String representation of the class.

Definition at line 208 of file LitScalTrack.h.

References GetChiSq(), GetNDF(), GetNofHits(), GetNofMissingHits(), GetParamFirst(), GetParamLast(), and GetPreviousTrackId().

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  strm,
const LitScalTrack track 
)
friend

Operator << for convenient output to ostream.

Returns
Insertion stream in order to be able to call a succession of insertion operations.

Definition at line 222 of file LitScalTrack.h.

Member Data Documentation

◆ fChiSq

fscal lit::parallel::LitScalTrack::fChiSq
private

Definition at line 231 of file LitScalTrack.h.

Referenced by GetChiSq(), IncChiSq(), and SetChiSq().

◆ fHits

vector<const LitScalPixelHit*> lit::parallel::LitScalTrack::fHits
private

Definition at line 228 of file LitScalTrack.h.

Referenced by AddHit(), GetHit(), GetNofHits(), LitScalTrack(), and SetNofHits().

◆ fIsGood

bool lit::parallel::LitScalTrack::fIsGood
private

Definition at line 236 of file LitScalTrack.h.

Referenced by IsGood().

◆ fLastStationId

unsigned char lit::parallel::LitScalTrack::fLastStationId
private

Definition at line 235 of file LitScalTrack.h.

Referenced by GetLastStationId(), and SetLastStationId().

◆ fNDF

unsigned short lit::parallel::LitScalTrack::fNDF
private

Definition at line 232 of file LitScalTrack.h.

Referenced by GetNDF(), and SetNDF().

◆ fNofMissingHits

unsigned short lit::parallel::LitScalTrack::fNofMissingHits
private

Definition at line 233 of file LitScalTrack.h.

Referenced by GetNofMissingHits(), IncNofMissingHits(), and SetNofMissingHits().

◆ fParamFirst

LitTrackParamScal lit::parallel::LitScalTrack::fParamFirst
private

Definition at line 229 of file LitScalTrack.h.

Referenced by GetParamFirst(), and SetParamFirst().

◆ fParamLast

LitTrackParamScal lit::parallel::LitScalTrack::fParamLast
private

Definition at line 230 of file LitScalTrack.h.

Referenced by GetParamLast(), and SetParamLast().

◆ fPreviousTrackId

unsigned short lit::parallel::LitScalTrack::fPreviousTrackId
private

Definition at line 234 of file LitScalTrack.h.

Referenced by GetPreviousTrackId(), and SetPreviousTrackId().


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