Go to the documentation of this file.
24 : fHits(), fMaxErrX(), fMaxErrY(), fMaxErrT(), fNofStations(0) {}
30 fHits.resize(nofStations);
36 for (Int_t
i = 0;
i < nofStations;
i++) {
37 fHits[
i].reserve(nofStations);
47 fHits[station].push_back(hit);
63 return fHits[station][hitId];
67 return fHits[station];
71 return fHits[station].size();
109 for (UInt_t
i = 0;
i <
fHits.size();
i++) {
121 for (Int_t iStation = 0; iStation <
fNofStations; iStation++) {
122 if (
fZPosSet[iStation].empty())
continue;
123 Double_t minZ = *
fZPosSet[iStation].begin();
124 Double_t maxZ = *
fZPosSet[iStation].rbegin();
126 set<Double_t>::const_iterator it;
130 Int_t bin = (z - minZ) /
EPSILON;
134 set<Int_t>::const_iterator it2;
135 for (it2 = binSet.begin(); it2 != binSet.end(); it2++) {
137 Double_t z = minZ + bin *
EPSILON;
147 for (UInt_t
i = 0;
i <
fHits.size();
i++) {
148 ss <<
" station " <<
i <<
": " <<
GetNofHits(
i) <<
" hits, "
152 for (set<litfloat>::const_iterator it =
fZPosSet[
i].begin();
159 for (vector<Int_t>::const_iterator it =
fZPosBins[
i].begin();
vector< litfloat > fMaxErrT
void Arrange()
Must be called after all hits are added.
litfloat GetZPosByBin(Int_t station, Int_t bin) const
Return Z positions of hit.
Base data class for strip hits.
vector< set< litfloat > > fZPosSet
vector< HitPtrVector > fHits
Base data class for pixel hits.
void Clear()
Clear array of hits.
Int_t GetNofHits(Int_t station) const
Return number of hits for the specified station index.
CbmLitHitData()
Constructor.
litfloat GetMaxErrY(Int_t station) const
static const litfloat EPSILON
const vector< Int_t > & GetZPosBins(Int_t station) const
Return bin numbers for Z positions of hits.
Base data class for hits.
Base data class for pixel hits.
Class for accessing the hits in the track reconstruction.
const HitPtrVector & GetHits(Int_t station)
Return array of hits.
Int_t GetBinByZPos(Int_t station, litfloat zPos) const
Return bin number for hit Z position.
vector< litfloat > fMaxErrY
vector< litfloat > fMaxErrX
litfloat GetMaxErrT(Int_t station) const
void AddHit(CbmLitHit *hit)
Add hit.
vector< vector< Int_t > > fZPosBins
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
const CbmLitHit * GetHit(Int_t station, Int_t hitId) const
Return hit pointer.
LitHitType GetType() const
litfloat GetMinZPos(Int_t station) const
Return minimum Z position of hits.
Base data class for hits.
virtual ~CbmLitHitData()
Destructor.
std::vector< CbmTofHit * > HitPtrVector
virtual string ToString() const
Return string representation of this class.
litfloat GetMaxErrX(Int_t station) const
void SetNofStations(Int_t nofStations)
Set number of stations.