CbmRoot
|
Scalar track data class. More...
#include <LitScalTrack.h>
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 LitScalPixelHit * | GetHit (unsigned short index) const |
Returns pointer to the hit. | |
const LitTrackParamScal & | GetParamFirst () const |
Returns first parameter of the track. | |
void | SetParamFirst (const LitTrackParamScal ¶m) |
Sets first track parameter. | |
const LitTrackParamScal & | GetParamLast () const |
Returns last parameter of the track. | |
void | SetParamLast (const LitTrackParamScal ¶m) |
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. | |
Scalar track data class.
It is used for input and output scalar data to tracking algorithm.
Definition at line 40 of file LitScalTrack.h.
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 62 of file LitScalTrack.h.
|
inline |
Adds hit to track.
hit | Pointer to hit. |
Definition at line 68 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 120 of file LitScalTrack.h.
References fChiSq.
Referenced by CbmLitConverterParallel::LitScalTrackToCbmTrack(), and ToString().
|
inline |
Returns pointer to the hit.
[in] | index | Index of the hit in track. |
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().
|
inline |
Returns last station ID.
Definition at line 162 of file LitScalTrack.h.
References fLastStationId.
|
inline |
Returns number of degrees of freedom.
Definition at line 138 of file LitScalTrack.h.
References fNDF.
Referenced by CbmLitConverterParallel::LitScalTrackToCbmTrack(), and ToString().
|
inline |
Returns number of hits in track.
Definition at line 74 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::LitTrackFinderNN::RemoveHits(), lit::parallel::LitTrackFinderNN::SelectTracks(), and ToString().
|
inline |
Returns number of missing hits.
Definition at line 150 of file LitScalTrack.h.
References fNofMissingHits.
Referenced by lit::parallel::LitTrackFinderNN::FollowTracks(), and ToString().
|
inline |
Returns first parameter of the track.
Definition at line 96 of file LitScalTrack.h.
References fParamFirst.
Referenced by CbmLitFitTracksParallel::DoFit(), lit::parallel::LitTrackFinderNN::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), lit::parallel::LitTrackFitter(), and ToString().
|
inline |
Returns last parameter of the track.
Definition at line 108 of file LitScalTrack.h.
References fParamLast.
Referenced by lit::parallel::LitTrackFinderNNVecElectron::AddNearestHit(), CbmLitFitTracksParallel::DoFit(), lit::parallel::LitTrackFinderNN::FollowTracks(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), CbmLitConverterParallel::LitScalTrackToCbmTrack(), and ToString().
|
inline |
Return Previous track index.
Definition at line 180 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 132 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 192 of file LitScalTrack.h.
References fIsGood.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack(), lit::parallel::LitTrackFinderNN::CopyToOutput(), lit::parallel::LitTrackFinderNNVecElectron::DoFind(), lit::parallel::LitTrackFinderNNVecMuon::DoFind(), lit::parallel::DoSelectSharedHits(), lit::parallel::LitTrackFinderNN::RemoveHits(), and lit::parallel::LitTrackFinderNN::SelectTracks().
|
inline |
Sets is good track.
[in] | isGood | Value. |
Definition at line 198 of file LitScalTrack.h.
References fIsGood.
|
inline |
Sets chi square.
[in] | chiSq | Chi square value to be set. |
Definition at line 126 of file LitScalTrack.h.
References fChiSq.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack().
|
inline |
Set last station ID.
[in] | lastStationId | Last station ID. |
Definition at line 168 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 144 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 83 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 156 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 102 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 114 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::LitTrackFinderNN::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds(), and lit::parallel::LitTrackFitter().
|
inline |
Sets previous trackId.
previousTrackId | Value of previous track index. |
Definition at line 186 of file LitScalTrack.h.
References fPreviousTrackId.
Referenced by CbmLitConverterParallel::CbmTrackToLitScalTrack(), CbmLitFindGlobalTracksParallel::DoTracking(), lit::parallel::LitTrackFinderNN::InitTrackSeeds(), lit::parallel::LitTrackFinderNNVecElectron::InitTrackSeeds(), and lit::parallel::LitTrackFinderNNVecMuon::InitTrackSeeds().
|
inline |
Returns string representation of the class.
Definition at line 204 of file LitScalTrack.h.
References GetChiSq(), GetNDF(), GetNofHits(), GetNofMissingHits(), GetParamFirst(), GetParamLast(), and GetPreviousTrackId().
|
friend |
Operator << for convenient output to ostream.
Definition at line 217 of file LitScalTrack.h.
|
private |
Definition at line 227 of file LitScalTrack.h.
Referenced by GetChiSq(), IncChiSq(), and SetChiSq().
|
private |
Definition at line 224 of file LitScalTrack.h.
Referenced by AddHit(), GetHit(), GetNofHits(), LitScalTrack(), and SetNofHits().
|
private |
Definition at line 232 of file LitScalTrack.h.
|
private |
Definition at line 231 of file LitScalTrack.h.
Referenced by GetLastStationId(), and SetLastStationId().
|
private |
Definition at line 228 of file LitScalTrack.h.
|
private |
Definition at line 229 of file LitScalTrack.h.
Referenced by GetNofMissingHits(), IncNofMissingHits(), and SetNofMissingHits().
|
private |
Definition at line 225 of file LitScalTrack.h.
Referenced by GetParamFirst(), and SetParamFirst().
|
private |
Definition at line 226 of file LitScalTrack.h.
Referenced by GetParamLast(), and SetParamLast().
|
private |
Definition at line 230 of file LitScalTrack.h.
Referenced by GetPreviousTrackId(), and SetPreviousTrackId().