11#ifndef LITFIELDGRID_H_
12#define LITFIELDGRID_H_
26using std::stringstream;
99 int nofBinsX,
int nofBinsY)
187 for (
size_t i = 0; i < fvec::size(); i++) {
209 ss <<
"LitFieldGrid: Z=" <<
fZ <<
" Xmin=" <<
fXMin <<
" Xmax=" <<
fXMax <<
" Ymin=" <<
fYMin
248 vector<vector<LitFieldValue<fscal>>>
fField;
Magnetic field value at a certain point in the space.
Class stores a grid of magnetic field values in XY slice at Z position.
string ToString() const
Returns string representation of the class.
bool IsEmpty() const
Check if field was set.
void SetZ(fscal Z)
Sets Z position of the grid.
friend ostream & operator<<(ostream &strm, const LitFieldGrid &grid)
Operator << for convenient output to ostream.
fscal GetZ() const
Returns 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.
void GetFieldValue(fvec x, fvec y, LitFieldValue< fvec > &B) const
Returns field value for (X, Y) position (SIMD version).
vector< vector< LitFieldValue< fscal > > > fField
void GetFieldValue(fscal x, fscal y, LitFieldValue< fscal > &B) const
Return field value for (X, Y) position (scalar version).
LitFieldGrid()
Constructor.
Magnetic field value at a certain point in the space.
class lit::parallel::LitDetectorLayout _fvecalignment