71 char* prop = std::getenv(
"G4ERROR_PROP");
81 " It must be: UNTIL_TARGET or STEP_BY_STEP").c_str());
86 "Variable G4ERROR_PROP not defined, taking it = UNTIL_TARGET");
90 for(
size_t ii = 0; ii <
nEvents; ii++ ){
126 char*
target = std::getenv(
"G4ERROR_TARGET");
140 " It must be: PLANE_SURFACE, CYL_SURFACE, VOLUME, TRKLEN").c_str());
144 JustWarning,
"Variable G4ERROR_TARGET not defined, taking it = PLANE_SURFACE");
151 char* mode = std::getenv(
"G4ERROR_MODE");
161 " It must be: FORWARDS or BACKWARDS").c_str());
165 JustWarning,
"Variable G4ERROR_MODE not defined, taking it = BACKWARDS");
195 }
else if( iProp == 1){
214 G4cout <<
"STEP_BY_STEP propagation: Last Step " <<
G4endl;
225 G4cout <<
" Position: " << posEnd << G4endl
226 <<
" Momentum: " << momEnd << G4endl
227 <<
" Error: " << errorEnd <<
G4endl;
240 }
else if( iTarget == 2 ) {
243 }
else if( iTarget == 3 ) {
245 }
else if( iTarget == 4 ) {