72 char* prop = getenv(
"G4ERROR_PROP");
82 G4Exception(
"exG4eReco",
"Fatal error in Argument",
JustWarning,
"Variable G4ERROR_PROP not defined, taking it = UNTIL_TARGET");
86 for(
size_t ii = 0; ii < nEvents; ii++ ){
120 char*
target = getenv(
"G4ERROR_TARGET");
134 G4Exception(
"exG4eReco",
"Fatal error in Argument",
JustWarning,
"Variable G4ERROR_TARGET not defined, taking it = PLANE_SURFACE");
141 char* mode = getenv(
"G4ERROR_MODE");
151 G4Exception(
"exG4eReco",
"Fatal error in Argument",
JustWarning,
"Variable G4ERROR_MODE not defined, taking it = BACKWARDS");
178 }
else if( iProp == 1){
195 G4cout <<
"STEP_BY_STEP propagation: Last Step " <<
G4endl;
206 G4cout <<
" Position: " << posEnd << G4endl
207 <<
" Momentum: " << momEnd << G4endl
208 <<
" Error: " << errorEnd <<
G4endl;
221 }
else if( iTarget == 2 ) {
224 }
else if( iTarget == 3 ) {
226 }
else if( iTarget == 4 ) {
G4int PropagateOneStep(G4ErrorTrajState *currentTS, G4ErrorMode mode=G4ErrorMode_PropForwards)
void InvokePostUserTrackingAction(G4Track *fpTrack)
void InitTrackPropagation()
int main(int argc, char **argv)
G4Point3D GetPosition() const
void ProcessEvent(G4int iProp, size_t nEv)
static G4ErrorPropagatorManager * GetErrorPropagatorManager()
Definition of the ExErrorDetectorConstruction class.
static G4UImanager * GetUIpointer()
G4ErrorMode theG4ErrorMode
G4GLOB_DLL std::ostream G4cout
G4ErrorPropagator * GetPropagator() const
void SetUserInitialization(G4VUserDetectorConstruction *userInit)
G4Vector3D GetMomentum() const
G4ErrorTarget * theTarget
G4Track * GetG4Track() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetTarget(const G4ErrorTarget *target)
static void SetInstance(G4VSteppingVerbose *Instance)
G4bool CheckIfLastStep(G4Track *aTrack)
G4ErrorTarget * BuildTarget(G4int iTarget)
G4int Propagate(G4ErrorTrajState *currentTS, const G4ErrorTarget *target, G4ErrorMode mode=G4ErrorMode_PropForwards)
static G4ErrorPropagatorData * GetErrorPropagatorData()
G4int ApplyCommand(const char *aCommand)
G4ErrorTrajErr GetError() const