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. | |
fscal | GetMaterial (fscal x, fscal y) const |
Return material thickness in silicon equivalent for (X, Y) position (scalar version). | |
fvec | GetMaterialValue (fvec x, fvec y) const |
Return material thickness in silicon equivalent for (X, Y) position (SIMD version). | |
bool | IsEmpty () const |
Check if material was set. | |
string | ToString () const |
Return string representation of the class. | |
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. | |
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 44 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 94 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 153 of file LitMaterialGrid.h.
References GetMaterial(), v, x, and y.
|
inline |
Check if material was set.
Definition at line 166 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 74 of file LitMaterialGrid.h.
References fBinSizeX, fBinSizeY, fMaterial, fNofBinsX, fNofBinsY, fXMax, fXMin, fYMax, and fYMin.
Referenced by CbmLitTrackingGeometryConstructor::ConvertTProfile2DToLitMaterialGrid().
|
inline |
|
friend |
Operator << for convenient output to ostream.
Definition at line 202 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().