CbmRoot
lit::parallel::LitHitData Class Reference

Class for accessing hits in track reconstruction. More...

#include <LitHitData.h>

Collaboration diagram for lit::parallel::LitHitData:
[legend]

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 LitScalPixelHitGetHit (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< fscalfMaxErrX
 
vector< fscalfMaxErrY
 
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...
 

Detailed Description

Class for accessing hits in track reconstruction.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2009

Definition at line 36 of file LitHitData.h.

Constructor & Destructor Documentation

◆ LitHitData()

lit::parallel::LitHitData::LitHitData ( )
inline

Constructor.

Definition at line 41 of file LitHitData.h.

◆ ~LitHitData()

virtual lit::parallel::LitHitData::~LitHitData ( )
inlinevirtual

Destructor.

Definition at line 52 of file LitHitData.h.

Member Function Documentation

◆ AddHit()

void lit::parallel::LitHitData::AddHit ( LitScalPixelHit hit)
inline

Add hit.

Parameters
[in]stationStation index.
[in]hitPointer 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.

◆ Arrange()

void lit::parallel::LitHitData::Arrange ( )
inline

Must be called after all hits are added.

Definition at line 164 of file LitHitData.h.

References EPSILON, fNofStations, fZPosBins, and fZPosSet.

◆ Clear()

void lit::parallel::LitHitData::Clear ( )
inline

Clear hit arrays.

Definition at line 150 of file LitHitData.h.

References fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, fZPosSet, and i.

◆ GetBinByZPos()

int lit::parallel::LitHitData::GetBinByZPos ( unsigned char  station,
fscal  zPos 
) const
inline

Definition at line 139 of file LitHitData.h.

References EPSILON, and GetMinZPos().

◆ GetHit()

const LitScalPixelHit* lit::parallel::LitHitData::GetHit ( unsigned char  station,
unsigned int  hitId 
) const
inline

Return hit pointer.

Parameters
[in]stationStation index.
[in]hitIdHit index in array of hits for specified station.
Returns
Hit pointer.

Definition at line 90 of file LitHitData.h.

References fHits.

◆ GetHits()

const vector<LitScalPixelHit*>& lit::parallel::LitHitData::GetHits ( unsigned char  station)
inline

Return vector of hits.

Parameters
[in]stationStation index.
Returns
Vector of hits.

Definition at line 100 of file LitHitData.h.

References fHits.

◆ GetMaxErrX()

fscal lit::parallel::LitHitData::GetMaxErrX ( unsigned char  station) const
inline

Return maximum X error in [cm] for specified station.

Parameters
[in]stationStation index in station group.
Returns
Hit error.

Definition at line 118 of file LitHitData.h.

References fMaxErrX.

Referenced by ToString().

◆ GetMaxErrY()

fscal lit::parallel::LitHitData::GetMaxErrY ( unsigned char  station) const
inline

Return maximum Y error in [cm] for specified station.

Parameters
[in]stationStation index in station group.
Returns
Hit error.

Definition at line 127 of file LitHitData.h.

References fMaxErrY.

Referenced by ToString().

◆ GetMinZPos()

fscal lit::parallel::LitHitData::GetMinZPos ( unsigned char  station) const
inline

Definition at line 143 of file LitHitData.h.

References fZPosSet.

Referenced by GetBinByZPos(), and GetZPosByBin().

◆ GetNofHits()

unsigned int lit::parallel::LitHitData::GetNofHits ( unsigned char  station) const
inline

Return number of hits for specified station.

Parameters
[in]stationStation index.
Returns
Number of hits in station.

Definition at line 109 of file LitHitData.h.

References fHits.

Referenced by ToString().

◆ GetZPosBins()

const vector<int>& lit::parallel::LitHitData::GetZPosBins ( unsigned char  station) const
inline

Definition at line 131 of file LitHitData.h.

References fZPosBins.

◆ GetZPosByBin()

fscal lit::parallel::LitHitData::GetZPosByBin ( unsigned char  station,
int  bin 
) const
inline

Definition at line 135 of file LitHitData.h.

References EPSILON, and GetMinZPos().

Referenced by ToString().

◆ SetNofStations()

void lit::parallel::LitHitData::SetNofStations ( unsigned char  nofStations)
inline

Set number of stations.

Parameters
[in]layoutDetector layout.

Definition at line 58 of file LitHitData.h.

References fHits, fMaxErrX, fMaxErrY, fNofStations, fZPosBins, fZPosSet, and i.

◆ ToString()

string lit::parallel::LitHitData::ToString ( ) const
inline

Returns string representation of the class.

Returns
String representation of the class.

Definition at line 192 of file LitHitData.h.

References fHits, fZPosBins, fZPosSet, GetMaxErrX(), GetMaxErrY(), GetNofHits(), GetZPosByBin(), and i.

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  strm,
const LitHitData hitData 
)
friend

Operator << for convenient output to ostream.

Returns
Insertion stream in order to be able to call a succession of insertion operations.

Definition at line 221 of file LitHitData.h.

Member Data Documentation

◆ EPSILON

const fscal lit::parallel::LitHitData::EPSILON = 0.005
staticprivate

Definition at line 227 of file LitHitData.h.

Referenced by Arrange(), GetBinByZPos(), and GetZPosByBin().

◆ fHits

vector<vector<LitScalPixelHit*> > lit::parallel::LitHitData::fHits
private

Definition at line 228 of file LitHitData.h.

Referenced by AddHit(), Clear(), GetHit(), GetHits(), GetNofHits(), SetNofStations(), and ToString().

◆ fMaxErrX

vector<fscal> lit::parallel::LitHitData::fMaxErrX
private

Definition at line 229 of file LitHitData.h.

Referenced by AddHit(), Clear(), GetMaxErrX(), and SetNofStations().

◆ fMaxErrY

vector<fscal> lit::parallel::LitHitData::fMaxErrY
private

Definition at line 230 of file LitHitData.h.

Referenced by AddHit(), Clear(), GetMaxErrY(), and SetNofStations().

◆ fNofStations

unsigned char lit::parallel::LitHitData::fNofStations
private

Definition at line 231 of file LitHitData.h.

Referenced by AddHit(), Arrange(), Clear(), and SetNofStations().

◆ fZPosBins

vector<vector<int> > lit::parallel::LitHitData::fZPosBins
private

Definition at line 236 of file LitHitData.h.

Referenced by Arrange(), Clear(), GetZPosBins(), SetNofStations(), and ToString().

◆ fZPosSet

vector<set<fscal> > lit::parallel::LitHitData::fZPosSet
private

Definition at line 233 of file LitHitData.h.

Referenced by AddHit(), Arrange(), Clear(), GetMinZPos(), SetNofStations(), and ToString().


The documentation for this class was generated from the following files: