58 : theStepLength(0.), theInitialTrajState(0), theStepN(0), theG4Track(0)
86 G4cerr <<
"ERROR - G4ErrorPropagator::Propagate()" <<
G4endl
87 <<
" Energy too low to be propagated: "
97 G4cout <<
" =====> starting GEANT4E tracking for "
108 G4cout <<
" G4ErrorPropagator::Propagate initialTS ";
142 *currentTS = *currentTS_FREE;
145 G4cerr <<
"ERROR - G4ErrorPropagator::Propagate()" <<
G4endl
146 <<
" Particle does not reach target: " << *currentTS
158 G4cout <<
" G4ErrorPropagator: propagation ended " <<
G4endl;
188 std::ostringstream message;
189 message <<
"Called before initialization is done for this track!";
190 G4Exception(
"G4ErrorPropagator::PropagateOneStep()",
192 "Please call G4ErrorPropagatorManager::InitGeant4e().");
203 G4cerr <<
"ERROR - G4ErrorPropagator::PropagateOneStep()" <<
G4endl
204 <<
" Energy too low to be propagated: "
212 G4cout <<
" =====> starting GEANT4E tracking for "
218 G4cout <<
" G4ErrorPropagator::Propagate initialTS ";
261 std::ostringstream message;
262 message <<
"Particle type not defined: " << partType;
263 G4Exception(
"G4ErrorPropagator::InitG4Track()",
"InvalidSetup",
291 G4cout <<
" G4ErrorPropagator new track of energy: "
301 G4Exception(
"G4ErrorPropagator::InitG4Track()",
"InvalidSetup",
340 if( ierr != 0 ) {
break; }
365 <<
"@@@@@@@@@@@@@@@@@@@@@@@@@ NEW STEP " <<
G4endl;
389 G4cout <<
" transportation determined by geant4e " <<
G4endl;
398 if( static_cast<G4ErrorGeomVolumeTarget*>( target )
416 G4cout <<
" propagating error " << *currentTS_FREE <<
G4endl;
429 currentTS_FREE->
Update( cTrack );
435 G4cerr <<
"ERROR - G4ErrorPropagator:MakeOneStep()" <<
G4endl
436 <<
" Error returned: " << ierr <<
G4endl
437 <<
" Geant4 tracking will be stopped !" <<
G4endl;
464 std::ostringstream message;
465 message <<
"Wrong trajectory state: " << currentTS->
GetTSType();
466 G4Exception(
"G4ErrorPropagator::InitFreeTrajState()",
"InvalidState",
469 return currentTS_FREE;
484 G4cout <<
" G4ErrorPropagator::Propagate: final state "
493 currentTS = currentTS_FREE;
499 G4Exception(
"G4ErrorPropagator:GetFinalTrajState()",
501 "Using a G4ErrorSurfaceTrajState with wrong target");
506 *(static_cast<G4ErrorFreeTrajState*>(currentTS_FREE)),
511 G4cout << currentTS <<
" returning tssd " << *currentTS <<
G4endl;
514 delete currentTS_FREE;
523 G4bool lastG4eStep =
false;
530 G4cout <<
" G4ErrorPropagator::CheckIfLastStep G4ErrorState= "
544 G4cout <<
" G4ErrorPropagator::CheckIfLastStep " << lastG4eStep
557 std::ostringstream message;
558 message <<
"Track extrapolated until end of World" <<
G4endl
559 <<
"without finding the defined target!";
560 G4Exception(
"G4ErrorPropagator::CheckIfLastStep()",
567 G4cerr <<
"ERROR - G4ErrorPropagator::CheckIfLastStep()" <<
G4endl
568 <<
" Track extrapolated until end of World" <<
G4endl
569 <<
" without finding the defined target " <<
G4endl;
577 std::ostringstream message;
578 message <<
"Track extrapolated until energy is exhausted" <<
G4endl
579 <<
"without finding the defined target!";
580 G4Exception(
"G4ErrorPropagator::CheckIfLastStep()",
587 G4cerr <<
"ERROR - G4ErrorPropagator::CheckIfLastStep()" <<
G4endl
588 <<
" Track extrapolated until energy is exhausted" <<
G4endl
589 <<
" without finding the defined target !" <<
G4endl;
598 G4cout <<
" return CheckIfLastStep " << lastG4eStep <<
G4endl;
611 if( fpUserTrackingAction != 0 )
614 ->PreUserTrackingAction((fpTrack) );
624 if( fpUserTrackingAction != 0 )
627 ->PostUserTrackingAction((fpTrack) );
G4ParticleDefinition * GetDefinition() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4SteppingManager * GetSteppingManager() const
G4int MakeOneStep(G4ErrorFreeTrajState *currentTS_FREE)
G4int Propagate(G4ErrorTrajState *currentTS, const G4ErrorTarget *target, G4ErrorMode mode=G4ErrorMode_PropForwards)
G4SteppingManager * fpSteppingManager
void InvokePostUserTrackingAction(G4Track *fpTrack)
void SetG4Track(G4Track *trk)
G4int PropagateOneStep(G4ErrorTrajState *currentTS)
G4TrackStatus GetTrackStatus() const
G4Point3D GetPosition() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4ErrorTargetType GetType() const
const G4Step * GetStep() const
G4ProcessManager * GetProcessManager() const
G4VPhysicalVolume * GetNextVolume() const
virtual void Dump(const G4String &msg) const =0
void SetState(G4ErrorState sta)
static G4StateManager * GetStateManager()
G4double GetKineticEnergy() const
G4TrackingManager * GetTrackingManager() const
G4GLOB_DLL std::ostream G4cout
void SetMode(G4ErrorMode mode)
G4Vector3D GetMomentum() const
void GetFinalTrajState(G4ErrorTrajState *currentTS, G4ErrorFreeTrajState *currentTS_FREE, const G4ErrorTarget *target)
G4ErrorMode GetMode() const
void InvokePreUserTrackingAction(G4Track *fpTrack)
G4ApplicationState GetCurrentState() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
const G4String & GetProcessName() const
G4Track * InitG4Track(G4ErrorTrajState &initialTS)
void SetInitialStep(G4Track *valueTrack)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual G4Plane3D GetTangentPlane(const G4ThreeVector &point) const =0
void SetTarget(const G4ErrorTarget *target)
const G4VProcess * GetProcessDefinedStep() const
G4int MakeSteps(G4ErrorFreeTrajState *currentTS_FREE)
void IncrementCurrentStepNumber()
static G4ParticleTable * GetParticleTable()
void StartTracking(G4Track *aTrack=0)
const G4String & GetParticleType() const
G4bool CheckIfLastStep(G4Track *aTrack)
G4UserTrackingAction * GetUserTrackingAction()
void SetParentID(const G4int aValue)
G4StepPoint * GetPostStepPoint() const
virtual G4eTSType GetTSType() const
static G4EventManager * GetEventManager()
const G4ErrorTarget * GetTarget(G4bool mustExist=0) const
virtual G4int Update(const G4Track *aTrack)
static G4ErrorPropagatorData * GetErrorPropagatorData()
virtual G4int PropagateError(const G4Track *aTrack)
static const double eplus
void SetCharge(G4double charge)
G4double GetPDGCharge() const
G4bool thePropIsInitialized
G4ErrorFreeTrajState * InitFreeTrajState(G4ErrorTrajState *currentTS)
void SetStep(const G4Step *aValue)
G4ErrorState GetState() const
G4double GetStepLength() const
G4GLOB_DLL std::ostream G4cerr