CbmRoot
|
#include <CbmLitHitData.h>
Public Member Functions | |
CbmLitHitData () | |
Constructor. | |
virtual | ~CbmLitHitData () |
Destructor. | |
void | SetNofStations (Int_t nofStations) |
Set number of stations. | |
void | AddHit (CbmLitHit *hit) |
Add hit. | |
const CbmLitHit * | GetHit (Int_t station, Int_t hitId) const |
Return hit pointer. | |
const HitPtrVector & | GetHits (Int_t station) |
Return array of hits. | |
Int_t | GetNofHits (Int_t station) const |
Return number of hits for the specified station index. | |
litfloat | GetMaxErrX (Int_t station) const |
litfloat | GetMaxErrY (Int_t station) const |
litfloat | GetMaxErrT (Int_t station) const |
const vector< Int_t > & | GetZPosBins (Int_t station) const |
Return Z positions of hits. | |
litfloat | GetZPosByBin (Int_t station, Int_t bin) const |
Return Z positions of hit. | |
Int_t | GetBinByZPos (Int_t station, litfloat zPos) const |
Return bin number for hit Z position. | |
litfloat | GetMinZPos (Int_t station) const |
Return minimum Z position of hits. | |
void | Clear () |
Clear array of hits. | |
void | Arrange () |
Must be called after all hits are added. | |
virtual string | ToString () const |
Return string representation of this class. | |
Private Attributes | |
vector< HitPtrVector > | fHits |
vector< litfloat > | fMaxErrX |
vector< litfloat > | fMaxErrY |
vector< litfloat > | fMaxErrT |
Int_t | fNofStations |
vector< set< litfloat > > | fZPosSet |
vector< vector< Int_t > > | fZPosBins |
Static Private Attributes | |
static const litfloat | EPSILON = 0.005 |
Definition at line 29 of file CbmLitHitData.h.
CbmLitHitData::CbmLitHitData | ( | ) |
Constructor.
Definition at line 27 of file CbmLitHitData.cxx.
|
virtual |
Destructor.
Definition at line 29 of file CbmLitHitData.cxx.
void CbmLitHitData::AddHit | ( | CbmLitHit * | hit | ) |
Add hit.
[in] | hit | Pointer to hit to be added. |
Definition at line 48 of file CbmLitHitData.cxx.
References fHits, fMaxErrT, fMaxErrX, fMaxErrY, fNofStations, fZPosSet, CbmLitHit::GetDt(), CbmLitPixelHit::GetDx(), CbmLitPixelHit::GetDy(), CbmLitHit::GetStation(), CbmLitHit::GetType(), CbmLitHit::GetZ(), kLITPIXELHIT, and max().
Referenced by CbmLitTrackFinderBranch::ArrangeHits(), and CbmLitTrackFinderNN::ArrangeHits().
void CbmLitHitData::Arrange | ( | ) |
Must be called after all hits are added.
Definition at line 108 of file CbmLitHitData.cxx.
References EPSILON, fNofStations, fZPosBins, and fZPosSet.
Referenced by CbmLitTrackFinderBranch::ArrangeHits(), and CbmLitTrackFinderNN::ArrangeHits().
void CbmLitHitData::Clear | ( | ) |
Clear array of hits.
Definition at line 95 of file CbmLitHitData.cxx.
References fHits, fMaxErrT, fMaxErrX, fMaxErrY, fZPosBins, and fZPosSet.
Referenced by CbmLitTrackFinderBranch::DoFind(), and CbmLitTrackFinderNN::DoFind().
Int_t CbmLitHitData::GetBinByZPos | ( | Int_t | station, |
litfloat | zPos ) const |
Return bin number for hit Z position.
[in] | station | Index of station. |
[in] | zPos | Z position. |
Definition at line 88 of file CbmLitHitData.cxx.
References EPSILON, and GetMinZPos().
Referenced by CbmLitTrackFinderBranch::FollowTracks(), and CbmLitTrackFinderNN::FollowTracks().
const CbmLitHit * CbmLitHitData::GetHit | ( | Int_t | station, |
Int_t | hitId ) const |
Return hit pointer.
[in] | station | Index of the station. |
[in] | hitId | Hit index in array of hits for the specified station. |
Definition at line 66 of file CbmLitHitData.cxx.
References fHits.
const HitPtrVector & CbmLitHitData::GetHits | ( | Int_t | station | ) |
Return array of hits.
[in] | station | Index of station. |
Definition at line 68 of file CbmLitHitData.cxx.
References fHits.
Referenced by CbmLitTrackFinderBranch::FollowTracks(), and CbmLitTrackFinderNN::FollowTracks().
litfloat CbmLitHitData::GetMaxErrT | ( | Int_t | station | ) | const |
\breif Return maximum hit error in [ns].
[in] | station | Index of station. |
Definition at line 76 of file CbmLitHitData.cxx.
References fMaxErrT.
Referenced by CbmLitTrackFinderBranch::FollowTracks(), CbmLitTrackFinderNN::FollowTracks(), and ToString().
litfloat CbmLitHitData::GetMaxErrX | ( | Int_t | station | ) | const |
\breif Return maximum hit error in [cm] and coordinate name ("X", "Y", "U").
[in] | station | Index of station. |
Definition at line 72 of file CbmLitHitData.cxx.
References fMaxErrX.
Referenced by CbmLitTrackFinderBranch::FollowTracks(), CbmLitTrackFinderNN::FollowTracks(), and ToString().
litfloat CbmLitHitData::GetMaxErrY | ( | Int_t | station | ) | const |
\breif Return maximum hit error in [cm] and coordinate name ("X", "Y", "U").
[in] | station | Index of station. |
Definition at line 74 of file CbmLitHitData.cxx.
References fMaxErrY.
Referenced by CbmLitTrackFinderBranch::FollowTracks(), CbmLitTrackFinderNN::FollowTracks(), and ToString().
litfloat CbmLitHitData::GetMinZPos | ( | Int_t | station | ) | const |
Return minimum Z position of hits.
[in] | station | Index of station. |
Definition at line 90 of file CbmLitHitData.cxx.
References fZPosSet.
Referenced by CbmLitTrackFinderBranch::FollowTracks(), CbmLitTrackFinderNN::FollowTracks(), GetBinByZPos(), and GetZPosByBin().
Int_t CbmLitHitData::GetNofHits | ( | Int_t | station | ) | const |
Return number of hits for the specified station index.
[in] | station | Index of station. |
Definition at line 70 of file CbmLitHitData.cxx.
References fHits.
Referenced by ToString().
const vector< Int_t > & CbmLitHitData::GetZPosBins | ( | Int_t | station | ) | const |
Return Z positions of hits.
[in] | station | Index of station. |
Return bin numbers for Z positions of hits.
[in] | station | Index of station. |
Definition at line 84 of file CbmLitHitData.cxx.
References fZPosBins.
Referenced by CbmLitTrackFinderBranch::FollowTracks(), and CbmLitTrackFinderNN::FollowTracks().
litfloat CbmLitHitData::GetZPosByBin | ( | Int_t | station, |
Int_t | bin ) const |
Return Z positions of hit.
[in] | station | Index of station. |
[in] | bin | Bin number. |
Definition at line 86 of file CbmLitHitData.cxx.
References EPSILON, and GetMinZPos().
Referenced by CbmLitTrackFinderBranch::FollowTracks(), CbmLitTrackFinderNN::FollowTracks(), and ToString().
void CbmLitHitData::SetNofStations | ( | Int_t | nofStations | ) |
Set number of stations.
Definition at line 31 of file CbmLitHitData.cxx.
References fHits, fMaxErrT, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, and fZPosSet.
Referenced by CbmLitTrackFinderBranch::DoFind(), and CbmLitTrackFinderNN::DoFind().
|
virtual |
Return string representation of this class.
Definition at line 132 of file CbmLitHitData.cxx.
References fHits, fNofStations, fZPosBins, fZPosSet, GetMaxErrT(), GetMaxErrX(), GetMaxErrY(), GetNofHits(), and GetZPosByBin().
|
staticprivate |
Definition at line 150 of file CbmLitHitData.h.
Referenced by Arrange(), GetBinByZPos(), and GetZPosByBin().
|
private |
Definition at line 151 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetHit(), GetHits(), GetNofHits(), SetNofStations(), and ToString().
|
private |
Definition at line 154 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrT(), and SetNofStations().
|
private |
Definition at line 152 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrX(), and SetNofStations().
|
private |
Definition at line 153 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrY(), and SetNofStations().
|
private |
Definition at line 155 of file CbmLitHitData.h.
Referenced by AddHit(), Arrange(), SetNofStations(), and ToString().
|
private |
Definition at line 159 of file CbmLitHitData.h.
Referenced by Arrange(), Clear(), GetZPosBins(), SetNofStations(), and ToString().
|
private |
Definition at line 156 of file CbmLitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), GetMinZPos(), SetNofStations(), and ToString().