Go to the documentation of this file.
8 #ifndef LITMATERIALGRID_H_
9 #define LITMATERIALGRID_H_
22 using std::stringstream;
94 if (x < fXMin || x >
fXMax || y < fYMin || y >
fXMax) {
169 ss <<
"LitMaterialGrid:" <<
" Xmin=" <<
fXMin
173 <<
" material.size=" <<
fMaterial.size();
177 ss <<
"\nGrid: stepX=" << stepX <<
" stepY=" << stepY <<
"\n";
178 for (
unsigned int i = 0;
i < 11;
i++) {
179 for (
unsigned int j = 0; j < 11; j++) {
180 if (
i < 10 && j < 10)
181 ss << right << setfill(
' ') << setw(10)
183 if (j == 10 &&
i != 10)
184 ss << right << setfill(
' ') << setw(10)
186 if (
i == 10 && j != 10)
187 ss << right << setfill(
' ') << setw(10)
189 if (
i == 10 && j == 10)
190 ss << right << setfill(
' ') << setw(10)
vector< vector< fscal > > fMaterial
Class stores a grid of material thickness in silicon equivalent.
fscal GetMaterial(fscal x, fscal y) const
Return material thickness in silicon equivalent for (X, Y) position (scalar version).
class lit::parallel::LitDetectorLayout _fvecalignment
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.
string ToString() const
Return string representation of the class.
Header files for SSE operations.
friend ostream & operator<<(ostream &strm, const LitMaterialGrid &grid)
Operator << for convenient output to ostream.
bool IsEmpty() const
Check if material was set.
fvec GetMaterialValue(fvec x, fvec y) const
Return material thickness in silicon equivalent for (X, Y) position (SIMD version).