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

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.
 

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 40 of file LitScalTrack.h.

Constructor & Destructor Documentation

◆ LitScalTrack()

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

Constructor.

Definition at line 45 of file LitScalTrack.h.

References fHits.

◆ ~LitScalTrack()

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

Destructor.

Definition at line 62 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 120 of file LitScalTrack.h.

References fChiSq.

Referenced by CbmLitConverterParallel::LitScalTrackToCbmTrack(), 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 90 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 162 of file LitScalTrack.h.

References fLastStationId.

◆ GetNDF()

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

Returns number of degrees of freedom.

Returns
Number of degrees of freedom.

Definition at line 138 of file LitScalTrack.h.

References fNDF.

Referenced by CbmLitConverterParallel::LitScalTrackToCbmTrack(), 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 150 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 132 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 198 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 126 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 168 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 83 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 156 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 204 of file LitScalTrack.h.

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

Friends And Related Symbol 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 217 of file LitScalTrack.h.

Member Data Documentation

◆ fChiSq

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

Definition at line 227 of file LitScalTrack.h.

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

◆ fHits

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

Definition at line 224 of file LitScalTrack.h.

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

◆ fIsGood

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

Definition at line 232 of file LitScalTrack.h.

Referenced by IsGood(), and IsGood().

◆ fLastStationId

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

Definition at line 231 of file LitScalTrack.h.

Referenced by GetLastStationId(), and SetLastStationId().

◆ fNDF

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

Definition at line 228 of file LitScalTrack.h.

Referenced by GetNDF(), and SetNDF().

◆ fNofMissingHits

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

Definition at line 229 of file LitScalTrack.h.

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

◆ fParamFirst

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

Definition at line 225 of file LitScalTrack.h.

Referenced by GetParamFirst(), and SetParamFirst().

◆ fParamLast

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

Definition at line 226 of file LitScalTrack.h.

Referenced by GetParamLast(), and SetParamLast().

◆ fPreviousTrackId

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

Definition at line 230 of file LitScalTrack.h.

Referenced by GetPreviousTrackId(), and SetPreviousTrackId().


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