00001 // @(#)root/mathcore:$Id: GenVector_exception.cxx 24923 2008-07-23 15:43:05Z moneta $ 00002 // Authors: W. Brown, M. Fischler, L. Moneta 2005 00003 00004 /********************************************************************** 00005 * * 00006 * Copyright (c) 2005 , LCG ROOT FNAL MathLib Team * 00007 * * 00008 * * 00009 **********************************************************************/ 00010 00011 // 00012 // Created by: Mark Fischler Tues July 19 2005 00013 // 00014 00015 #include "Math/GenVector/GenVector_exception.h" 00016 00017 namespace ROOT { 00018 namespace Math { 00019 bool GenVector_exception::fgOn = false; 00020 00021 void Throw(GenVector_exception & e) { if (GenVector_exception::fgOn) throw e; } 00022 00023 00024 void GenVector::Throw(const char * s) { 00025 if (!GenVector_exception::fgOn) return; 00026 GenVector_exception e(s); 00027 throw e; 00028 } 00029 00030 00031 00032 } // namespace Math 00033 } // namespace ROOT