Go to the documentation of this file.
24 using std::stringstream;
60 fHits.resize(nofStations);
65 for (
unsigned char i = 0;
i < nofStations;
i++) {
78 fHits[station].push_back(hit);
91 unsigned int hitId)
const {
92 return fHits[station][hitId];
100 const vector<LitScalPixelHit*>&
GetHits(
unsigned char station) {
101 return fHits[station];
110 return fHits[station].size();
165 for (
int iStation = 0; iStation <
fNofStations; iStation++) {
166 if (
fZPosSet[iStation].empty())
continue;
170 set<fscal>::const_iterator it;
174 int bin = (z - minZ) /
EPSILON;
178 set<int>::const_iterator it2;
179 for (it2 = binSet.begin(); it2 != binSet.end(); it2++) {
194 ss <<
"LitHitData:" << endl;
195 for (
unsigned int i = 0;
i <
fHits.size();
i++) {
196 ss <<
" station " <<
i <<
": " <<
GetNofHits(
i) <<
" hits, "
200 for (set<fscal>::const_iterator it =
fZPosSet[
i].begin();
207 for (vector<int>::const_iterator it =
fZPosBins[
i].begin();
228 vector<vector<LitScalPixelHit*>>
fHits;
Base class for scalar pixel hits.
string ToString() const
Returns string representation of the class.
fscal GetZPosByBin(unsigned char station, int bin) const
vector< set< fscal > > fZPosSet
class lit::parallel::LitDetectorLayout _fvecalignment
int GetBinByZPos(unsigned char station, fscal zPos) const
unsigned char fNofStations
fscal GetMaxErrY(unsigned char station) const
Return maximum Y error in [cm] for specified station.
vector< vector< int > > fZPosBins
unsigned int GetNofHits(unsigned char station) const
Return number of hits for specified station.
void AddHit(LitScalPixelHit *hit)
Add hit.
const LitScalPixelHit * GetHit(unsigned char station, unsigned int hitId) const
Return hit pointer.
const vector< int > & GetZPosBins(unsigned char station) const
vector< vector< LitScalPixelHit * > > fHits
Class for accessing hits in track reconstruction.
void SetNofStations(unsigned char nofStations)
Set number of stations.
const vector< LitScalPixelHit * > & GetHits(unsigned char station)
Return vector of hits.
fscal GetMaxErrX(unsigned char station) const
Return maximum X error in [cm] for specified station.
void Clear()
Clear hit arrays.
Base class for scalar pixel hits.
virtual ~LitHitData()
Destructor.
Base class for scalar strip hits.
void Arrange()
Must be called after all hits are added.
fscal GetMinZPos(unsigned char station) const
friend ostream & operator<<(ostream &strm, const LitHitData &hitData)
Operator << for convenient output to ostream.
static const fscal EPSILON
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)