Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:32

0001 #include "MFGrid3D.h"
0002 #include "MagneticField/VolumeGeometry/interface/MagVolumeOutsideValidity.h"
0003 #include "MagneticField/VolumeGeometry/interface/MagExceptions.h"
0004 
0005 MFGrid::LocalVector MFGrid3D::valueInTesla(const LocalPoint& p) const {
0006   try {
0007     return uncheckedValueInTesla(p);
0008   } catch (GridInterpolator3DException& outside) {
0009     double* limits = outside.limits();
0010     LocalPoint lower = fromGridFrame(limits[0], limits[1], limits[2]);
0011     LocalPoint upper = fromGridFrame(limits[3], limits[4], limits[5]);
0012     throw MagVolumeOutsideValidity(lower, upper);
0013   }
0014 }