34 fHits.resize(nofStations);
40 for (Int_t i = 0; i < nofStations; i++) {
41 fHits[i].reserve(nofStations);
52 fHits[station].push_back(hit);
97 for (UInt_t i = 0; i <
fHits.size(); i++) {
99 fHits[i].reserve(1500);
110 for (Int_t iStation = 0; iStation <
fNofStations; iStation++) {
111 if (
fZPosSet[iStation].empty())
continue;
112 Double_t minZ = *
fZPosSet[iStation].begin();
113 Double_t maxZ = *
fZPosSet[iStation].rbegin();
115 set<Double_t>::const_iterator it;
116 for (it =
fZPosSet[iStation].begin(); it !=
fZPosSet[iStation].end(); it++) {
118 Int_t bin = (z - minZ) /
EPSILON;
122 set<Int_t>::const_iterator it2;
123 for (it2 = binSet.begin(); it2 != binSet.end(); it2++) {
125 Double_t z = minZ + bin *
EPSILON;
136 for (UInt_t i = 0; i <
fHits.size(); i++) {
137 ss <<
" station " << i <<
": " <<
GetNofHits(i) <<
" hits, "
140 for (set<litfloat>::const_iterator it =
fZPosSet[i].begin(); it !=
fZPosSet[i].end(); it++) {
145 for (vector<Int_t>::const_iterator it =
fZPosBins[i].begin(); it !=
fZPosBins[i].end(); it++) {
146 ss <<
"|" << *it <<
"," <<
GetZPosByBin(i, *it) <<
"| ";
Class for accessing the hits in the track reconstruction.
Base data class for hits.
Base data class for pixel hits.
Base data class for strip hits.
std::vector< CbmTofHit * > HitPtrVector
friend fscal max(fscal x, fscal y)
void Clear()
Clear array of hits.
virtual ~CbmLitHitData()
Destructor.
void Arrange()
Must be called after all hits are added.
static const litfloat EPSILON
vector< litfloat > fMaxErrT
virtual string ToString() const
Return string representation of this class.
void SetNofStations(Int_t nofStations)
Set number of stations.
const CbmLitHit * GetHit(Int_t station, Int_t hitId) const
Return hit pointer.
Int_t GetNofHits(Int_t station) const
Return number of hits for the specified station index.
void AddHit(CbmLitHit *hit)
Add hit.
vector< vector< Int_t > > fZPosBins
vector< litfloat > fMaxErrX
litfloat GetZPosByBin(Int_t station, Int_t bin) const
Return Z positions of hit.
litfloat GetMinZPos(Int_t station) const
Return minimum Z position of hits.
const vector< Int_t > & GetZPosBins(Int_t station) const
Return Z positions of hits.
litfloat GetMaxErrY(Int_t station) const
Int_t GetBinByZPos(Int_t station, litfloat zPos) const
Return bin number for hit Z position.
vector< HitPtrVector > fHits
CbmLitHitData()
Constructor.
vector< litfloat > fMaxErrY
litfloat GetMaxErrX(Int_t station) const
litfloat GetMaxErrT(Int_t station) const
const HitPtrVector & GetHits(Int_t station)
Return array of hits.
vector< set< litfloat > > fZPosSet
Base data class for hits.
LitHitType GetType() const
Base data class for pixel hits.