Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:56:59

0001 #ifndef MagVolumeOutsideValidity_H
0002 #define MagVolumeOutsideValidity_H
0003 
0004 #include "MagneticField/VolumeGeometry/interface/MagVolume.h"
0005 #include <exception>
0006 
0007 class MagVolumeOutsideValidity : public std::exception {
0008 public:
0009   MagVolumeOutsideValidity(MagVolume::LocalPoint l, MagVolume::LocalPoint u) throw();
0010 
0011   MagVolume::LocalPoint lower() const throw() { return lower_; }
0012   MagVolume::LocalPoint upper() const throw() { return upper_; }
0013 
0014   ~MagVolumeOutsideValidity() throw() override {}
0015 
0016   const char* what() const throw() override { return m_message.c_str(); }
0017 
0018 private:
0019   std::string m_message;
0020   MagVolume::LocalPoint lower_;
0021   MagVolume::LocalPoint upper_;
0022 };
0023 #endif