CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/SimG4Core/Application/interface/ExceptionHandler.h

Go to the documentation of this file.
00001 #ifndef SimG4Core_ExceptionHandler_H
00002 #define SimG4Core_ExceptionHandler_H 
00003 
00004 #include "SimG4Core/Application/interface/RunManager.h"
00005 
00006 #include "G4VExceptionHandler.hh"
00007 #include "G4ExceptionSeverity.hh"
00008  
00009 class ExceptionHandler : public G4VExceptionHandler
00010 {
00011 public:
00012     ExceptionHandler(RunManager * rm);
00013     ExceptionHandler() {} ;
00014     virtual ~ExceptionHandler();
00015     int operator==(const ExceptionHandler & right) const { return (this == &right); }
00016     int operator!=(const ExceptionHandler & right) const { return (this != &right); }
00017     virtual bool Notify(const char * exceptionOrigin, const char * exceptionCode,
00018                         G4ExceptionSeverity severity, const char * description);
00019 private:
00020     ExceptionHandler(const ExceptionHandler &) : G4VExceptionHandler() {}
00021     ExceptionHandler& operator=(const ExceptionHandler &right) { return *this; }
00022     RunManager * fRunManager;
00023     //bool override;
00024     //int verbose;
00025 };
00026 
00027 #endif