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 49 of file ExtManager.cc.

Constructor & Destructor Documentation

◆ StepExceptionHandler()

Constructor.

Definition at line 52 of file ExtManager.cc.

52{}

◆ ~StepExceptionHandler()

~StepExceptionHandler ( )
inline

Destructor.

Definition at line 54 of file ExtManager.cc.

54{}

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 56 of file ExtManager.cc.

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

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