63 fWeightWindowAlgorithm(aWeightWindowAlgorithm),
64 fWeightWindowStore(aWWStore),
66 fPlaceOfAction(placeOfAction),
67 fGhostWorldName(
"NoParallelWorld"),fGhostWorld(0),
68 fGhostNavigator(0), fNavigatorID(-1), fFieldTrack(
'0'),
69 fParaflag(), fEndTrack(
'0'), feLimited(
kDoNot)
81 G4Exception(
"G4WeightWindowProcess::G4WeightWindowProcess()",
83 "Failed allocation of G4ParticleChange !");
106 delete fPostStepAction;
107 delete fParticleChange;
124 fGhostWorldName = parallelWorldName;
126 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
136 fGhostWorldName = parallelWorld->
GetName();
137 fGhostWorld = parallelWorld;
138 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
159 G4Exception(
"G4WeightWindowProcess::StartTracking",
161 "G4WeightWindowProcess is used for tracking without having a parallel world assigned");
177 fNewGhostTouchable = fOldGhostTouchable;
231 fNewGhostTouchable = fOldGhostTouchable;
265 fPostStepAction->
DoIt(aTrack, fParticleChange, nw);
284 fPostStepAction->
DoIt(aTrack, fParticleChange, nw);
288 return fParticleChange;
311 if (previousStepSize > 0.)
312 { fGhostSafety -= previousStepSize; }
315 if (fGhostSafety < 0.) fGhostSafety = 0.0;
320 if (currentMinimumStep <= fGhostSafety && currentMinimumStep > 0.)
323 returnedStep = currentMinimumStep;
325 proposedSafety = fGhostSafety - currentMinimumStep;
334 = fPathFinder->
ComputeStep(fFieldTrack,currentMinimumStep,fNavigatorID,
342 fGhostSafety = fGhostNavigator->
ComputeSafety(fEndTrack.GetPosition());
349 proposedSafety = fGhostSafety;
355 returnedStep *= (1.0 + 1.0e-9);
399 void G4WeightWindowProcess::CopyStep(
const G4Step & step)
void PrepareNewTrack(const G4ThreeVector &position, const G4ThreeVector &direction, G4VPhysicalVolume *massStartVol=0)
static G4PathFinder * GetInstance()
G4double condition(const G4ErrorSymMatrix &m)
void SetStepLength(G4double value)
virtual G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
virtual void Initialize(const G4Track &)
void SetTrack(G4Track *value)
void SetParallelWorld(const G4String ¶llelWorldName)
G4double GetStepLength() const
G4StepStatus GetStepStatus() const
const G4ThreeVector & GetPosition() const
G4TouchableHandle CreateTouchableHandle(G4int navId) const
G4SteppingControl GetControlFlag() const
const G4VTouchable * GetTouchable() const
void SetStepStatus(const G4StepStatus aValue)
G4StepPoint * GetPreStepPoint() const
virtual ~G4WeightWindowProcess()
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
G4VPhysicalVolume * GetPhysicalVolume() const
const G4String & GetName() const
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
void SetControlFlag(G4SteppingControl StepControlFlag)
G4double ComputeStep(const G4FieldTrack &pFieldTrack, G4double pCurrentProposedStepLength, G4int navigatorId, G4int stepNo, G4double &pNewSafety, ELimited &limitedStep, G4FieldTrack &EndState, G4VPhysicalVolume *currentVolume)
virtual const G4String & GetName() const
const G4String & GetProcessName() const
G4double GetTotalEnergyDeposit() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
void StartTracking(G4Track *)
virtual void Initialize(const G4Track &)
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
G4int ActivateNavigator(G4Navigator *aNavigator)
void DoIt(const G4Track &aTrack, G4ParticleChange *aParticleChange, const G4Nsplit_Weight &nw)
const G4ThreeVector & GetMomentumDirection() const
virtual G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
G4Navigator * GetNavigator(const G4String &worldName)
virtual void KillTrack() const
G4StepPoint * GetPostStepPoint() const
virtual G4int GetReplicaNumber(G4int depth=0) const
G4VParticleChange * pParticleChange
G4VPhysicalVolume * GetVolume() const
virtual G4Nsplit_Weight Calculate(G4double init_w, G4double lowerWeightBound) const =0
G4double GetWeight() const
G4WeightWindowProcess(const G4VWeightWindowAlgorithm &aWeightWindowAlgorithm, const G4VWeightWindowStore &aWWStore, const G4VTrackTerminator *TrackTerminator, G4PlaceOfAction placeOfAction, const G4String &aName="WeightWindowProcess", G4bool para=false)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
void SetTotalEnergyDeposit(G4double value)
virtual G4double GetLowerWeight(const G4GeometryCell &gCell, G4double partEnergy) const =0
virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
void ProposeTrackStatus(G4TrackStatus status)
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4Track * GetTrack() const
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
void SetTouchableHandle(const G4TouchableHandle &apValue)
const G4TouchableHandle & GetTouchableHandle() const
static void Update(G4FieldTrack *, const G4Track *)