Belle II Software  release-08-01-10
Geant4MaterialInterfaceExceptioHandler Class Reference

This class implements a custom exception handler for Geant4 which is used to record whether a critical exception occurred when calling the G4Navigator. More...

Inheritance diagram for Geant4MaterialInterfaceExceptioHandler:
Collaboration diagram for Geant4MaterialInterfaceExceptioHandler:

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 occured.
 

Detailed Description

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.


The documentation for this class was generated from the following file: