#include <G4ErrorPropagator.hh>
Definition at line 54 of file G4ErrorPropagator.hh.
◆ G4ErrorPropagator()
G4ErrorPropagator::G4ErrorPropagator |
( |
| ) |
|
Definition at line 57 of file G4ErrorPropagator.cc.
G4SteppingManager * fpSteppingManager
G4SteppingManager * GetSteppingManager() const
G4ErrorTrajState * theInitialTrajState
G4GLOB_DLL std::ostream G4cout
static G4EventManager * GetEventManager()
G4bool thePropIsInitialized
G4TrackingManager * GetTrackingManager() const
◆ ~G4ErrorPropagator()
G4ErrorPropagator::~G4ErrorPropagator |
( |
| ) |
|
|
inline |
◆ CheckIfLastStep()
G4bool G4ErrorPropagator::CheckIfLastStep |
( |
G4Track * |
aTrack | ) |
|
Definition at line 527 of file G4ErrorPropagator.cc.
530 G4bool lastG4eStep =
false;
537 G4cout <<
" G4ErrorPropagator::CheckIfLastStep G4ErrorState= " 551 G4cout <<
" G4ErrorPropagator::CheckIfLastStep " << lastG4eStep
556 else if( aTrack->GetNextVolume() == 0 )
564 std::ostringstream message;
565 message <<
"Track extrapolated until end of World" <<
G4endl 566 <<
"without finding the defined target!";
567 G4Exception(
"G4ErrorPropagator::CheckIfLastStep()",
574 std::ostringstream message;
575 message <<
"Track extrapolated until end of World" <<
G4endl 576 <<
"without finding the defined target.";
577 G4Exception(
"G4ErrorPropagator::CheckIfLastStep()",
582 else if( aTrack->GetTrackStatus() == fStopAndKill )
586 std::ostringstream message;
587 message <<
"Track extrapolated until energy is exhausted" <<
G4endl 588 <<
"without finding the defined target!";
589 G4Exception(
"G4ErrorPropagator::CheckIfLastStep()",
596 std::ostringstream message;
597 message <<
"Track extrapolated until energy is exhausted" <<
G4endl 598 <<
"without finding the defined target.";
599 G4Exception(
"G4ErrorPropagator::CheckIfLastStep()",
609 G4cout <<
" return CheckIfLastStep " << lastG4eStep <<
G4endl;
G4ErrorState GetState() const
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ErrorPropagatorData * GetErrorPropagatorData()
◆ GetFinalTrajState()
Definition at line 481 of file G4ErrorPropagator.cc.
491 G4cout <<
" G4ErrorPropagator::Propagate: final state " 500 currentTS = currentTS_FREE;
506 G4Exception(
"G4ErrorPropagator:GetFinalTrajState()",
508 "Using a G4ErrorSurfaceTrajState with wrong target");
513 *(static_cast<G4ErrorFreeTrajState*>(currentTS_FREE)),
518 G4cout << currentTS <<
" returning tssd " << *currentTS <<
G4endl;
521 delete currentTS_FREE;
G4Point3D GetPosition() const
G4ErrorState GetState() const
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual G4Plane3D GetTangentPlane(const G4ThreeVector &point) const =0
cout<< "-> Edep in the target
G4ErrorTargetType GetType() const
static G4ErrorPropagatorData * GetErrorPropagatorData()
virtual G4eTSType GetTSType() const
◆ GetInitialTrajState()
◆ GetStepLength()
G4double G4ErrorPropagator::GetStepLength |
( |
| ) |
const |
|
inline |
◆ InitFreeTrajState()
Definition at line 453 of file G4ErrorPropagator.cc.
471 std::ostringstream message;
472 message <<
"Wrong trajectory state: " << currentTS->
GetTSType();
473 G4Exception(
"G4ErrorPropagator::InitFreeTrajState()",
"InvalidState",
476 return currentTS_FREE;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual G4eTSType GetTSType() const
◆ InitG4Track()
Definition at line 255 of file G4ErrorPropagator.cc.
266 std::ostringstream message;
267 message <<
"Particle type not defined: " << partType;
268 G4Exception(
"G4ErrorPropagator::InitG4Track()",
"InvalidSetup",
296 G4cout <<
" G4ErrorPropagator new track of energy: " 306 G4Exception(
"G4ErrorPropagator::InitG4Track()",
"InvalidSetup",
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4Point3D GetPosition() const
G4SteppingManager * fpSteppingManager
void SetG4Track(G4Track *trk)
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
void InvokePreUserTrackingAction(G4Track *fpTrack)
void SetPolarization(G4double polX, G4double polY, G4double polZ)
void SetInitialStep(G4Track *valueTrack)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ParticleTable * GetParticleTable()
static const double eplus
void SetCharge(G4double charge)
G4Vector3D GetMomentum() const
G4double GetPDGCharge() const
◆ InvokePostUserTrackingAction()
void G4ErrorPropagator::InvokePostUserTrackingAction |
( |
G4Track * |
fpTrack | ) |
|
Definition at line 631 of file G4ErrorPropagator.cc.
635 if( fpUserTrackingAction != 0 )
638 ->PostUserTrackingAction((fpTrack) );
G4UserTrackingAction * GetUserTrackingAction()
static G4EventManager * GetEventManager()
◆ InvokePreUserTrackingAction()
void G4ErrorPropagator::InvokePreUserTrackingAction |
( |
G4Track * |
fpTrack | ) |
|
Definition at line 618 of file G4ErrorPropagator.cc.
622 if( fpUserTrackingAction != 0 )
625 ->PreUserTrackingAction((fpTrack) );
G4UserTrackingAction * GetUserTrackingAction()
static G4EventManager * GetEventManager()
◆ MakeOneStep()
Definition at line 359 of file G4ErrorPropagator.cc.
370 <<
"@@@@@@@@@@@@@@@@@@@@@@@@@ NEW STEP " <<
G4endl;
385 ->GetProcessDefinedStep()->GetProcessName() ==
"Transportation" )
394 G4cout <<
" transportation determined by geant4e " <<
G4endl;
403 if( static_cast<G4ErrorGeomVolumeTarget*>( target )
410 else if(
theG4Track->GetStep()->GetPostStepPoint()->GetProcessDefinedStep()
411 ->GetProcessName() ==
"G4ErrorTrackLengthTarget" )
421 G4cout <<
" propagating error " << *currentTS_FREE <<
G4endl;
424 const G4Track* cTrack =
const_cast<G4Track*
>(
theG4Track);
434 currentTS_FREE->
Update( cTrack );
440 std::ostringstream message;
441 message <<
"Error returned: " << ierr;
444 "Geant4 tracking will be stopped !");
G4SteppingManager * fpSteppingManager
const G4ErrorTarget * GetTarget(G4bool mustExist=0) const
G4ErrorState GetState() const
void SetState(G4ErrorState sta)
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
cout<< "-> Edep in the target
virtual G4int Update(const G4Track *aTrack)
G4ErrorTargetType GetType() const
static G4ErrorPropagatorData * GetErrorPropagatorData()
virtual G4int PropagateError(const G4Track *aTrack)
◆ MakeSteps()
Definition at line 333 of file G4ErrorPropagator.cc.
341 while( (
theG4Track->GetTrackStatus() == fAlive) ||
342 (
theG4Track->GetTrackStatus() == fStopButAlive) )
345 if( ierr != 0 ) {
break; }
G4int MakeOneStep(G4ErrorFreeTrajState *currentTS_FREE)
G4bool CheckIfLastStep(G4Track *aTrack)
◆ Propagate()
Definition at line 72 of file G4ErrorPropagator.cc.
86 std::ostringstream message;
87 message <<
"Energy too low to be propagated: " 89 G4Exception(
"G4ErrorPropagator::Propagate()",
"GEANT4e-Notification",
99 G4cout <<
" =====> starting GEANT4E tracking for " 110 G4cout <<
" G4ErrorPropagator::Propagate initialTS ";
144 *currentTS = *currentTS_FREE;
147 std::ostringstream message;
148 message <<
"Particle does not reach target: " << *currentTS;
149 G4Exception(
"G4ErrorPropagator::Propagate()",
"GEANT4e-Notification",
161 G4cout <<
" G4ErrorPropagator: propagation ended " <<
G4endl;
171 theG4Track->GetDefinition()->GetProcessManager()->EndTracking();
void InvokePostUserTrackingAction(G4Track *fpTrack)
G4ErrorState GetState() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual void Dump(const G4String &msg) const =0
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
void SetMode(G4ErrorMode mode)
void GetFinalTrajState(G4ErrorTrajState *currentTS, G4ErrorFreeTrajState *currentTS_FREE, const G4ErrorTarget *target)
G4ErrorMode GetMode() const
G4Track * InitG4Track(G4ErrorTrajState &initialTS)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetTarget(const G4ErrorTarget *target)
G4int MakeSteps(G4ErrorFreeTrajState *currentTS_FREE)
static G4ErrorPropagatorData * GetErrorPropagatorData()
G4Vector3D GetMomentum() const
G4ErrorFreeTrajState * InitFreeTrajState(G4ErrorTrajState *currentTS)
◆ PropagateOneStep()
Definition at line 182 of file G4ErrorPropagator.cc.
191 std::ostringstream message;
192 message <<
"Called before initialization is done for this track!";
193 G4Exception(
"G4ErrorPropagator::PropagateOneStep()",
195 "Please call G4ErrorPropagatorManager::InitGeant4e().");
206 std::ostringstream message;
207 message <<
"Energy too low to be propagated: " 209 G4Exception(
"G4ErrorPropagator::PropagateOneStep()",
217 G4cout <<
" =====> starting GEANT4E tracking for " 223 G4cout <<
" G4ErrorPropagator::Propagate initialTS ";
G4int MakeOneStep(G4ErrorFreeTrajState *currentTS_FREE)
const G4ErrorTarget * GetTarget(G4bool mustExist=0) const
G4ErrorState GetState() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
void GetFinalTrajState(G4ErrorTrajState *currentTS, G4ErrorFreeTrajState *currentTS_FREE, const G4ErrorTarget *target)
G4ErrorMode GetMode() const
G4Track * InitG4Track(G4ErrorTrajState &initialTS)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ErrorPropagatorData * GetErrorPropagatorData()
G4ApplicationState GetCurrentState() const
G4Vector3D GetMomentum() const
G4ErrorFreeTrajState * InitFreeTrajState(G4ErrorTrajState *currentTS)
◆ SetStepLength()
void G4ErrorPropagator::SetStepLength |
( |
const G4double |
sl | ) |
|
|
inline |
◆ SetStepN()
void G4ErrorPropagator::SetStepN |
( |
const G4int |
sn | ) |
|
|
inline |
◆ fpSteppingManager
◆ theG4Track
G4Track* G4ErrorPropagator::theG4Track |
|
private |
◆ theInitialTrajState
◆ thePropIsInitialized
G4bool G4ErrorPropagator::thePropIsInitialized |
|
private |
◆ theStepLength
G4double G4ErrorPropagator::theStepLength |
|
private |
◆ theStepN
G4int G4ErrorPropagator::theStepN |
|
private |
◆ verbose
G4int G4ErrorPropagator::verbose |
|
private |
The documentation for this class was generated from the following files: