CbmRoot
|
Class for accessing hits in track reconstruction. More...
#include <LitHitData.h>
Public Member Functions | |
LitHitData () | |
Constructor. More... | |
virtual | ~LitHitData () |
Destructor. More... | |
void | SetNofStations (unsigned char nofStations) |
Set number of stations. More... | |
void | AddHit (LitScalPixelHit *hit) |
Add hit. More... | |
const LitScalPixelHit * | GetHit (unsigned char station, unsigned int hitId) const |
Return hit pointer. More... | |
const vector< LitScalPixelHit * > & | GetHits (unsigned char station) |
Return vector of hits. More... | |
unsigned int | GetNofHits (unsigned char station) const |
Return number of hits for specified station. More... | |
fscal | GetMaxErrX (unsigned char station) const |
Return maximum X error in [cm] for specified station. More... | |
fscal | GetMaxErrY (unsigned char station) const |
Return maximum Y error in [cm] for specified station. More... | |
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. More... | |
void | Arrange () |
Must be called after all hits are added. More... | |
string | ToString () const |
Returns string representation of the class. More... | |
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. More... | |
Class for accessing hits in track reconstruction.
Definition at line 36 of file LitHitData.h.
|
inline |
Constructor.
Definition at line 41 of file LitHitData.h.
|
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 75 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 164 of file LitHitData.h.
References EPSILON, fNofStations, fZPosBins, and fZPosSet.
|
inline |
Clear hit arrays.
Definition at line 150 of file LitHitData.h.
References fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, fZPosSet, and i.
|
inline |
Definition at line 139 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 90 of file LitHitData.h.
References fHits.
|
inline |
Return vector of hits.
[in] | station | Station index. |
Definition at line 100 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 118 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 127 of file LitHitData.h.
References fMaxErrY.
Referenced by ToString().
|
inline |
Definition at line 143 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 109 of file LitHitData.h.
References fHits.
Referenced by ToString().
|
inline |
Definition at line 131 of file LitHitData.h.
References fZPosBins.
|
inline |
Definition at line 135 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, fZPosSet, and i.
|
inline |
Returns string representation of the class.
Definition at line 192 of file LitHitData.h.
References fHits, fZPosBins, fZPosSet, GetMaxErrX(), GetMaxErrY(), GetNofHits(), GetZPosByBin(), and i.
|
friend |
Operator << for convenient output to ostream.
Definition at line 221 of file LitHitData.h.
|
staticprivate |
Definition at line 227 of file LitHitData.h.
Referenced by Arrange(), GetBinByZPos(), and GetZPosByBin().
|
private |
Definition at line 228 of file LitHitData.h.
Referenced by AddHit(), Clear(), GetHit(), GetHits(), GetNofHits(), SetNofStations(), and ToString().
|
private |
Definition at line 229 of file LitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrX(), and SetNofStations().
|
private |
Definition at line 230 of file LitHitData.h.
Referenced by AddHit(), Clear(), GetMaxErrY(), and SetNofStations().
|
private |
Definition at line 231 of file LitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), and SetNofStations().
|
private |
Definition at line 236 of file LitHitData.h.
Referenced by Arrange(), Clear(), GetZPosBins(), SetNofStations(), and ToString().
|
private |
Definition at line 233 of file LitHitData.h.
Referenced by AddHit(), Arrange(), Clear(), GetMinZPos(), SetNofStations(), and ToString().