|
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.
References fHits, fMaxErrT, fMaxErrX, fMaxErrY, and fNofStations.
|
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().
| 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.
| void CbmLitHitData::Clear | ( | ) |
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().
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.
\breif Return maximum hit error in [ns].
| [in] | station | Index of station. |
Definition at line 76 of file CbmLitHitData.cxx.
References fMaxErrT.
Referenced by ToString().
\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 ToString().
\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 ToString().
Return minimum Z position of hits.
| [in] | station | Index of station. |
Definition at line 90 of file CbmLitHitData.cxx.
References fZPosSet.
Referenced by GetBinByZPos(), and GetZPosByBin().
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().
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.
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 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.
|
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(), CbmLitHitData(), Clear(), GetHit(), GetHits(), GetNofHits(), SetNofStations(), and ToString().
Definition at line 154 of file CbmLitHitData.h.
Referenced by AddHit(), CbmLitHitData(), Clear(), GetMaxErrT(), and SetNofStations().
Definition at line 152 of file CbmLitHitData.h.
Referenced by AddHit(), CbmLitHitData(), Clear(), GetMaxErrX(), and SetNofStations().
Definition at line 153 of file CbmLitHitData.h.
Referenced by AddHit(), CbmLitHitData(), Clear(), GetMaxErrY(), and SetNofStations().
|
private |
Definition at line 155 of file CbmLitHitData.h.
Referenced by AddHit(), Arrange(), CbmLitHitData(), SetNofStations(), and ToString().
Definition at line 159 of file CbmLitHitData.h.
Referenced by Arrange(), Clear(), GetZPosBins(), SetNofStations(), and ToString().
Definition at line 156 of file CbmLitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), GetMinZPos(), SetNofStations(), and ToString().