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

Represents detector layout. More...

#include <LitDetectorLayout.h>

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

Public Member Functions

 LitDetectorLayout ()
 Constructor.
 
virtual ~LitDetectorLayout ()
 Destructor.
 
void AddStation (const LitStation< T > &station)
 Add station to detector layout.
 
void AddVirtualStation (const LitVirtualStation< T > &virtualStation)
 Add virtual station to detector layout.
 
unsigned char GetNofStations () const
 Return number of stations.
 
unsigned char GetNofVirtualStations () const
 Return number of virtual stations.
 
const LitStation< T > & GetStation (unsigned char station) const
 Return station by index.
 
const LitVirtualStation< T > & GetVirtualStation (unsigned char virtualStation) const
 Return virtual station by index.
 
string ToString () const
 Returns string representation of the class.
 

Private Attributes

vector< LitStation< T > > fStations
 
vector< LitVirtualStation< T > > fVirtualStations
 

Friends

ostream & operator<< (ostream &strm, const LitDetectorLayout &layout)
 Operator << for convenient output to ostream.
 

Detailed Description

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

Represents detector layout.

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

Detector layout provides access to the detector information. It stores a list of virtual planes and a list of stations.

Definition at line 39 of file LitDetectorLayout.h.

Constructor & Destructor Documentation

◆ LitDetectorLayout()

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

Constructor.

Definition at line 44 of file LitDetectorLayout.h.

◆ ~LitDetectorLayout()

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

Destructor.

Definition at line 49 of file LitDetectorLayout.h.

Member Function Documentation

◆ AddStation()

template<class T >
void lit::parallel::LitDetectorLayout< T >::AddStation ( const LitStation< T > & station)
inline

Add station to detector layout.

Parameters
[in]stationStation to be added.

Definition at line 55 of file LitDetectorLayout.h.

References lit::parallel::LitDetectorLayout< T >::fStations.

Referenced by CbmLitTrackingGeometryConstructor::GetMuchLayout(), and CbmLitTrackingGeometryConstructor::GetTrdLayout().

◆ AddVirtualStation()

template<class T >
void lit::parallel::LitDetectorLayout< T >::AddVirtualStation ( const LitVirtualStation< T > & virtualStation)
inline

Add virtual station to detector layout.

Parameters
[in]virtualStationVirtual station to be added.

Definition at line 61 of file LitDetectorLayout.h.

References lit::parallel::LitDetectorLayout< T >::fVirtualStations.

Referenced by CbmLitTrackingGeometryConstructor::GetTrdLayout().

◆ GetNofStations()

template<class T >
unsigned char lit::parallel::LitDetectorLayout< T >::GetNofStations ( ) const
inline

Return number of stations.

Returns
Number of stations.

Definition at line 67 of file LitDetectorLayout.h.

References lit::parallel::LitDetectorLayout< T >::fStations.

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

◆ GetNofVirtualStations()

template<class T >
unsigned char lit::parallel::LitDetectorLayout< T >::GetNofVirtualStations ( ) const
inline

Return number of virtual stations.

Returns
Number of virtual stations.

Definition at line 73 of file LitDetectorLayout.h.

References lit::parallel::LitDetectorLayout< T >::fVirtualStations.

Referenced by lit::parallel::LitTrackFitter(), and lit::parallel::LitDetectorLayout< T >::ToString().

◆ GetStation()

template<class T >
const LitStation< T > & lit::parallel::LitDetectorLayout< T >::GetStation ( unsigned char station) const
inline

Return station by index.

Parameters
[in]stationIndex of station.
Returns
Station by index.

Definition at line 80 of file LitDetectorLayout.h.

References lit::parallel::LitDetectorLayout< T >::fStations.

Referenced by lit::parallel::LitTrackFitter(), and lit::parallel::LitDetectorLayout< T >::ToString().

◆ GetVirtualStation()

template<class T >
const LitVirtualStation< T > & lit::parallel::LitDetectorLayout< T >::GetVirtualStation ( unsigned char virtualStation) const
inline

Return virtual station by index.

Parameters
[in]stationVirtual station index.
Returns
Virtual station by index.

Definition at line 87 of file LitDetectorLayout.h.

References lit::parallel::LitDetectorLayout< T >::fVirtualStations.

Referenced by lit::parallel::LitTrackFitter(), and lit::parallel::LitDetectorLayout< T >::ToString().

◆ ToString()

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

Friends And Related Symbol Documentation

◆ operator<<

template<class T >
ostream & operator<< ( ostream & strm,
const LitDetectorLayout< T > & layout )
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 115 of file LitDetectorLayout.h.

Member Data Documentation

◆ fStations

◆ fVirtualStations


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