CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MFGrid3D.cc
Go to the documentation of this file.
1 #include "MFGrid3D.h"
4 
6  try {
7  return uncheckedValueInTesla(p);
8  } catch (GridInterpolator3DException& outside) {
9  double* limits = outside.limits();
10  LocalPoint lower = fromGridFrame(limits[0], limits[1], limits[2]);
11  LocalPoint upper = fromGridFrame(limits[3], limits[4], limits[5]);
12  throw MagVolumeOutsideValidity(lower, upper);
13  }
14 }
virtual LocalVector uncheckedValueInTesla(const LocalPoint &p) const =0
Interpolated field value at given point; does not check for exceptions.
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: MFGrid.h:31
virtual LocalPoint fromGridFrame(double a, double b, double c) const =0
find grid coordinates for point. For debugging and validation only.
GloballyPositioned< float >::LocalVector LocalVector
Definition: MFGrid.h:32
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
Definition: MFGrid3D.cc:5