Newer
Older
//====================================================================
// AIDA Detector description implementation
//--------------------------------------------------------------------
//
// Author : M.Frank
//
//====================================================================
// Framework include files
#include "DDG4/Geant4StepHandler.h"
using namespace DD4hep::Simulation;
const char* Geant4StepHandler::stepStatus(G4StepStatus status) {
switch (status) {
// Step reached the world boundary
case fWorldBoundary:
return "WorldBoundary";
case fGeomBoundary:
return "GeomBoundary";
case fAtRestDoItProc:
return "AtRestDoItProc";
case fAlongStepDoItProc:
return "AlongStepDoItProc";
case fPostStepDoItProc:
return "PostStepDoItProc";
// Step defined by the user Step limit in the logical volume
case fUserDefinedLimit:
return "UserDefinedLimit";
// Step defined by an exclusively forced PostStepDoIt process
case fExclusivelyForcedProc:
return "ExclusivelyForcedProc";
default:
return "Undefined";
const char* Geant4StepHandler::preStepStatus() const {
return stepStatus(pre ? pre->GetStepStatus() : fUndefined);
}
const char* Geant4StepHandler::postStepStatus() const {
return stepStatus(post ? post->GetStepStatus() : fUndefined);
}