55 return (
this == &right);
61 return (
this != &right);
69 "\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
71 "\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
73 "\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
75 "\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
76 std::ostringstream message;
77 message <<
"*** G4Exception : " << exceptionCode <<
G4endl
78 <<
" issued by : " << originOfException <<
G4endl << description <<
G4endl;
79 G4bool abortionForCoreDump =
false;
83 G4cerr << es_banner << message.str() <<
"*** Fatal Exception *** core dump ***" <<
G4endl;
86 abortionForCoreDump =
true;
89 G4cerr << es_banner << message.str() <<
"*** Fatal Error In Argument *** core dump ***"
93 abortionForCoreDump =
true;
97 G4cerr << es_banner << message.str() <<
"*** Run Must Be Aborted ***" <<
G4endl;
102 abortionForCoreDump =
false;
106 G4cerr << es_banner << message.str() <<
"*** Event Must Be Aborted ***" <<
G4endl;
111 abortionForCoreDump =
false;
114 G4cout << ws_banner << message.str() <<
"*** This is just a warning message. ***" << we_banner
116 abortionForCoreDump =
false;
119 abortionForCoreDump =
false;
122 return abortionForCoreDump;
126void G4ExceptionHandler::DumpTrackInfo()
128 const G4Track* theTrack =
nullptr;
129 const G4Step* theStep =
nullptr;
137 if (theTrack ==
nullptr) {
138 G4cerr <<
" **** Track information is not available at this moment" <<
G4endl;
141 G4cerr <<
"G4Track (" << theTrack <<
") - track ID = " << theTrack->
GetTrackID()
149 G4cerr <<
" - creator process : not available" <<
G4endl;
155 if (theStep ==
nullptr) {
156 G4cerr <<
" **** Step information is not available at this moment" <<
G4endl;
163 G4cerr <<
" - Physical volume : ";
170 G4cerr <<
" (material not available)";
174 G4cerr <<
"not available";
178 G4cerr <<
" - defined by : "
186 G4cerr <<
" - Physical volume : ";
193 G4cerr <<
" (material not available)";
197 G4cerr <<
"not available";
201 G4cerr <<
" - defined by : "
208 G4cerr <<
" *** Note: Step information might not be properly updated." <<
G4endl;
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
G4bool operator==(const G4ExceptionHandler &right) const
G4bool operator!=(const G4ExceptionHandler &right) const
G4bool Notify(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description) override
const G4String & GetName() const
const G4String & GetParticleName() const
static G4RunManagerKernel * GetRunManagerKernel()
G4TrackingManager * GetTrackingManager() const
virtual void AbortRun(G4bool softAbort=false)
static G4RunManager * GetRunManager()
virtual void AbortEvent()
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()
G4StepStatus GetStepStatus() const
const G4VProcess * GetProcessDefinedStep() const
G4Material * GetMaterial() const
const G4ThreeVector & GetPosition() const
G4VPhysicalVolume * GetPhysicalVolume() const
G4StepPoint * GetPreStepPoint() const
G4double GetStepLength() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
const G4ParticleDefinition * GetParticleDefinition() const
const G4VProcess * GetCreatorProcess() const
const G4String GetCreatorModelName() const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
G4int GetParentID() const
G4SteppingManager * GetSteppingManager() const
const G4String & GetName() const
const G4String & GetProcessName() const