CbmRoot
Loading...
Searching...
No Matches
lit::parallel::LitHitDataMuon< T > Class Template Reference

#include <LitHitDataMuon.h>

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

Public Member Functions

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

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.
 

Detailed Description

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

Definition at line 34 of file LitHitDataMuon.h.

Constructor & Destructor Documentation

◆ LitHitDataMuon()

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

Constructor.

Definition at line 39 of file LitHitDataMuon.h.

◆ ~LitHitDataMuon()

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

Destructor.

Definition at line 44 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 78 of file LitHitDataMuon.h.

References lit::parallel::LitScalPixelHit::Dx, lit::parallel::LitHitDataMuon< T >::fHits, and lit::parallel::LitHitDataMuon< T >::fMaxErr.

Referenced by lit::parallel::LitHitDataMuon< T >::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 91 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::AddHit(), and lit::parallel::LitHitDataMuon< T >::StationByPlaneId().

◆ Clear()

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

◆ 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 108 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::fHits.

◆ 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 120 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::fHits.

◆ 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 144 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::fMaxErr.

Referenced by lit::parallel::LitHitDataMuon< T >::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 132 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::fHits.

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

◆ SetDetectorLayout()

◆ SortHits()

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

Sort hits in each substation by X coordinate.

Definition at line 168 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::fHits, and lit::parallel::LitHitDataMuon< T >::fLayout.

◆ 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 224 of file LitHitDataMuon.h.

References counter, and lit::parallel::LitHitDataMuon< T >::fLayout.

Referenced by lit::parallel::LitHitDataMuon< T >::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 189 of file LitHitDataMuon.h.

References lit::parallel::LitHitDataMuon< T >::fLayout, lit::parallel::LitHitDataMuon< T >::GetMaxErr(), lit::parallel::LitHitDataMuon< T >::GetNofHits(), and lit::parallel::ToString().

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

Member Data Documentation

◆ fHits

◆ fLayout

◆ fMaxErr


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