CbmRoot
lit::parallel::LitHitDataMuon< T > Class Template Reference

#include <LitHitDataMuon.h>

Inheritance diagram for lit::parallel::LitHitDataMuon< T >:
[legend]

Public Member Functions

 LitHitDataMuon ()
 Constructor. More...
 
virtual ~LitHitDataMuon ()
 Destructor. More...
 
void SetDetectorLayout (const LitDetectorLayoutMuon< T > &layout)
 Set detector layout for which hits are arranged. More...
 
void AddHit (int stationGroup, int station, int substation, LitScalPixelHit *hit)
 Add hit using station group, station and substation indices. More...
 
void AddHit (unsigned char planeId, LitScalPixelHit *hit)
 Add hit using absolute detector plane (substation) index in the detector. More...
 
const LitScalPixelHitGetHit (int stationGroup, int station, int substation, int hitId) const
 Return hit using station group, station and substation indices. More...
 
const std::vector< LitScalPixelHit * > & GetHits (int stationGroup, int station, int substation)
 Return hit vector using station group, station and substation indices. More...
 
unsigned int GetNofHits (int stationGroup, int station, int substation) const
 Return number of hits for the specified substation. More...
 
fscal GetMaxErr (int stationGroup, int station, int substation) const
 Return maximum hit error in [cm] for the specified substation. More...
 
void Clear ()
 Clear hit arrays. More...
 
void SortHits ()
 Sort hits in each substation by X coordinate. More...
 
std::string ToString () const
 Return std::string representation for the class. More...
 
void StationByPlaneId (unsigned char planeId, unsigned char &stationGroup, unsigned char &station, unsigned char &substation) const
 Calculate station group, station and substation indices using the detector plane number. More...
 

Public Attributes

std::vector< std::vector< std::vector< PixelHitArray > > > fHits
 
std::vector< std::vector< std::vector< fscal > > > fMaxErr
 
LitDetectorLayoutMuon< T > fLayout
 

Friends

std::ostream & operator<< (std::ostream &strm, const LitHitDataMuon &hitData)
 Operator << for convenient output to std::ostream. More...
 

Detailed Description

template<class T>
class lit::parallel::LitHitDataMuon< T >

Definition at line 28 of file LitHitDataMuon.h.

Constructor & Destructor Documentation

◆ LitHitDataMuon()

template<class T >
lit::parallel::LitHitDataMuon< T >::LitHitDataMuon ( )
inline

Constructor.

Definition at line 33 of file LitHitDataMuon.h.

◆ ~LitHitDataMuon()

template<class T >
virtual lit::parallel::LitHitDataMuon< T >::~LitHitDataMuon ( )
inlinevirtual

Destructor.

Definition at line 38 of file LitHitDataMuon.h.

Member Function Documentation

◆ AddHit() [1/2]

template<class T >
void lit::parallel::LitHitDataMuon< T >::AddHit ( int  stationGroup,
int  station,
int  substation,
LitScalPixelHit hit 
)
inline

Add hit using station group, station and substation indices.

Parameters
[in]stationGroupIndex of the station group in the detector.
[in]stationIndex of the station in the station group.
[in]substationIndex of the substation in the station.
[in]hitPointer to the hit to be added.

Definition at line 71 of file LitHitDataMuon.h.

Referenced by lit::parallel::LitHitDataMuon< F32vec4 >::AddHit().

◆ AddHit() [2/2]

template<class T >
void lit::parallel::LitHitDataMuon< T >::AddHit ( unsigned char  planeId,
LitScalPixelHit hit 
)
inline

Add hit using absolute detector plane (substation) index in the detector.

Parameters
[in]planeIdIndex of the detector plane (substation) in the detector.
[in]hitPointer to the hit to be added.

Definition at line 86 of file LitHitDataMuon.h.

◆ Clear()

template<class T >
void lit::parallel::LitHitDataMuon< T >::Clear ( )
inline

Clear hit arrays.

Definition at line 145 of file LitHitDataMuon.h.

◆ GetHit()

