42 #include "G4String.hh"
64 return (
this == &right);
69 return (
this != &right);
73 const char* exceptionCode,
75 const char* description)
78 =
"\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
80 =
"\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
82 =
"\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
84 =
"\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
86 message <<
"*** G4Exception : " << exceptionCode <<
G4endl
87 <<
" issued by : " << originOfException <<
G4endl
89 G4bool abortionForCoreDump =
false;
94 G4cerr << es_banner << message.str() <<
"*** Fatal Exception *** core dump ***" <<
G4endl;
97 abortionForCoreDump =
true;
100 G4cerr << es_banner << message.str() <<
"*** Fatal Error In Argument *** core dump ***" <<
G4endl;
103 abortionForCoreDump =
true;
108 G4cerr << es_banner << message.str() <<
"*** Run Must Be Aborted ***" <<
G4endl;
113 abortionForCoreDump =
false;
118 G4cerr << es_banner << message.str() <<
"*** Event Must Be Aborted ***" <<
G4endl;
123 abortionForCoreDump =
false;
126 G4cout << ws_banner << message.str() <<
"*** This is just a warning message. ***"
128 abortionForCoreDump =
false;
131 return abortionForCoreDump;
157 G4cerr <<
" **** Track information is not available at this moment" <<
G4endl;
161 G4cerr <<
"G4Track (" << theTrack <<
") - track ID = " << theTrack->
GetTrackID()
170 {
G4cerr <<
" - creator process : not available" <<
G4endl; }
177 G4cerr <<
" **** Step information is not available at this moment" <<
G4endl;
185 G4cerr <<
" - Physical volume : ";
192 {
G4cerr <<
" (material not available)"; }
195 {
G4cerr <<
"not available"; }
199 G4cerr <<
" - defined by : "
208 G4cerr <<
" - Physical volume : ";
215 {
G4cerr <<
" (material not available)"; }
218 {
G4cerr <<
"not available"; }
222 G4cerr <<
" - defined by : "
230 G4cerr <<
" *** Note: Step information might not be properly updated." <<
G4endl;
virtual void AbortRun(G4bool softAbort=false)
static G4RunManager * GetRunManager()
G4double GetKineticEnergy() const
G4StepPoint * GetPreStepPoint() const
void message(RunManager *runmanager)
const G4String & GetParticleName() const
G4VPhysicalVolume * GetPhysicalVolume() const
const G4ParticleDefinition * GetParticleDefinition() const
G4TrackingManager * GetTrackingManager() const
const G4String & GetName() const
static G4RunManagerKernel * GetRunManagerKernel()
virtual ~G4ExceptionHandler()
G4ExceptionHandler & operator=(const G4ExceptionHandler &right)
G4StepStatus GetStepStatus() const
const G4String & GetCreatorModelName() const
G4Material * GetMaterial() const
G4double GetStepLength() const
const G4ThreeVector & GetPosition() const
const G4String & GetProcessName() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
G4GLOB_DLL std::ostream G4cerr
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4int operator!=(const G4ExceptionHandler &right) const
G4ApplicationState GetCurrentState() const
const G4VProcess * GetCreatorProcess() const
G4GLOB_DLL std::ostream G4cout
virtual void AbortEvent()
const G4VProcess * GetProcessDefinedStep() const
G4int operator==(const G4ExceptionHandler &right) const
const G4ThreeVector & GetMomentumDirection() const
G4SteppingManager * GetSteppingManager() const
virtual G4bool Notify(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const G4String & GetName() const
static G4StateManager * GetStateManager()
G4int GetParentID() const