CbmRoot
|
#include <CbmLitHitData.h>
Public Member Functions | |
CbmLitHitData () | |
Constructor. More... | |
virtual | ~CbmLitHitData () |
Destructor. More... | |
void | SetNofStations (Int_t nofStations) |
Set number of stations. More... | |
void | AddHit (CbmLitHit *hit) |
Add hit. More... | |
const CbmLitHit * | GetHit (Int_t station, Int_t hitId) const |
Return hit pointer. More... | |
const HitPtrVector & | GetHits (Int_t station) |
Return array of hits. More... | |
Int_t | GetNofHits (Int_t station) const |
Return number of hits for the specified station index. More... | |
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 bin numbers for Z positions of hits. More... | |
litfloat | GetZPosByBin (Int_t station, Int_t bin) const |
Return Z positions of hit. More... | |
Int_t | GetBinByZPos (Int_t station, litfloat zPos) const |
Return bin number for hit Z position. More... | |
litfloat | GetMinZPos (Int_t station) const |
Return minimum Z position of hits. More... | |
void | Clear () |
Clear array of hits. More... | |
void | Arrange () |
Must be called after all hits are added. More... | |
virtual string | ToString () const |
Return string representation of this class. More... | |
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 25 of file CbmLitHitData.h.
CbmLitHitData::CbmLitHitData | ( | ) |
Constructor.
Definition at line 23 of file CbmLitHitData.cxx.
|
virtual |
Destructor.
Definition at line 26 of file CbmLitHitData.cxx.
void CbmLitHitData::AddHit | ( | CbmLitHit * | hit | ) |
Add hit.
[in] | hit | Pointer to hit to be added. |
Definition at line 44 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 CbmLitTrackFinderNN::ArrangeHits(), and CbmLitTrackFinderBranch::ArrangeHits().
void CbmLitHitData::Arrange | ( | ) |
Must be called after all hits are added.
Definition at line 120 of file CbmLitHitData.cxx.
References EPSILON, fNofStations, fZPosBins, and fZPosSet.
Referenced by CbmLitTrackFinderNN::ArrangeHits(), and CbmLitTrackFinderBranch::ArrangeHits().
void CbmLitHitData::Clear | ( | ) |
Clear array of hits.
Definition at line 108 of file CbmLitHitData.cxx.
References fHits, fMaxErrT, fMaxErrX, fMaxErrY, fZPosBins, fZPosSet, and i.
Referenced by CbmLitTrackFinderNN::DoFind(), and CbmLitTrackFinderBranch::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 100 of file CbmLitHitData.cxx.
References EPSILON, and GetMinZPos().
Referenced by CbmLitTrackFinderNN::FollowTracks(), and CbmLitTrackFinderBranch::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 62 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 66 of file CbmLitHitData.cxx.
References fHits.
Referenced by CbmLitTrackFinderNN::FollowTracks(), and CbmLitTrackFinderBranch::FollowTracks().
litfloat CbmLitHitData::GetMaxErrT | ( | Int_t | station | ) | const |
\breif Return maximum hit error in [ns].
[in] | station | Index of station. |
Definition at line 82 of file CbmLitHitData.cxx.
References fMaxErrT.
Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::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 74 of file CbmLitHitData.cxx.
References fMaxErrX.
Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::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 78 of file CbmLitHitData.cxx.
References fMaxErrY.
Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and ToString().
litfloat CbmLitHitData::GetMinZPos | ( | Int_t | station | ) | const |
Return minimum Z position of hits.
[in] | station | Index of station. |
Definition at line 104 of file CbmLitHitData.cxx.
References fZPosSet.
Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::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 bin numbers for Z positions of hits.
[in] | station | Index of station. |
Definition at line 92 of file CbmLitHitData.cxx.
References fZPosBins.
Referenced by CbmLitTrackFinderNN::FollowTracks(), and CbmLitTrackFinderBranch::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 96 of file CbmLitHitData.cxx.
References EPSILON, and GetMinZPos().
Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and ToString().
void CbmLitHitData::SetNofStations | ( | Int_t | nofStations | ) |
Set number of stations.
Definition at line 28 of file CbmLitHitData.cxx.
References fHits, fMaxErrT, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, fZPosSet, and i.
Referenced by CbmLitTrackFinderNN::DoFind(), and CbmLitTrackFinderBranch::DoFind().
|
virtual |
Return string representation of this class.
Definition at line 144 of file CbmLitHitData.cxx.
References fHits, fNofStations, fZPosBins, fZPosSet, GetMaxErrT(), GetMaxErrX(), GetMaxErrY(), GetNofHits(), GetZPosByBin(), and i.
|
staticprivate |
Definition at line 146 of file CbmLitHitData.h.
Referenced by Arrange(), GetBinByZPos(), and GetZPosByBin().
|
private |
Definition at line 147 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetHit(), GetHits(), GetNofHits(), SetNofStations(), and ToString().
|
private |
Definition at line 153 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrT(), and SetNofStations().
|
private |
Definition at line 149 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrX(), and SetNofStations().
|
private |
Definition at line 151 of file CbmLitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrY(), and SetNofStations().
|
private |
Definition at line 154 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 155 of file CbmLitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), GetMinZPos(), SetNofStations(), and ToString().