CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MFGrid3D.cc
Go to the documentation of this file.
1 #include "MFGrid3D.h"
4 
6 {
7  try {
8  return uncheckedValueInTesla( p);
9  }
10  catch ( GridInterpolator3DException& outside) {
11  double *limits = outside.limits();
12  LocalPoint lower = fromGridFrame( limits[0], limits[1], limits[2]);
13  LocalPoint upper = fromGridFrame( limits[3], limits[4], limits[5]);
14  throw MagVolumeOutsideValidity( lower, upper);
15  }
16 
17 }
virtual LocalVector uncheckedValueInTesla(const LocalPoint &p) const =0
Interpolated field value at given point; does not check for exceptions.
virtual LocalVector valueInTesla(const LocalPoint &p) const
Interpolated field value at given point.
Definition: MFGrid3D.cc:5
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: MFGrid.h:36
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:37