CbmRoot
CbmLitHitData Class Reference

#include <CbmLitHitData.h>

Collaboration diagram for CbmLitHitData:
[legend]

Public Member Functions

 CbmLitHitData ()
 Constructor. More...
 
virtual ~CbmLitHitData ()
 Destructor. More...
 
void SetNofStations (Int_t nofStations)
 Set number of stations. More...
 
void AddHit (CbmLitHit *hit)
 Add hit. More...
 
const CbmLitHitGetHit (Int_t station, Int_t hitId) const
 Return hit pointer. More...
 
const HitPtrVectorGetHits (Int_t station)
 Return array of hits. More...
 
Int_t GetNofHits (Int_t station) const
 Return number of hits for the specified station index. More...
 
litfloat GetMaxErrX (Int_t station) const
 
litfloat GetMaxErrY (Int_t station) const
 
litfloat GetMaxErrT (Int_t station) const
 
const vector< Int_t > & GetZPosBins (Int_t station) const
 Return bin numbers for Z positions of hits. More...
 
litfloat GetZPosByBin (Int_t station, Int_t bin) const
 Return Z positions of hit. More...
 
Int_t GetBinByZPos (Int_t station, litfloat zPos) const
 Return bin number for hit Z position. More...
 
litfloat GetMinZPos (Int_t station) const
 Return minimum Z position of hits. More...
 
void Clear ()
 Clear array of hits. More...
 
void Arrange ()
 Must be called after all hits are added. More...
 
virtual string ToString () const
 Return string representation of this class. More...
 

Private Attributes

vector< HitPtrVectorfHits
 
vector< litfloatfMaxErrX
 
vector< litfloatfMaxErrY
 
vector< litfloatfMaxErrT
 
Int_t fNofStations
 
vector< set< litfloat > > fZPosSet
 
vector< vector< Int_t > > fZPosBins
 

Static Private Attributes

static const litfloat EPSILON = 0.005
 

Detailed Description

Definition at line 25 of file CbmLitHitData.h.

Constructor & Destructor Documentation

◆ CbmLitHitData()

CbmLitHitData::CbmLitHitData ( )

Constructor.

Definition at line 23 of file CbmLitHitData.cxx.

◆ ~CbmLitHitData()

CbmLitHitData::~CbmLitHitData ( )
virtual

Destructor.

Definition at line 26 of file CbmLitHitData.cxx.

Member Function Documentation

◆ AddHit()

◆ Arrange()

void CbmLitHitData::Arrange ( )

Must be called after all hits are added.

Definition at line 120 of file CbmLitHitData.cxx.

References EPSILON, fNofStations, fZPosBins, and fZPosSet.

Referenced by CbmLitTrackFinderNN::ArrangeHits(), and CbmLitTrackFinderBranch::ArrangeHits().

◆ Clear()

void CbmLitHitData::Clear ( )

Clear array of hits.

Definition at line 108 of file CbmLitHitData.cxx.

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

Referenced by CbmLitTrackFinderNN::DoFind(), and CbmLitTrackFinderBranch::DoFind().

◆ GetBinByZPos()

Int_t CbmLitHitData::GetBinByZPos ( Int_t  station,
litfloat  zPos 
) const

Return bin number for hit Z position.

Parameters
[in]stationIndex of station.
[in]zPosZ position.
Returns
Bin number.

Definition at line 100 of file CbmLitHitData.cxx.

References EPSILON, and GetMinZPos().

Referenced by CbmLitTrackFinderNN::FollowTracks(), and CbmLitTrackFinderBranch::FollowTracks().

◆ GetHit()

const CbmLitHit * CbmLitHitData::GetHit ( Int_t  station,
Int_t  hitId 
) const

Return hit pointer.

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

Definition at line 62 of file CbmLitHitData.cxx.

References fHits.

◆ GetHits()

const HitPtrVector & CbmLitHitData::GetHits ( Int_t  station)

Return array of hits.

Parameters
[in]stationIndex of station.
Returns
Array of hits.

Definition at line 66 of file CbmLitHitData.cxx.

References fHits.

Referenced by CbmLitTrackFinderNN::FollowTracks(), and CbmLitTrackFinderBranch::FollowTracks().

◆ GetMaxErrT()

litfloat CbmLitHitData::GetMaxErrT ( Int_t  station) const

