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

Private Attributes

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

Friends

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

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 33 of file LitDetectorLayout.h.

Constructor & Destructor Documentation

◆ LitDetectorLayout()

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

Constructor.

Definition at line 38 of file LitDetectorLayout.h.

◆ ~LitDetectorLayout()

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

Destructor.

Definition at line 43 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 49 of file LitDetectorLayout.h.

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 57 of file LitDetectorLayout.h.

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 65 of file LitDetectorLayout.h.

Referenced by lit::parallel::LitDetectorLayout< fscal >::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 71 of file LitDetectorLayout.h.

Referenced by lit::parallel::LitTrackFitter(), and lit::parallel::LitDetectorLayout< fscal >::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.

Referenced by lit::parallel::LitTrackFitter(), and lit::parallel::LitDetectorLayout< fscal >::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 90 of file LitDetectorLayout.h.

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

◆ ToString()

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

Returns string representation of the class.

Returns
String representation of the class.

Definition at line 98 of file LitDetectorLayout.h.

Friends And Related Function 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 117 of file LitDetectorLayout.h.

Member Data Documentation

◆ fStations

◆ fVirtualStations


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