Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "MagneticField/VolumeGeometry/interface/MagExceptions.h"
0002 
0003 MagException::MagException(const char* message) : theMessage(message) {}
0004 MagException::~MagException() throw() {}
0005 const char* MagException::what() const throw() { return theMessage.c_str(); }
0006 
0007 GridInterpolator3DException::GridInterpolator3DException(
0008     double a1, double b1, double c1, double a2, double b2, double c2) throw() {
0009   limits_[0] = a1;
0010   limits_[1] = b1;
0011   limits_[2] = c1;
0012   limits_[3] = a2;
0013   limits_[4] = b2;
0014   limits_[5] = c2;
0015 }
0016 
0017 GridInterpolator3DException::~GridInterpolator3DException() throw() {}
0018 
0019 const char* GridInterpolator3DException::what() const throw() {
0020   return "LinearGridInterpolator3D: field requested outside of grid validity";
0021 }