\breif Return maximum hit error in [ns].

Parameters
[in]stationIndex of station.
Returns
hit error.

Definition at line 82 of file CbmLitHitData.cxx.

References fMaxErrT.

Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and ToString().

◆ GetMaxErrX()

litfloat CbmLitHitData::GetMaxErrX ( Int_t  station) const

\breif Return maximum hit error in [cm] and coordinate name ("X", "Y", "U").

Parameters
[in]stationIndex of station.
Returns
Pair of hit error and and coordinate name.

Definition at line 74 of file CbmLitHitData.cxx.

References fMaxErrX.

Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and ToString().

◆ GetMaxErrY()

litfloat CbmLitHitData::GetMaxErrY ( Int_t  station) const

\breif Return maximum hit error in [cm] and coordinate name ("X", "Y", "U").

Parameters
[in]stationIndex of station.
Returns
Pair of hit error and and coordinate name.

Definition at line 78 of file CbmLitHitData.cxx.

References fMaxErrY.

Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and ToString().

◆ GetMinZPos()

litfloat CbmLitHitData::GetMinZPos ( Int_t  station) const

Return minimum Z position of hits.

Parameters
[in]stationIndex of station.
Returns
minimum Z position of hits

Definition at line 104 of file CbmLitHitData.cxx.

References fZPosSet.

Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), GetBinByZPos(), and GetZPosByBin().

◆ GetNofHits()

Int_t CbmLitHitData::GetNofHits ( Int_t  station) const

Return number of hits for the specified station index.

Parameters
[in]stationIndex of station.
Returns
Number of hits for the specified station index.

Definition at line 70 of file CbmLitHitData.cxx.

References fHits.

Referenced by ToString().

◆ GetZPosBins()

const vector< Int_t > & CbmLitHitData::GetZPosBins ( Int_t  station) const

Return bin numbers for Z positions of hits.

Parameters
[in]stationIndex of station.
Returns
Bin numbers.

Definition at line 92 of file CbmLitHitData.cxx.

References fZPosBins.

Referenced by CbmLitTrackFinderNN::FollowTracks(), and CbmLitTrackFinderBranch::FollowTracks().

◆ GetZPosByBin()

litfloat CbmLitHitData::GetZPosByBin ( Int_t  station,
Int_t  bin 
) const

Return Z positions of hit.

Parameters
[in]stationIndex of station.
[in]binBin number.
Returns
Z positions of hits

Definition at line 96 of file CbmLitHitData.cxx.

References EPSILON, and GetMinZPos().

Referenced by CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and ToString().

◆ SetNofStations()

void CbmLitHitData::SetNofStations ( Int_t  nofStations)

Set number of stations.

Definition at line 28 of file CbmLitHitData.cxx.

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

Referenced by CbmLitTrackFinderNN::DoFind(), and CbmLitTrackFinderBranch::DoFind().

◆ ToString()

string CbmLitHitData::ToString ( ) const
virtual

Return string representation of this class.

Returns
String representation of the class.

Definition at line 144 of file CbmLitHitData.cxx.

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

Member Data Documentation

◆ EPSILON

const litfloat CbmLitHitData::EPSILON = 0.005
staticprivate

Definition at line 146 of file CbmLitHitData.h.

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

◆ fHits

vector<HitPtrVector> CbmLitHitData::fHits
private

Definition at line 147 of file CbmLitHitData.h.

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

◆ fMaxErrT

vector<litfloat> CbmLitHitData::fMaxErrT
private

Definition at line 153 of file CbmLitHitData.h.

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

◆ fMaxErrX

vector<litfloat> CbmLitHitData::fMaxErrX
private

Definition at line 149 of file CbmLitHitData.h.

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

◆ fMaxErrY

vector<litfloat> CbmLitHitData::fMaxErrY
private

Definition at line 151 of file CbmLitHitData.h.

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

◆ fNofStations

Int_t CbmLitHitData::fNofStations
private

Definition at line 154 of file CbmLitHitData.h.

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

◆ fZPosBins

vector<vector<Int_t> > CbmLitHitData::fZPosBins
private

Definition at line 159 of file CbmLitHitData.h.

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

◆ fZPosSet

vector<set<litfloat> > CbmLitHitData::fZPosSet
private

Definition at line 155 of file CbmLitHitData.h.

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


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