00001 #include "MFGrid3D.h" 00002 #include "MagneticField/VolumeGeometry/interface/MagVolumeOutsideValidity.h" 00003 #include "MagneticField/VolumeGeometry/interface/MagExceptions.h" 00004 00005 MFGrid::LocalVector MFGrid3D::valueInTesla( const LocalPoint& p) const 00006 { 00007 try { 00008 return uncheckedValueInTesla( p); 00009 } 00010 catch ( GridInterpolator3DException& outside) { 00011 double *limits = outside.limits(); 00012 LocalPoint lower = fromGridFrame( limits[0], limits[1], limits[2]); 00013 LocalPoint upper = fromGridFrame( limits[3], limits[4], limits[5]); 00014 throw MagVolumeOutsideValidity( lower, upper); 00015 } 00016 00017 }