CMS 3D CMS Logo

MFGrid3D.cc

Go to the documentation of this file.
00001 #include "MagneticField/Interpolation/interface/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     LocalPoint lower = fromGridFrame( outside.a1_, outside.b1_, outside.c1_);
00012     LocalPoint upper = fromGridFrame( outside.a2_, outside.b2_, outside.c2_);
00013     throw MagVolumeOutsideValidity( lower, upper);
00014   }
00015 
00016 }

Generated on Tue Jun 9 17:40:35 2009 for CMSSW by  doxygen 1.5.4