72 char* prop = getenv(
"G4ERROR_PROP");
82 " It must be: UNTIL_TARGET or STEP_BY_STEP").c_str());
87 "Variable G4ERROR_PROP not defined, taking it = UNTIL_TARGET");
91 for(
size_t ii = 0; ii < nEvents; ii++ ){
127 char* target = getenv(
"G4ERROR_TARGET");
141 " It must be: PLANE_SURFACE, CYL_SURFACE, VOLUME, TRKLEN").c_str());
145 JustWarning,
"Variable G4ERROR_TARGET not defined, taking it = PLANE_SURFACE");
152 char* mode = getenv(
"G4ERROR_MODE");
162 " It must be: FORWARDS or BACKWARDS").c_str());
166 JustWarning,
"Variable G4ERROR_MODE not defined, taking it = BACKWARDS");
196 }
else if( iProp == 1){
215 G4cout <<
"STEP_BY_STEP propagation: Last Step " <<
G4endl;
226 G4cout <<
" Position: " << posEnd << G4endl
227 <<
" Momentum: " << momEnd << G4endl
228 <<
" Error: " << errorEnd <<
G4endl;
241 }
else if( iTarget == 2 ) {
244 }
else if( iTarget == 3 ) {
246 }
else if( iTarget == 4 ) {
G4int PropagateOneStep(G4ErrorTrajState *currentTS, G4ErrorMode mode=G4ErrorMode_PropForwards)
void InvokePostUserTrackingAction(G4Track *fpTrack)
CLHEP::Hep3Vector G4ThreeVector
void InitTrackPropagation()
G4Point3D GetPosition() const
HepGeom::Point3D< G4double > G4Point3D
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)
Detector construction class.
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 PROLOG_HANDLER error
static G4ErrorPropagatorData * GetErrorPropagatorData()
G4int ApplyCommand(const char *aCommand)
G4ErrorTrajErr GetError() const
HepGeom::Normal3D< G4double > G4Normal3D