QwGeant4
|
A multi-dimensional grid of values with interpolation methods. More...
#include <QweakSimFieldMap.hh>
Public Types | |
enum | debug_t { kError, kWarning, kVerbose, kDebug } |
Debug level. More... | |
Public Member Functions | |
QweakSimFieldMap (const unsigned int ndim=1) | |
Constructor with number of dimensions. More... | |
QweakSimFieldMap (const std::vector< coord_t > &min, const std::vector< coord_t > &max, const std::vector< coord_t > &step) | |
Constructor with minimum, maximum, and step size. More... | |
QweakSimFieldMap (const std::string &filename) | |
Constructor with file name. More... | |
virtual | ~QweakSimFieldMap () |
Destructor. More... | |
void | SetDebugLevel (debug_t debug) |
Set debug level. More... | |
void | SetDimensions (const unsigned int ndim) |
Set the number of coordinate dimensions and resize vectors. More... | |
void | SetMinimumMaximumStep (const coord_t min, const coord_t max, const coord_t step) |
Set minimum, maximum, and step size to single values. More... | |
void | SetMinimumMaximumStep (const std::vector< coord_t > &min, const std::vector< coord_t > &max, const std::vector< coord_t > &step) |
Set minimum, maximum, and step size to different values. More... | |
coord_t | GetMinimum (const unsigned int dim) const |
Get minimum in dimension. More... | |
coord_t | GetMaximum (const unsigned int dim) const |
Get maximum in dimension. More... | |
coord_t | GetStepSize (const unsigned int dim) const |
Get minimum in dimension. More... | |
unsigned int | GetMaximumEntries () const |
Get the maximum number of entries. More... | |
unsigned int | GetCurrentEntries () const |
Get the current number of entries. More... | |
unsigned int | GetWrapCoordinate (const unsigned int dim) const |
Get wrapping coordinate. More... | |
void | SetWrapCoordinate (const unsigned int dim, const size_t wrap=1) |
Set wrapping coordinate. More... | |
void | SetWrapCoordinate (const std::vector< size_t > &wrap) |
int | GetDataReductionFactor (const unsigned int dim) const |
Get data reduction factor. More... | |
void | SetDataReductionFactor (const unsigned int dim, const unsigned int redux) |
Set data reduction factor. More... | |
void | SetDataReductionFactor (const unsigned int redux) |
void | SetDataReductionFactor (const std::vector< unsigned int > &redux) |
void | SetInterpolationMethod (const EInterpolationMethod method) |
Set the interpolation method. More... | |
EInterpolationMethod | GetInterpolationMethod () const |
Get the interpolation method. More... | |
void | PrintCoverage (const unsigned int dim) |
Print coverage map for all bins in one dimension. More... | |
bool | InBounds (const coord_t *coord) const |
Return true if the coordinate is in bounds. More... | |
Functions to write grid values | |
bool | Set (const coord_t &coord, const value_t &value) |
Set a single value at a coordinate (false if not possible) More... | |
bool | Set (const coord_t *coord, const value_t &value) |
Set a single value at a coordinate (false if not possible) More... | |
bool | Set (const coord_t *coord, const value_t *value) |
Set a set of values at a coordinate (false if not possible) More... | |
bool | Set (const unsigned int linear_index, const value_t &value) |
Set a single value at a linearized index (false if not possible) More... | |
bool | Set (const unsigned int linear_index, const value_t *value) |
Set a set of values at a linearized index (false if not possible) More... | |
bool | Set (const unsigned int *cell_index, const value_t &value) |
Set a single value at a grid point (false if out of bounds) More... | |
bool | Set (const unsigned int *cell_index, const value_t *value) |
Set a set of values at a grid point (false if out of bounds) More... | |
Functions to retrieve interpolated values | |
value_t | GetValue (const coord_t &coord) const |
Get the interpolated value at coordinate (zero if out of bounds) More... | |
value_t | GetValue (const coord_t *coord) const |
Get the interpolated value at coordinate (zero if out of bounds) More... | |
bool | GetValue (const coord_t *coord, double &value) const |
Get the interpolated value at coordinate (zero if out of bounds) More... | |
bool | GetValue (const coord_t *coord, double *value) const |
Get the interpolated value at coordinate (zero if out of bounds) More... | |
File reading and writing | |
bool | WriteText (std::ostream &stream) const |
Write the grid as text. More... | |
bool | WriteTextFile (const std::string &filename) const |
Write the grid to text file. More... | |
bool | WriteTextScreen () const |
Write the grid to screen. More... | |
bool | ReadText (std::istream &stream) |
Read the grid from text. More... | |
bool | ReadTextFile (const std::string &filename) |
Read the grid from text file. More... | |
bool | WriteBinaryFile (const std::string &filename) const |
Write the grid values to binary file. More... | |
bool | ReadBinaryFile (const std::string &filename) |
Read the grid values from binary file. More... | |
Indexing functions (publicly available and unchecked) | |
unsigned int | Index (const coord_t *coord) const |
Return the linearized index based on the point coordinates (unchecked) More... | |
unsigned int | Index (const unsigned int *cell_index) const |
Return the linearized index based on the cell indices (unchecked) More... | |
unsigned int | Index (const unsigned int *cell_index, const unsigned int offset) const |
Return the linearized index based on the cell indices and offset (unchecked) More... | |
void | Cell (const coord_t coord, unsigned int &cell_index, double &cell_local, const unsigned int dim) const |
Return the cell index and local coordinates in one dimension (unchecked) More... | |
void | Cell (const coord_t *coord, unsigned int *cell_index, double *cell_local) const |
Return the cell index and local coordinates (unchecked) More... | |
void | Cell (const coord_t *coord, unsigned int *cell_index) const |
Return the cell index (unchecked) More... | |
void | Cell (unsigned int linear_index, unsigned int *cell_index) const |
Return the cell index based on the linearized index (unchecked) More... | |
void | Coord (const unsigned int *cell_index, coord_t *coord) const |
Return the coordinates based on the cell index (unchecked) More... | |
void | Coord (const unsigned int linear_index, coord_t *coord) const |
Return the coordinates based on the linearized index (unchecked) More... | |
Data Fields | |
enum QweakSimFieldMap::debug_t | fDebug |
Private Member Functions | |
void | Nearest (const coord_t *coord, unsigned int *cell_index) const |
Return the cell index closest to the coordinate (could be above) (unchecked) More... | |
bool | Linear (const coord_t *coord, value_t *value) const |
Linear interpolation (unchecked) More... | |
bool | NearestNeighbor (const coord_t *coord, value_t *value) const |
Nearest-neighbor (unchecked) More... | |
bool | Check (const coord_t *coord) const |
Check for boundaries with coordinate argument. More... | |
bool | Check (const unsigned int *cell_index) const |
Check for boundaries with cell index argument. More... | |
bool | Check (const unsigned int linear_index) const |
Check for boundaries with linearized index argument. More... | |
value_t | Get (const unsigned int *cell_index) const |
Get a single value by cell index (unchecked) More... | |
value_t | Get (const unsigned int index) const |
Get a single value by linearized index (unchecked) More... | |
bool | Get (const unsigned int index, value_t *value) const |
Get a vector value by linearized index (unchecked) More... | |
Private Attributes | |
unsigned int | fNDim |
Number of dimensions in coordinates. More... | |
std::vector< coord_t > | fMin |
Minimum in each dimension. More... | |
std::vector< coord_t > | fMax |
Maximum in each dimension. More... | |
std::vector< coord_t > | fStep |
Step size in each dimension. More... | |
std::vector< size_t > | fSize |
Number of points in each dimension. More... | |
std::vector< size_t > | fWrap |
Wrap around this coordinate. More... | |
std::vector< size_t > | fRedux |
Data reduction factor. More... | |
std::vector< size_t > | fExtent |
std::vector< value_t > | fValues [value_n] |
Table with pointers to arrays of values. More... | |
unsigned int | fCurrentEntries |
Number of values read in. More... | |
unsigned int | fMaximumEntries |
Maximum number of values. More... | |
EInterpolationMethod | fInterpolationMethod |
Interpolation method. More... | |
A multi-dimensional grid of values with interpolation methods.
This class provides various interpolation methods on a multi-dimensional grid of multi-dimensional values. Linear interpolation and nearest-neighbor are implemented for all dimensions.
The template arguments are the internal storage data type (defaults to float) and the number of dimensions of the stored data at each grid point (defaults to one). The dimension of the grid itself is set through the constructor. To describe a double vector field with 5 components on a 3-dimensional grid, you would write
The minimum, maximum, and step size of the grid have to be known before the values are filled.
Definition at line 51 of file QweakSimFieldMap.hh.
enum QweakSimFieldMap::debug_t |
Debug level.
Enumerator | |
---|---|
kError | |
kWarning | |
kVerbose | |
kDebug |
Definition at line 78 of file QweakSimFieldMap.hh.
|
inline |
Constructor with number of dimensions.
Definition at line 56 of file QweakSimFieldMap.hh.
References kMultiLinear, QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetInterpolationMethod().
|
inline |
Constructor with minimum, maximum, and step size.
Definition at line 61 of file QweakSimFieldMap.hh.
References kMultiLinear, QweakSimFieldMap< value_t, value_n >::SetDimensions(), QweakSimFieldMap< value_t, value_n >::SetInterpolationMethod(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
inline |
Constructor with file name.
Definition at line 69 of file QweakSimFieldMap.hh.
References kMultiLinear, QweakSimFieldMap< value_t, value_n >::ReadBinaryFile(), and QweakSimFieldMap< value_t, value_n >::SetInterpolationMethod().
|
inlinevirtual |
|
inline |
Return the cell index and local coordinates in one dimension (unchecked)
Return the cell index and local coordinates in one dimension (unchecked)
coord | Point coordinate in one dimension |
cell_index | Cell index of the point (reference) |
cell_local | Local coordinates in cell (reference) |
dim | Dimension |
Definition at line 723 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::Index(), QweakSimFieldMap< value_t, value_n >::Nearest(), and QweakSimFieldMap< value_t, value_n >::PrintCoverage().
|
inline |
Return the cell index and local coordinates (unchecked)
Return the cell index and local coordinates (unchecked)
coord | Point coordinates |
cell_index | Cell index of the point (reference) |
cell_local | Local coordinates in cell (reference) |
Definition at line 747 of file QweakSimFieldMap.hh.
|
inline |
Return the cell index (unchecked)
Return the cell index (unchecked)
coord | Point coordinates |
cell_index | Cell index of the point (reference) |
Definition at line 763 of file QweakSimFieldMap.hh.
|
inline |
Return the cell index based on the linearized index (unchecked)
Return the cell index based on the linearized index (unchecked)
linear_index | Linearized index |
cell_index | Cell index (reference) |
Definition at line 779 of file QweakSimFieldMap.hh.
|
inlineprivate |
Check for boundaries with coordinate argument.
Check whether the point is inside the valid region
coord | Point coordinates |
Definition at line 619 of file QweakSimFieldMap.hh.
References mycout, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::GetValue(), QweakSimFieldMap< value_t, value_n >::InBounds(), and QweakSimFieldMap< value_t, value_n >::Set().
|
inlineprivate |
Check for boundaries with cell index argument.
Check whether the cell index is inside the valid region
cell_index | Cell index |
Definition at line 641 of file QweakSimFieldMap.hh.
References mycout, and myendl.
|
inlineprivate |
Check for boundaries with linearized index argument.
Check whether the linearized index is inside the valid region
linear_index | Linearized index |
Definition at line 663 of file QweakSimFieldMap.hh.
References mycout, and myendl.
|
inline |
Return the coordinates based on the cell index (unchecked)
Return the coordinates based on the cell index (unchecked)
cell_index | Cell index |
coord | Point coordinates (reference) |
Definition at line 796 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::PrintCoverage().
|
inline |
Return the coordinates based on the linearized index (unchecked)
Return the coordinates based on the linearized index (unchecked)
linear_index | Linearized index |
coord | Point coordinates (reference) |
Definition at line 810 of file QweakSimFieldMap.hh.
|
inlineprivate |
Get a single value by cell index (unchecked)
Definition at line 526 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fValues, QweakSimFieldMap< value_t, value_n >::Index(), mycerr, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::PrintCoverage().
|
inlineprivate |
Get a single value by linearized index (unchecked)
Definition at line 536 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fValues, mycerr, and myendl.
|
inlineprivate |
Get a vector value by linearized index (unchecked)
Definition at line 545 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fValues.
|
inline |
Get the current number of entries.
Definition at line 172 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fCurrentEntries.
|
inline |
Get data reduction factor.
Definition at line 186 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fRedux.
|
inline |
Get the interpolation method.
Definition at line 204 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fInterpolationMethod.
|
inline |
Get maximum in dimension.
Definition at line 166 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fMax.
|
inline |
Get the maximum number of entries.
Definition at line 170 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fMaximumEntries.
|
inline |
Get minimum in dimension.
Definition at line 164 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fMin.
|
inline |
Get minimum in dimension.
Definition at line 168 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fStep.
|
inline |
Get the interpolated value at coordinate (zero if out of bounds)
Definition at line 347 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fNDim, mycerr, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::GetValue().
|
inline |
Get the interpolated value at coordinate (zero if out of bounds)
Definition at line 363 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::GetValue(), mycerr, and myendl.
|
inline |
Get the interpolated value at coordinate (zero if out of bounds)
Definition at line 374 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::GetValue(), mycerr, and myendl.
|
inline |
Get the interpolated value at coordinate (zero if out of bounds)
Definition at line 383 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Check(), QweakSimFieldMap< value_t, value_n >::fDebug, QweakSimFieldMap< value_t, value_n >::fInterpolationMethod, QweakSimFieldMap< value_t, value_n >::kDebug, kMultiLinear, kNearestNeighbor, QweakSimFieldMap< value_t, value_n >::Linear(), mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::NearestNeighbor().
|
inline |
Get wrapping coordinate.
Definition at line 175 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fWrap.
|
inline |
Return true if the coordinate is in bounds.
Definition at line 241 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Check().
|
inline |
Return the linearized index based on the point coordinates (unchecked)
Definition at line 473 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Cell(), and QweakSimFieldMap< value_t, value_n >::fNDim.
Referenced by QweakSimFieldMap< value_t, value_n >::Get(), and QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Return the linearized index based on the cell indices (unchecked)
Return the linearized index based on the cell indices (unchecked)
cell_index | Index in each dimension |
Definition at line 683 of file QweakSimFieldMap.hh.
|
inline |
Return the linearized index based on the cell indices and offset (unchecked)
Return the linearized index based on the cell indices and offset (unchecked)
cell_index | Index in each dimension |
pattern | Bit pattern with offsets in each dimension |
Definition at line 701 of file QweakSimFieldMap.hh.
|
inlineprivate |
Linear interpolation (unchecked)
Perform the multi-dimensional linear interpolation (unchecked)
coord | Point coordinates |
value | Interpolated value (reference) |
Definition at line 561 of file QweakSimFieldMap.hh.
References mycout, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::GetValue().
|
inlineprivate |
Return the cell index closest to the coordinate (could be above) (unchecked)
Definition at line 504 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Cell(), and QweakSimFieldMap< value_t, value_n >::fNDim.
Referenced by QweakSimFieldMap< value_t, value_n >::Set().
|
inlineprivate |
Nearest-neighbor (unchecked)
Perform the nearest-neighbor interpolation (unchecked)
coord | Point coordinates |
value | Interpolated value (reference) |
Definition at line 601 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetValue().
|
inline |
Print coverage map for all bins in one dimension.
Definition at line 209 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Cell(), QweakSimFieldMap< value_t, value_n >::Coord(), QweakSimFieldMap< value_t, value_n >::fMaximumEntries, QweakSimFieldMap< value_t, value_n >::fNDim, QweakSimFieldMap< value_t, value_n >::fSize, QweakSimFieldMap< value_t, value_n >::Get(), mycout, and myendl.
|
inline |
Read the grid values from binary file.
Read the grid values from binary file (should be 64-bit safe, untested)
filename | File name |
Definition at line 967 of file QweakSimFieldMap.hh.
References mycerr, mycout, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::QweakSimFieldMap().
|
inline |
Read the grid from text.
Read the grid values from a text stream
stream | Input stream |
Definition at line 861 of file QweakSimFieldMap.hh.
References mycerr, mycout, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::ReadTextFile().
|
inline |
Read the grid from text file.
Definition at line 448 of file QweakSimFieldMap.hh.
References mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::ReadText().
|
inline |
Set a single value at a coordinate (false if not possible)
Definition at line 249 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fNDim, mycerr, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Set a single value at a coordinate (false if not possible)
Definition at line 263 of file QweakSimFieldMap.hh.
References mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Set a set of values at a coordinate (false if not possible)
Definition at line 272 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Check(), QweakSimFieldMap< value_t, value_n >::fNDim, QweakSimFieldMap< value_t, value_n >::fSize, QweakSimFieldMap< value_t, value_n >::fWrap, QweakSimFieldMap< value_t, value_n >::Index(), QweakSimFieldMap< value_t, value_n >::Nearest(), and QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Set a single value at a linearized index (false if not possible)
Definition at line 310 of file QweakSimFieldMap.hh.
References mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Set a set of values at a linearized index (false if not possible)
Definition at line 319 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Check(), QweakSimFieldMap< value_t, value_n >::fCurrentEntries, and QweakSimFieldMap< value_t, value_n >::fValues.
|
inline |
Set a single value at a grid point (false if out of bounds)
Definition at line 328 of file QweakSimFieldMap.hh.
References mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Set a set of values at a grid point (false if out of bounds)
Definition at line 337 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::Check(), QweakSimFieldMap< value_t, value_n >::Index(), and QweakSimFieldMap< value_t, value_n >::Set().
|
inline |
Set data reduction factor.
Definition at line 189 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fRedux.
Referenced by QweakSimFieldMap< value_t, value_n >::SetDataReductionFactor().
|
inline |
Definition at line 191 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fNDim, and QweakSimFieldMap< value_t, value_n >::SetDataReductionFactor().
|
inline |
Definition at line 195 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fNDim, and QweakSimFieldMap< value_t, value_n >::fRedux.
|
inline |
Set debug level.
Definition at line 81 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fDebug.
|
inline |
Set the number of coordinate dimensions and resize vectors.
Definition at line 120 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fExtent, QweakSimFieldMap< value_t, value_n >::fMax, QweakSimFieldMap< value_t, value_n >::fMin, QweakSimFieldMap< value_t, value_n >::fNDim, QweakSimFieldMap< value_t, value_n >::fSize, QweakSimFieldMap< value_t, value_n >::fStep, QweakSimFieldMap< value_t, value_n >::fWrap, mycerr, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::QweakSimFieldMap(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
inline |
Set the interpolation method.
Definition at line 201 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fInterpolationMethod.
Referenced by QweakSimFieldMap< value_t, value_n >::QweakSimFieldMap().
|
inline |
Set minimum, maximum, and step size to single values.
Definition at line 131 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fNDim.
Referenced by QweakSimFieldMap< value_t, value_n >::QweakSimFieldMap().
|
inline |
Set minimum, maximum, and step size to different values.
Definition at line 137 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fCurrentEntries, QweakSimFieldMap< value_t, value_n >::fExtent, QweakSimFieldMap< value_t, value_n >::fMax, QweakSimFieldMap< value_t, value_n >::fMaximumEntries, QweakSimFieldMap< value_t, value_n >::fMin, QweakSimFieldMap< value_t, value_n >::fNDim, QweakSimFieldMap< value_t, value_n >::fSize, QweakSimFieldMap< value_t, value_n >::fStep, QweakSimFieldMap< value_t, value_n >::fValues, mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::SetDimensions().
|
inline |
Set wrapping coordinate.
Definition at line 178 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fWrap.
|
inline |
Definition at line 180 of file QweakSimFieldMap.hh.
References QweakSimFieldMap< value_t, value_n >::fNDim, and QweakSimFieldMap< value_t, value_n >::fWrap.
|
inline |
Write the grid values to binary file.
Write the grid values to binary file (should be 64-bit safe, untested)
Integer data types can be stored differently on 32-bit and 64-bit systems. Fixed-length types uint32_t and u_int32_t are provided in stdint.h and sys/types.h, respectively. The floating point types float and double will always have a length of 32 and 64 bit, per the IEEE convention.
filename | File name |
Definition at line 918 of file QweakSimFieldMap.hh.
References mycerr, mycout, and myendl.
|
inline |
Write the grid as text.
Write the grid values to a text stream
stream | Output stream |
Definition at line 825 of file QweakSimFieldMap.hh.
References mycout, and myendl.
Referenced by QweakSimFieldMap< value_t, value_n >::WriteTextFile(), and QweakSimFieldMap< value_t, value_n >::WriteTextScreen().
|
inline |
Write the grid to text file.
Definition at line 429 of file QweakSimFieldMap.hh.
References mycerr, myendl, and QweakSimFieldMap< value_t, value_n >::WriteText().
|
inline |
Write the grid to screen.
Definition at line 441 of file QweakSimFieldMap.hh.
References mycout, and QweakSimFieldMap< value_t, value_n >::WriteText().
|
private |
Number of values read in.
Definition at line 110 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetCurrentEntries(), QweakSimFieldMap< value_t, value_n >::Set(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
enum QweakSimFieldMap::debug_t QweakSimFieldMap< value_t, value_n >::fDebug |
|
private |
Linear extent between neighbor points in each dimension (e.g. for the least significant index this will be 1, for the next index the number of points in the first index, etc...)
Definition at line 104 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Interpolation method.
Definition at line 115 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetInterpolationMethod(), QweakSimFieldMap< value_t, value_n >::GetValue(), and QweakSimFieldMap< value_t, value_n >::SetInterpolationMethod().
|
private |
Maximum in each dimension.
Definition at line 91 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetMaximum(), QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Maximum number of values.
Definition at line 112 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetMaximumEntries(), QweakSimFieldMap< value_t, value_n >::PrintCoverage(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Minimum in each dimension.
Definition at line 89 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetMinimum(), QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Number of dimensions in coordinates.
Definition at line 81 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetValue(), QweakSimFieldMap< value_t, value_n >::Index(), QweakSimFieldMap< value_t, value_n >::Nearest(), QweakSimFieldMap< value_t, value_n >::PrintCoverage(), QweakSimFieldMap< value_t, value_n >::Set(), QweakSimFieldMap< value_t, value_n >::SetDataReductionFactor(), QweakSimFieldMap< value_t, value_n >::SetDimensions(), QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep(), and QweakSimFieldMap< value_t, value_n >::SetWrapCoordinate().
|
private |
Data reduction factor.
Definition at line 99 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetDataReductionFactor(), and QweakSimFieldMap< value_t, value_n >::SetDataReductionFactor().
|
private |
Number of points in each dimension.
Definition at line 95 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::PrintCoverage(), QweakSimFieldMap< value_t, value_n >::Set(), QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Step size in each dimension.
Definition at line 93 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetStepSize(), QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Table with pointers to arrays of values.
Definition at line 107 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::Get(), QweakSimFieldMap< value_t, value_n >::Set(), and QweakSimFieldMap< value_t, value_n >::SetMinimumMaximumStep().
|
private |
Wrap around this coordinate.
Definition at line 97 of file QweakSimFieldMap.hh.
Referenced by QweakSimFieldMap< value_t, value_n >::GetWrapCoordinate(), QweakSimFieldMap< value_t, value_n >::Set(), QweakSimFieldMap< value_t, value_n >::SetDimensions(), and QweakSimFieldMap< value_t, value_n >::SetWrapCoordinate().