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 ) {
void SetTarget(const G4ErrorTarget *target)
G4Point3D GetPosition() const
G4int ApplyCommand(const char *aCommand)
G4Vector3D GetMomentum() const
static G4ErrorPropagatorManager * GetErrorPropagatorManager()
void ProcessEvent(G4int iProp, size_t nEv)
static G4UImanager * GetUIpointer()
G4bool CheckIfLastStep(G4Track *aTrack)
void InitTrackPropagation()
G4ErrorMode theG4ErrorMode
G4int Propagate(G4ErrorTrajState *currentTS, const G4ErrorTarget *target, G4ErrorMode mode=G4ErrorMode_PropForwards)
G4ErrorTarget * theTarget
Definition of the ExErrorDetectorConstruction class.
int main(int argc, char **argv)
G4int PropagateOneStep(G4ErrorTrajState *currentTS, G4ErrorMode mode=G4ErrorMode_PropForwards)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4ErrorTarget * BuildTarget(G4int iTarget)
G4ErrorTrajErr GetError() const
void InvokePostUserTrackingAction(G4Track *fpTrack)
static void SetInstance(G4VSteppingVerbose *Instance)
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
G4Track * GetG4Track() const
static PROLOG_HANDLER error
G4ErrorPropagator * GetPropagator() const
void SetUserInitialization(G4VUserDetectorConstruction *userInit)
static constexpr double GeV
static G4ErrorPropagatorData * GetErrorPropagatorData()