CbmRoot
|
Class stores a grid of material thickness in silicon equivalent. More...
#include <LitMaterialGrid.h>
Public Member Functions | |
void | SetMaterial (const vector< vector< fscal >> &material, fscal xmin, fscal xmax, fscal ymin, fscal ymax, int nofBinsX, int nofBinsY) |
Returns Z position of the grid. More... | |
fscal | GetMaterial (fscal x, fscal y) const |
Return material thickness in silicon equivalent for (X, Y) position (scalar version). More... | |
fvec | GetMaterialValue (fvec x, fvec y) const |
Return material thickness in silicon equivalent for (X, Y) position (SIMD version). More... | |
bool | IsEmpty () const |
Check if material was set. More... | |
string | ToString () const |
Return string representation of the class. More... | |
Private Attributes | |
fscal | fXMin |
fscal | fXMax |
fscal | fYMin |
fscal | fYMax |
unsigned short | fNofBinsX |
unsigned short | fNofBinsY |
fscal | fBinSizeX |
fscal | fBinSizeY |
vector< vector< fscal > > | fMaterial |
Friends | |
ostream & | operator<< (ostream &strm, const LitMaterialGrid &grid) |
Operator << for convenient output to ostream. More... | |
Class stores a grid of material thickness in silicon equivalent.
Each object of this class stores a slice in XY for approximated material thickness in silicon equivalent.
Definition at line 37 of file LitMaterialGrid.h.
Return material thickness in silicon equivalent for (X, Y) position (scalar version).
[in] | x | X position. |
[in] | y | Y position. |
Definition at line 91 of file LitMaterialGrid.h.
References fBinSizeX, fBinSizeY, fMaterial, fNofBinsX, fNofBinsY, fXMax, fXMin, fYMin, x, and y.
Referenced by GetMaterialValue(), lit::parallel::LitTrackFitter(), lit::parallel::LitTrackFinderNN::PropagateToStation(), and lit::parallel::LitTrackFinderNN::PropagateVirtualStations().
Return material thickness in silicon equivalent for (X, Y) position (SIMD version).
[in] | x | X position. |
[in] | y | Y position. |
Definition at line 149 of file LitMaterialGrid.h.
|
inline |
Check if material was set.
Definition at line 161 of file LitMaterialGrid.h.
References fMaterial.
Referenced by lit::parallel::LitTrackFitter(), lit::parallel::LitTrackFinderNN::PropagateToStation(), and lit::parallel::LitTrackFinderNN::PropagateVirtualStations().
|
inline |
Returns Z position of the grid.
Sets Z position of the grid.
[in] | Z | position of the grid. |
Set material thicknesses for the grid.
Grid is a rectangle with (xmin, ymax) as a top left corner and (xmax, ymin) as a bottom right corner and has a total number of bins nofBinsX*nofBinsY.
[in] | material | 2D vector of silicon thickness. |
[in] | xmax | Maximum X position. |
[in] | xmin | Minimum X position. |
[in] | ymax | Maximum Y position. |
[in] | ymin | Minimum Y position. |
[in] | nofBinsX | Number of bins in X. |
[in] | nofBinsY | Number of bins in Y. |
Definition at line 67 of file LitMaterialGrid.h.
References fBinSizeX, fBinSizeY, fMaterial, fNofBinsX, fNofBinsY, fXMax, fXMin, fYMax, and fYMin.
Referenced by CbmLitTrackingGeometryConstructor::ConvertTProfile2DToLitMaterialGrid().
|
inline |
Return string representation of the class.
Definition at line 167 of file LitMaterialGrid.h.
References fBinSizeX, fBinSizeY, fMaterial, fNofBinsX, fNofBinsY, fXMax, fXMin, fYMax, fYMin, and i.
Referenced by lit::parallel::LitVirtualStation< T >::ToString().
|
friend |
Operator << for convenient output to ostream.
Definition at line 203 of file LitMaterialGrid.h.
|
private |
Definition at line 214 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().
|
private |
Definition at line 215 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().
|
private |
Definition at line 219 of file LitMaterialGrid.h.
Referenced by GetMaterial(), IsEmpty(), SetMaterial(), and ToString().
|
private |
Definition at line 212 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().
|
private |
Definition at line 213 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().
|
private |
Definition at line 209 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().
|
private |
Definition at line 209 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().
|
private |
Definition at line 210 of file LitMaterialGrid.h.
Referenced by SetMaterial(), and ToString().
|
private |
Definition at line 210 of file LitMaterialGrid.h.
Referenced by GetMaterial(), SetMaterial(), and ToString().