Go to the documentation of this file.
8 #ifndef LITSTATIONGROUP_H_
9 #define LITSTATIONGROUP_H_
11 #include "../LitFieldGrid.h"
12 #include "../LitFieldRegion.h"
146 std::string str =
"LitStationGroupMuon: nofStations="
150 str +=
" " + lit::parallel::ToString<int>((
int)
i) +
" "
LitFieldGrid fFieldGridBack
void SetFieldGridBack(const LitFieldGrid &fieldGrid)
Set magnetic field grid in the back of the absorber.
void GetFieldValue(fscal x, fscal y, LitFieldValue< fscal > &B) const
Return field value for (X, Y) position (scalar version).
Absorber in muon detector layout.
void AddStation(const LitStationMuon< T > &station)
Add station to the station group.
void SetFieldGridMiddle(const LitFieldGrid &fieldGrid)
Set field grid in the middle of the absorber.
void SetAbsorber(const LitAbsorber< T > &absorber)
Set absorber.
LitFieldGrid fFieldGridMiddle
LitAbsorber< T > fAbsorber
std::string ToString() const
Return std::string representation for the class.
class lit::parallel::LitDetectorLayout _fvecalignment
LitStationGroupMuon< fscal > LitStationGroupMuonScal
const LitAbsorber< T > & GetAbsorber() const
Return absorber.
void SetFieldGridFront(const LitFieldGrid &fieldGrid)
Set field grid in front of the absorber.
LitStationGroupMuon< fvec > LitStationGroupMuonVec
const LitFieldGrid & GetFieldGridBack() const
Return magnetic field grid in the back of the absorber.
Class stores a grid of magnetic field values in XY slice at Z position.
Storage for field approximation along Z.
Magnetic field value at a certain point in the space.
const LitFieldGrid & GetFieldGridFront() const
Return magnetic field grid in front of the absorber.
unsigned char GetNofStations() const
Return number of stations in this station group.
friend std::ostream & operator<<(std::ostream &strm, const LitStationGroupMuon &stationGroup)
Operator << for convenient output to std::ostream.
LitFieldGrid fFieldGridFront
const LitFieldGrid & GetFieldGridMiddle() const
Return magnetic field grid in the middle of the absorber.
virtual ~LitStationGroupMuon()
Destructor.
void Set(const LitFieldValue< T > &B0, const T B0z, const LitFieldValue< T > &B1, const T B1z, const LitFieldValue< T > &B2, const T B2z)
Sets field region using three field values.
fscal GetZ() const
Returns Z position of the grid.
LitStationGroupMuon()
Constructor.
void GetFieldRegion(T x, T y, LitFieldRegion< T > &field) const
Calculate field region for the group of stations.
Absorber in muon detector layout.
const LitStationMuon< T > & GetStation(unsigned short index) const
Return station by index.
Station in muon detector layout.
std::vector< LitStationMuon< T > > fStations