template<class T >
const LitScalPixelHit* lit::parallel::LitHitDataMuon< T >::GetHit ( int  stationGroup,
int  station,
int  substation,
int  hitId 
) const
inline

Return hit using station group, station and substation indices.

Parameters
[in]stationGroupIndex of the station group in the detector.
[in]stationIndex of the station in the station group.
[in]substationIndex of the substation in the station.
[in]hitIdHit index in the array of hits for the specified substation.
Returns
Hit pointer.

Definition at line 103 of file LitHitDataMuon.h.

◆ GetHits()

template<class T >
const std::vector<LitScalPixelHit*>& lit::parallel::LitHitDataMuon< T >::GetHits ( int  stationGroup,
int  station,
int  substation 
)
inline

Return hit vector using station group, station and substation indices.

Parameters
[in]stationGroupIndex of the station group in the detector.
[in]stationIndex of the station in the station group.
[in]substationIndex of the substation in the station.
Returns
Hit vector.

Definition at line 115 of file LitHitDataMuon.h.

◆ GetMaxErr()

template<class T >
fscal lit::parallel::LitHitDataMuon< T >::GetMaxErr ( int  stationGroup,
int  station,
int  substation 
) const
inline

Return maximum hit error in [cm] for the specified substation.

Parameters
[in]stationGroupIndex of the station group in the detector.
[in]stationIndex of the station in the station group.
[in]substationIndex of the substation in the station.
Returns
Maximum hit error.

Definition at line 138 of file LitHitDataMuon.h.

Referenced by lit::parallel::LitHitDataMuon< F32vec4 >::ToString().

◆ GetNofHits()

template<class T >
unsigned int lit::parallel::LitHitDataMuon< T >::GetNofHits ( int  stationGroup,
int  station,
int  substation 
) const
inline

Return number of hits for the specified substation.

Parameters
[in]stationGroupIndex of the station group in the detector.
[in]stationIndex of the station in the station group.
[in]substationIndex of the substation in the station.
Returns
Number of hits.

Definition at line 127 of file LitHitDataMuon.h.

Referenced by lit::parallel::LitHitDataMuon< F32vec4 >::ToString().

◆ SetDetectorLayout()

template<class T >
void lit::parallel::LitHitDataMuon< T >::SetDetectorLayout ( const LitDetectorLayoutMuon< T > &  layout)
inline

Set detector layout for which hits are arranged.

Parameters
[in]layoutDetector layout.

Definition at line 44 of file LitHitDataMuon.h.

◆ SortHits()

template<class T >
void lit::parallel::LitHitDataMuon< T >::SortHits ( )
inline

Sort hits in each substation by X coordinate.

Definition at line 160 of file LitHitDataMuon.h.

◆ StationByPlaneId()

template<class T >
void lit::parallel::LitHitDataMuon< T >::StationByPlaneId ( unsigned char  planeId,
unsigned char &  stationGroup,
unsigned char &  station,
unsigned char &  substation 
) const
inline

Calculate station group, station and substation indices using the detector plane number.

Parameters
[in]planeIdDetector plane index.
[out]stationGroupIndex of the station group in the detector.
[out]stationIndex of the station in the station group.
[out]subsattionIndex of the substation in the station.

Definition at line 215 of file LitHitDataMuon.h.

Referenced by lit::parallel::LitHitDataMuon< F32vec4 >::AddHit().

◆ ToString()

template<class T >
std::string lit::parallel::LitHitDataMuon< T >::ToString ( ) const
inline

Return std::string representation for the class.

Returns
std::string representation for the class.

Definition at line 180 of file LitHitDataMuon.h.

Friends And Related Function Documentation

◆ operator<<

template<class T >
std::ostream& operator<< ( std::ostream &  strm,
const LitHitDataMuon< T > &  hitData 
)
friend

Operator << for convenient output to std::ostream.

Returns
std::ostream for continuous output.

Definition at line 201 of file LitHitDataMuon.h.

Member Data Documentation

◆ fHits

◆ fLayout

◆ fMaxErr


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