Belle II Software development
|
This class implements a custom exception handler for Geant4 which is used to record whether a critical exception occurred when calling the G4Navigator. More...
Public Member Functions | |
virtual | ~Geant4MaterialInterfaceExceptioHandler ()=default |
virtual destructor for proper resource de-allocation | |
virtual bool | Notify (const char *origin, const char *code, G4ExceptionSeverity serv, const char *description) |
G4VExceptionHandler method called when an exception is raised. | |
bool | isInFailureState () const |
Returns true if a problematic exception was encountered. | |
void | resetFailureState () |
Reset the recorded failure state to be ready for the next calls to Geant4. | |
Private Attributes | |
bool | m_inFailureState = false |
Stores whether a problematic exception occurred. | |
This class implements a custom exception handler for Geant4 which is used to record whether a critical exception occurred when calling the G4Navigator.
This class is mainly used to handle stuck tracks.
Definition at line 43 of file Geant4MaterialInterface.cc.
|
inline |
Returns true if a problematic exception was encountered.
Definition at line 78 of file Geant4MaterialInterface.cc.
|
inlinevirtual |
G4VExceptionHandler method called when an exception is raised.
Definition at line 53 of file Geant4MaterialInterface.cc.
|
inline |
Reset the recorded failure state to be ready for the next calls to Geant4.
Definition at line 87 of file Geant4MaterialInterface.cc.
|
private |
Stores whether a problematic exception occurred.
Definition at line 96 of file Geant4MaterialInterface.cc.