|
CbmRoot
|
Class for accessing hits in track reconstruction. More...
#include <LitHitData.h>
Public Member Functions | |
| LitHitData () | |
| Constructor. | |
| virtual | ~LitHitData () |
| Destructor. | |
| void | SetNofStations (unsigned char nofStations) |
| Set number of stations. | |
| void | AddHit (LitScalPixelHit *hit) |
| Add hit. | |
| const LitScalPixelHit * | GetHit (unsigned char station, unsigned int hitId) const |
| Return hit pointer. | |
| const vector< LitScalPixelHit * > & | GetHits (unsigned char station) |
| Return vector of hits. | |
| unsigned int | GetNofHits (unsigned char station) const |
| Return number of hits for specified station. | |
| fscal | GetMaxErrX (unsigned char station) const |
| Return maximum X error in [cm] for specified station. | |
| fscal | GetMaxErrY (unsigned char station) const |
| Return maximum Y error in [cm] for specified station. | |
| const vector< int > & | GetZPosBins (unsigned char station) const |
| fscal | GetZPosByBin (unsigned char station, int bin) const |
| int | GetBinByZPos (unsigned char station, fscal zPos) const |
| fscal | GetMinZPos (unsigned char station) const |
| void | Clear () |
| Clear hit arrays. | |
| void | Arrange () |
| Must be called after all hits are added. | |
| string | ToString () const |
| Returns string representation of the class. | |
Private Attributes | |
| vector< vector< LitScalPixelHit * > > | fHits |
| vector< fscal > | fMaxErrX |
| vector< fscal > | fMaxErrY |
| unsigned char | fNofStations |
| vector< set< fscal > > | fZPosSet |
| vector< vector< int > > | fZPosBins |
Static Private Attributes | |
| static const fscal | EPSILON = 0.005 |
Friends | |
| ostream & | operator<< (ostream &strm, const LitHitData &hitData) |
| Operator << for convenient output to ostream. | |
Class for accessing hits in track reconstruction.
Definition at line 42 of file LitHitData.h.
|
inline |
Constructor.
Definition at line 47 of file LitHitData.h.
References fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, and fZPosSet.
Referenced by operator<<.
|
inlinevirtual |
Destructor.
Definition at line 52 of file LitHitData.h.
|
inline |
Add hit.
| [in] | station | Station index. |
| [in] | hit | Pointer to hit to be added. |
Definition at line 76 of file LitHitData.h.
References lit::parallel::LitScalPixelHit::Dx, lit::parallel::LitScalPixelHit::Dy, fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosSet, max(), lit::parallel::LitScalPixelHit::stationId, and lit::parallel::LitScalPixelHit::Z.
|
inline |
Must be called after all hits are added.
Definition at line 151 of file LitHitData.h.
References EPSILON, fNofStations, fZPosBins, and fZPosSet.
|
inline |
Clear hit arrays.
Definition at line 136 of file LitHitData.h.
References fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, and fZPosSet.
|
inline |
Definition at line 126 of file LitHitData.h.
References EPSILON, and GetMinZPos().
|
inline |
Return hit pointer.
| [in] | station | Station index. |
| [in] | hitId | Hit index in array of hits for specified station. |
Definition at line 92 of file LitHitData.h.
References fHits.
|
inline |
Return vector of hits.
| [in] | station | Station index. |
Definition at line 99 of file LitHitData.h.
References fHits.
|
inline |
Return maximum X error in [cm] for specified station.
| [in] | station | Station index in station group. |
Definition at line 113 of file LitHitData.h.
References fMaxErrX.
Referenced by ToString().
|
inline |
Return maximum Y error in [cm] for specified station.
| [in] | station | Station index in station group. |
Definition at line 120 of file LitHitData.h.
References fMaxErrY.
Referenced by ToString().
|
inline |
Definition at line 128 of file LitHitData.h.
References fZPosSet.
Referenced by GetBinByZPos(), and GetZPosByBin().
|
inline |
Return number of hits for specified station.
| [in] | station | Station index. |
Definition at line 106 of file LitHitData.h.
References fHits.
Referenced by ToString().
|
inline |
Definition at line 122 of file LitHitData.h.
References fZPosBins.
|
inline |
Definition at line 124 of file LitHitData.h.
References EPSILON, and GetMinZPos().
Referenced by ToString().
|
inline |
Set number of stations.
| [in] | layout | Detector layout. |
Definition at line 58 of file LitHitData.h.
References fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, and fZPosSet.
|
inline |
Returns string representation of the class.
Definition at line 179 of file LitHitData.h.
References fHits, fZPosBins, fZPosSet, GetMaxErrX(), GetMaxErrY(), GetNofHits(), and GetZPosByBin().
Referenced by operator<<.
|
friend |
Operator << for convenient output to ostream.
Definition at line 204 of file LitHitData.h.
References LitHitData(), and ToString().
|
staticprivate |
Definition at line 211 of file LitHitData.h.
Referenced by Arrange(), GetBinByZPos(), and GetZPosByBin().
|
private |
Definition at line 212 of file LitHitData.h.
Referenced by AddHit(), Clear(), GetHit(), GetHits(), GetNofHits(), LitHitData(), SetNofStations(), and ToString().
Definition at line 213 of file LitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrX(), LitHitData(), and SetNofStations().
Definition at line 214 of file LitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrY(), LitHitData(), and SetNofStations().
|
private |
Definition at line 215 of file LitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), LitHitData(), and SetNofStations().
Definition at line 218 of file LitHitData.h.
Referenced by Arrange(), Clear(), GetZPosBins(), LitHitData(), SetNofStations(), and ToString().
Definition at line 216 of file LitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), GetMinZPos(), LitHitData(), SetNofStations(), and ToString().