58 fIsTrackingTime(false),
60 fGhostNavigatorIndex(-1),
61 fIsGhostGeometry(false),
64 fFastSimulationManager(0),
65 fFastSimulationTrigger(false)
76 <<
"' is created, and will message geometry with world volume `"
88 fIsTrackingTime(false),
90 fGhostNavigatorIndex(-1),
91 fIsGhostGeometry(false),
94 fFastSimulationManager(0),
95 fFastSimulationTrigger(false)
106 <<
"' is created, and will message geometry with world volume `"
118 fIsTrackingTime(false),
120 fGhostNavigatorIndex(-1),
121 fIsGhostGeometry(false),
124 fFastSimulationManager(0),
125 fFastSimulationTrigger(false)
136 <<
"' is created, and will message geometry with world volume `"
157 <<
"': changing of world volume at tracking time is not allowed." <<
G4endl;
158 G4Exception(
"G4FastSimulationManagerProcess::SetWorldVolume(const G4String)",
169 tellWhatIsWrong <<
"Volume newWorldName = `" << newWorldName
170 <<
"' is not a parallel world nor the mass world volume."
172 G4Exception(
"G4FastSimulationManagerProcess::SetWorldVolume(const G4String)",
180 <<
"': changing world volume from '" << fWorldVolume->
GetName()
181 <<
"' to `" << newWorld <<
"'." <<
G4endl;
183 <<
"': setting world volume from to `"<< newWorld->
GetName() <<
"'." <<
G4endl;
185 fWorldVolume = newWorld;
196 tellWhatIsWrong <<
"Null pointer passed for world volume." <<
G4endl;
197 G4Exception(
"G4FastSimulationManagerProcess::SetWorldVolume(const G4VPhysicalVolume* newWorld)",
212 fIsTrackingTime =
true;
217 fGhostNavigator = transportationManager->
GetNavigator(fWorldVolume);
219 if (fIsGhostGeometry) fGhostNavigatorIndex = transportationManager->
ActivateNavigator(fGhostNavigator);
220 else fGhostNavigatorIndex = -1;
230 fIsTrackingTime =
false;
250 if ( fIsGhostGeometry ) currentVolume = fPathFinder->
GetLocatedVolume(fGhostNavigatorIndex);
256 if( fFastSimulationManager )
260 if( fFastSimulationTrigger )
309 if ( fIsGhostGeometry )
314 if (previousStepSize > 0.) fGhostSafety -= previousStepSize;
315 if (fGhostSafety < 0.) fGhostSafety = 0.0;
320 if (currentMinimumStep <= fGhostSafety && currentMinimumStep > 0.)
323 returnedStep = currentMinimumStep;
324 proposedSafety = fGhostSafety - currentMinimumStep;
330 returnedStep = fPathFinder->
ComputeStep(fFieldTrack,
332 fGhostNavigatorIndex,
339 if(eLimited ==
kDoNot) fGhostSafety = fGhostNavigator->
ComputeSafety(endTrack.GetPosition());
340 proposedSafety = fGhostSafety;
361 return &fDummyParticleChange;
376 if ( fIsGhostGeometry ) currentVolume = fPathFinder->
GetLocatedVolume(fGhostNavigatorIndex);
379 if( fFastSimulationManager )
383 if( fFastSimulationTrigger )
void PrepareNewTrack(const G4ThreeVector &position, const G4ThreeVector &direction, G4VPhysicalVolume *massStartVol=0)
static G4PathFinder * GetInstance()
G4double condition(const G4ErrorSymMatrix &m)
void RemoveFSMP(G4FastSimulationManagerProcess *)
G4VPhysicalVolume * IsWorldExisting(const G4String &worldName)
virtual void Initialize(const G4Track &)
G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
void StartTracking(G4Track *)
G4VParticleChange * InvokePostStepDoIt()
G4bool AtRestGetFastSimulationManagerTrigger(const G4Track &, const G4Navigator *a=0)
std::ostringstream G4ExceptionDescription
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
const G4ThreeVector & GetPosition() const
G4Navigator * GetNavigatorForTracking() const
static G4GlobalFastSimulationManager * GetGlobalFastSimulationManager()
G4VParticleChange * AlongStepDoIt(const G4Track &track, const G4Step &step)
virtual ~G4FastSimulationManagerProcess()
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
const G4String & GetName() const
G4VPhysicalVolume * GetLocatedVolume(G4int navId) const
G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
G4FastSimulationManager * GetFastSimulationManager() const
void DeActivateNavigator(G4Navigator *aNavigator)
G4double ComputeStep(const G4FieldTrack &pFieldTrack, G4double pCurrentProposedStepLength, G4int navigatorId, G4int stepNo, G4double &pNewSafety, ELimited &limitedStep, G4FieldTrack &EndState, G4VPhysicalVolume *currentVolume)
void SetProcessSubType(G4int)
const G4String & GetProcessName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
G4int ActivateNavigator(G4Navigator *aNavigator)
const G4ThreeVector & GetMomentumDirection() const
G4LogicalVolume * GetLogicalVolume() const
G4VParticleChange * InvokeAtRestDoIt()
G4Navigator * GetNavigator(const G4String &worldName)
void SetWorldVolume(G4String)
G4FastSimulationManagerProcess(const G4String &processName="G4FastSimulationManagerProcess", G4ProcessType theType=fParameterisation)
G4double AlongStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
G4VPhysicalVolume * GetVolume() const
G4TrackStatus GetTrackStatus() const
void ProposeTrackStatus(G4TrackStatus status)
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4bool PostStepGetFastSimulationManagerTrigger(const G4Track &, const G4Navigator *a=0)
G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
G4VPhysicalVolume * GetWorldVolume() const
static void Update(G4FieldTrack *, const G4Track *)
void AddFSMP(G4FastSimulationManagerProcess *)