CbmRoot
|
Scalar track data class. More...
#include <LitScalTrack.h>
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 LitScalPixelHit * | GetHit (unsigned short index) const |
Returns pointer to the hit. More... | |
const LitTrackParamScal & | GetParamFirst () const |
Returns first parameter of the track. More... | |
void | SetParamFirst (const LitTrackParamScal ¶m) |
Sets first track parameter. More... | |
const LitTrackParamScal & | GetParamLast () const |
Returns last parameter of the track. More... | |
void | SetParamLast (const LitTrackParamScal ¶m) |
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... | |
Scalar track data class.
It is used for input and output scalar data to tracking algorithm.
Definition at line 33 of file LitScalTrack.h.
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 54 of file LitScalTrack.h.
|
inline |
Adds hit to track.
hit | Pointer to hit. |
Definition at line 60 of file LitScalTrack.h.
References fHits.
Referenced by lit::parallel::LitTrackFinderNNVecElectron::AddNearestHit(), lit::parallel::LitTrackFinderNNVecMuon::AddNearestHit(), CbmLitConverterParallel::CbmTrackToLitScalTrack(), and lit::parallel::LitTrackFinderNN::FollowTracks().
|
inline |
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().
|
inline |
Returns pointer to the hit.
[in] | index | Index of the hit in track. |
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().
|
inline |
Returns last station ID.
Definition at line 160 of file LitScalTrack.h.
References fLastStationId.
Referenced by lit::parallel::CompareLitScalTrackLastStationIdMore::operator()().
|
inline |
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().
|
inline |
Returns number of hits in track.
Definition at line 66 of file LitScalTrack.h.
References fHits.
Referenced by lit::parallel::LitTrackFinderNNVecElectron::DoFind(), lit::parallel::DoSelectSharedHits(), lit::parallel::LitTrackFinderNN::FollowTracks(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), lit::parallel::LitTrackFitter(), lit::parallel::NDF(), lit::parallel::CompareLitScalTrackNofHitsMore::operator()(), lit::parallel::LitTrackFinderNN::RemoveHits(), lit::parallel::LitTrackFinderNN::SelectTracks(), and ToString().
|
inline |
Returns number of missing hits.
Definition at line 146 of file LitScalTrack.h.
References fNofMissingHits.
Referenced by lit::parallel::LitTrackFinderNN::FollowTracks(), and ToString().
|
inline |
Returns first parameter of the track.
Definition at line 90 of file LitScalTrack.h.
References fParamFirst.
Referenced by CbmLitFitTracksParallel::DoFit(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), lit::parallel::LitTrackFinderNN::InitTrackSeeds(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), lit::parallel::LitTrackFitter(), and ToString().
|
inline |
Returns last parameter of the track.
Definition at line 104 of file LitScalTrack.h.
References fParamLast.
Referenced by lit::parallel::LitTrackFinderNNVecElectron::AddNearestHit(), CbmLitFitTracksParallel::DoFit(), lit::parallel::LitTrackFinderNN::FollowTracks(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), and ToString().
|
inline |
Return Previous track index.
Definition at line 182 of file LitScalTrack.h.
References fPreviousTrackId.
Referenced by lit::parallel::LitTrackFinderNN::CopyToOutput(), CbmLitFitTracksParallel::DoFit(), lit::parallel::LitTrackFinderNN::InitTrackSeeds(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), and ToString().
|
inline |
Increases chi square by dChiSq.
[in] | dChiSq | Value 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().
|
inline |
Increases number of missing hits by dNofMissingHits.
[in] | dNofMissingHits | Value of dNofMissingHits. |
Definition at line 174 of file LitScalTrack.h.
References fNofMissingHits.
Referenced by lit::parallel::LitTrackFinderNNVecElectron::CollectHits(), and lit::parallel::LitTrackFinderNNVecMuon::CollectHits().
|
inline |
Returns true if track is good.
Definition at line 196 of file LitScalTrack.h.
References fIsGood.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack(), lit::parallel::LitTrackFinderNN::CopyToOutput(), lit::parallel::LitTrackFinderNNVecMuon::DoFind(), lit::parallel::LitTrackFinderNNVecElectron::DoFind(), lit::parallel::DoSelectSharedHits(), lit::parallel::LitTrackFinderNN::RemoveHits(), and lit::parallel::LitTrackFinderNN::SelectTracks().
|
inline |
Sets is good track.
[in] | isGood | Value. |
Definition at line 202 of file LitScalTrack.h.
References fIsGood.
|
inline |
Sets chi square.
[in] | chiSq | Chi square value to be set. |
Definition at line 122 of file LitScalTrack.h.
References fChiSq.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack().
|
inline |
Set last station ID.
[in] | lastStationId | Last station ID. |
Definition at line 166 of file LitScalTrack.h.
References fLastStationId.
Referenced by lit::parallel::DoSortLastStation(), and lit::parallel::LitTrackFinderNN::FollowTracks().
|
inline |
Sets number of degrees of freedom.
[in] | NDF | NDF value to be set. |
Definition at line 140 of file LitScalTrack.h.
References fNDF, and lit::parallel::NDF().
Referenced by lit::parallel::LitTrackFinderNNVecElectron::AddNearestHit(), lit::parallel::LitTrackFinderNNVecMuon::AddNearestHit(), CbmLitConverterParallel::CbmTrackToLitScalTrack(), and lit::parallel::LitTrackFinderNN::FollowTracks().
|
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().
|
inline |
Sets number of missing hits.
[in] | nofMissingHits | Number 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().
|
inline |
Sets first track parameter.
[in] | param | Reference to track parameter to be set. |
Definition at line 96 of file LitScalTrack.h.
References fParamFirst.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack(), CbmLitFitTracksParallel::DoFit(), CbmLitFindGlobalTracksParallel::DoTracking(), lit::parallel::LitTrackFinderNN::FollowTracks(), lit::parallel::LitTrackFinderNN::InitTrackSeeds(), and lit::parallel::LitTrackFitter().
|
inline |
Sets last track parameter.
[in] | param | Reference to track parameter to be set. |
Definition at line 110 of file LitScalTrack.h.
References fParamLast.
Referenced by lit::parallel::LitTrackFinderNNVecElectron::AddNearestHit(), lit::parallel::LitTrackFinderNNVecMuon::AddNearestHit(), lit::parallel::LitTrackFinderNNVecElectron::CollectHits(), lit::parallel::LitTrackFinderNNVecMuon::CollectHits(), lit::parallel::LitTrackFinderNN::FollowTracks(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), lit::parallel::LitTrackFinderNN::InitTrackSeeds(), and lit::parallel::LitTrackFitter().
|
inline |
Sets previous trackId.
previousTrackId | Value of previous track index. |
Definition at line 188 of file LitScalTrack.h.
References fPreviousTrackId.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack(), CbmLitFindGlobalTracksParallel::DoTracking(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), and lit::parallel::LitTrackFinderNN::InitTrackSeeds().
|
inline |
Returns string representation of the class.
Definition at line 208 of file LitScalTrack.h.
References GetChiSq(), GetNDF(), GetNofHits(), GetNofMissingHits(), GetParamFirst(), GetParamLast(), and GetPreviousTrackId().
|
friend |
Operator << for convenient output to ostream.
Definition at line 222 of file LitScalTrack.h.
|
private |
Definition at line 231 of file LitScalTrack.h.
Referenced by GetChiSq(), IncChiSq(), and SetChiSq().
|
private |
Definition at line 228 of file LitScalTrack.h.
Referenced by AddHit(), GetHit(), GetNofHits(), LitScalTrack(), and SetNofHits().
|
private |
Definition at line 236 of file LitScalTrack.h.
Referenced by IsGood().
|
private |
Definition at line 235 of file LitScalTrack.h.
Referenced by GetLastStationId(), and SetLastStationId().
|
private |
Definition at line 232 of file LitScalTrack.h.
|
private |
Definition at line 233 of file LitScalTrack.h.
Referenced by GetNofMissingHits(), IncNofMissingHits(), and SetNofMissingHits().
|
private |
Definition at line 229 of file LitScalTrack.h.
Referenced by GetParamFirst(), and SetParamFirst().
|
private |
Definition at line 230 of file LitScalTrack.h.
Referenced by GetParamLast(), and SetParamLast().
|
private |
Definition at line 234 of file LitScalTrack.h.
Referenced by GetPreviousTrackId(), and SetPreviousTrackId().