CbmRoot
Loading...
Searching...
No Matches
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.
 
virtual ~LitHitData ()
 Destructor.
 
void SetNofStations (unsigned char nofStations)
 Set number of stations.
 
void AddHit (LitScalPixelHit *hit)
 Add hit.
 
const LitScalPixelHitGetHit (unsigned char station, unsigned int hitId) const
 Return hit pointer.
 
const vector< LitScalPixelHit * > & GetHits (unsigned char station)
 Return vector of hits.
 
unsigned int GetNofHits (unsigned char station) const
 Return number of hits for specified station.
 
fscal GetMaxErrX (unsigned char station) const
 Return maximum X error in [cm] for specified station.
 
fscal GetMaxErrY (unsigned char station) const
 Return maximum Y error in [cm] for specified station.
 
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.
 
void Arrange ()
 Must be called after all hits are added.
 
string ToString () const
 Returns string representation of the class.
 

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.
 

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 42 of file LitHitData.h.

Constructor & Destructor Documentation

◆ LitHitData()

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

Constructor.

Definition at line 47 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 76 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 151 of file LitHitData.h.

References EPSILON, fNofStations, fZPosBins, and fZPosSet.

◆ Clear()

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

Clear hit arrays.

Definition at line 136 of file LitHitData.h.

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

◆ GetBinByZPos()

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

Definition at line 126 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 92 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 99 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 113 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 120 of file LitHitData.h.

References fMaxErrY.

Referenced by ToString().

◆ GetMinZPos()

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

Definition at line 128 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 106 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 122 of file LitHitData.h.

References fZPosBins.

◆ GetZPosByBin()

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

Definition at line 124 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, and fZPosSet.

◆ ToString()

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

Returns string representation of the class.

Returns
String representation of the class.

Definition at line 179 of file LitHitData.h.

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

Friends And Related Symbol 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 204 of file LitHitData.h.

Member Data Documentation

◆ EPSILON

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

Definition at line 211 of file LitHitData.h.

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

◆ fHits

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

Definition at line 212 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 213 of file LitHitData.h.

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

◆ fMaxErrY

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

Definition at line 214 of file LitHitData.h.

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

◆ fNofStations

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

Definition at line 215 of file LitHitData.h.

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

◆ fZPosBins

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

Definition at line 218 of file LitHitData.h.

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

◆ fZPosSet

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

Definition at line 216 of file LitHitData.h.

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


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