58 return (
this == &right);
63 return (
this != &right);
67 const char* exceptionCode,
69 const char* description)
72 "\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
74 "\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
76 "\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
78 "\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
79 std::ostringstream message;
80 message <<
"*** G4Exception : " << exceptionCode <<
G4endl
81 <<
" issued by : " << originOfException <<
G4endl << description
83 G4bool abortionForCoreDump =
false;
88 G4cerr << es_banner << message.str()
89 <<
"*** Fatal Exception *** core dump ***" <<
G4endl;
92 abortionForCoreDump =
true;
95 G4cerr << es_banner << message.str()
96 <<
"*** Fatal Error In Argument *** core dump ***" <<
G4endl;
99 abortionForCoreDump =
true;
104 G4cerr << es_banner << message.str() <<
"*** Run Must Be Aborted ***"
110 abortionForCoreDump =
false;
115 G4cerr << es_banner << message.str() <<
"*** Event Must Be Aborted ***"
121 abortionForCoreDump =
false;
124 G4cout << ws_banner << message.str()
125 <<
"*** This is just a warning message. ***" << we_banner
127 abortionForCoreDump =
false;
130 return abortionForCoreDump;
146void G4ExceptionHandler::DumpTrackInfo()
157 G4cerr <<
" **** Track information is not available at this moment"
162 G4cerr <<
"G4Track (" << theTrack
163 <<
") - track ID = " << theTrack->
GetTrackID()
165 G4cerr <<
" Particle type : "
169 G4cerr <<
" - creator process : "
176 G4cerr <<
" - creator process : not available" <<
G4endl;
178 G4cerr <<
" Kinetic energy : "
186 G4cerr <<
" **** Step information is not available at this moment"
191 G4cerr <<
" Step length : "
193 <<
" - total energy deposit : "
196 G4cerr <<
" - Physical volume : ";
207 G4cerr <<
" (material not available)";
212 G4cerr <<
"not available";
218 <<
" - defined by : "
227 G4cerr <<
" Post-step point : "
229 G4cerr <<
" - Physical volume : ";
240 G4cerr <<
" (material not available)";
245 G4cerr <<
"not available";
250 G4cerr <<
" - defined by : "
254 <<
" - step status : "
261 G4cerr <<
" *** Note: Step information might not be properly updated."
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
G4bool operator==(const G4ExceptionHandler &right) const
virtual ~G4ExceptionHandler()
G4bool operator!=(const G4ExceptionHandler &right) const
virtual G4bool Notify(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
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 G4String & GetCreatorModelName() const
const G4ParticleDefinition * GetParticleDefinition() const
const G4VProcess * GetCreatorProcess() const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
G4int GetParentID() const
G4SteppingManager * GetSteppingManager() const
const G4String & GetName() const
const G4String & GetProcessName() const