Go to the documentation of this file.
7 #ifndef LITFIELDGRID_H_
8 #define LITFIELDGRID_H_
21 using std::stringstream;
116 if (x < fXMin || x >
fXMax || y < fYMin || y >
fXMax) {
201 ss <<
"LitFieldGrid: Z=" <<
fZ <<
" Xmin=" <<
fXMin <<
" Xmax=" <<
fXMax
205 <<
" field.size=" <<
fField.size();
241 vector<vector<LitFieldValue<fscal>>>
fField;
void GetFieldValue(fscal x, fscal y, LitFieldValue< fscal > &B) const
Return field value for (X, Y) position (scalar version).
void GetFieldValue(fvec x, fvec y, LitFieldValue< fvec > &B) const
Returns field value for (X, Y) position (SIMD version).
LitFieldGrid()
Constructor.
friend ostream & operator<<(ostream &strm, const LitFieldGrid &grid)
Operator << for convenient output to ostream.
class lit::parallel::LitDetectorLayout _fvecalignment
string ToString() const
Returns string representation of the class.
bool IsEmpty() const
Check if field was set.
Class stores a grid of magnetic field values in XY slice at Z position.
Magnetic field value at a certain point in the space.
void SetZ(fscal Z)
Sets Z position of the grid.
void SetField(const vector< vector< LitFieldValue< fscal >>> &field, fscal xmin, fscal xmax, fscal ymin, fscal ymax, int nofBinsX, int nofBinsY)
Set field values for the grid.
Magnetic field value at a certain point in the space.
fscal GetZ() const
Returns Z position of the grid.
vector< vector< LitFieldValue< fscal > > > fField