Belle II Software development
StepExceptionHandler Class Reference

Class to handle G4Exception raised during PropagateOneStep() More...

Inheritance diagram for StepExceptionHandler:

Public Member Functions

 StepExceptionHandler ()
 Constructor.
 
 ~StepExceptionHandler ()
 Destructor.
 
virtual bool Notify (const char *origin, const char *code, G4ExceptionSeverity, const char *description)
 G4VExceptionHandler method called when an exception is raised.
 

Detailed Description

Class to handle G4Exception raised during PropagateOneStep()

Definition at line 48 of file ExtManager.cc.

Constructor & Destructor Documentation

◆ StepExceptionHandler()

Constructor.

Definition at line 51 of file ExtManager.cc.

51{}

◆ ~StepExceptionHandler()

~StepExceptionHandler ( )
inline

Destructor.

Definition at line 53 of file ExtManager.cc.

53{}

Member Function Documentation

◆ Notify()

virtual bool Notify ( const char * origin,
const char * code,
G4ExceptionSeverity ,
const char * description )
inlinevirtual

G4VExceptionHandler method called when an exception is raised.

Definition at line 55 of file ExtManager.cc.

56 {
57 // Is this an exception for low-momentum track that would over-curl in B field?
58 if (strstr(description, "Error returned: 3") != nullptr) {
59 B2DEBUG(1, "In " << origin << ", " << code << ": " << description);
60 //FIXME: This is an exception for Gean4 navigation error from the basf2 side, reported as BII-6782
61 } else if (strstr(code, "GeomNav0003") != nullptr) {
62 B2DEBUG(20, "In " << origin << ", " << code << ": " << description);
63 // END FIXME
64 } else {
65 B2ERROR("In " << origin << ", " << code << ": " << description);
66 }
67 return false;
68 }

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