Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GeoModelDev
GeoModel
Commits
a00e46b4
Commit
a00e46b4
authored
3 years ago
by
Mihaly Novak
Browse files
Options
Downloads
Patches
Plain Diff
Correction of WoodcockProcess in order to correct exiting the WDCK root volume.
parent
1865fedb
Branches
4-add-stress-tests-scripts
No related tags found
1 merge request
!111
Extending the FullSimLight application with the possibility of Woodcock-tracking
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FullSimLight/src/WoodcockProcess.cc
+6
-3
6 additions, 3 deletions
FullSimLight/src/WoodcockProcess.cc
with
6 additions
and
3 deletions
FullSimLight/src/WoodcockProcess.cc
+
6
−
3
View file @
a00e46b4
...
@@ -120,7 +120,7 @@ WoodcockProcess::PostStepGetPhysicalInteractionLength(const G4Track& track, G4do
...
@@ -120,7 +120,7 @@ WoodcockProcess::PostStepGetPhysicalInteractionLength(const G4Track& track, G4do
// we are already reached the WDCK region boundary at the end of the previous
// we are already reached the WDCK region boundary at the end of the previous
// step: just give a step length > 1.0E-4 and let the transportation win this
// step: just give a step length > 1.0E-4 and let the transportation win this
// time normaly (this will set everything properly)
// time normaly (this will set everything properly)
fWDCKStepLength
=
1.0
;
fWDCKStepLength
=
1
0
.0
;
fWDCKRootLVolumeIndx
=
-
1
;
fWDCKRootLVolumeIndx
=
-
1
;
return
fWDCKStepLength
;
return
fWDCKStepLength
;
}
}
...
@@ -216,13 +216,16 @@ WoodcockProcess::PostStepGetPhysicalInteractionLength(const G4Track& track, G4do
...
@@ -216,13 +216,16 @@ WoodcockProcess::PostStepGetPhysicalInteractionLength(const G4Track& track, G4do
// not the track. If the gamma leaves the given WDCK root volume,
// not the track. If the gamma leaves the given WDCK root volume,
// we make sure that a normal transportation step will transverse
// we make sure that a normal transportation step will transverse
// the volume boundary.
// the volume boundary.
fWDCKStepLength
=
stepLength
;
G4Track
&
theTrack
=
const_cast
<
G4Track
&>
(
track
);
G4Track
&
theTrack
=
const_cast
<
G4Track
&>
(
track
);
// shorten a bit this step length if we would reach the boundary:
// shorten a bit this step length if we would reach the boundary:
// - WoodcockProcess limits the step but we see in the DoIt that actually its boundary
// - WoodcockProcess limits the step but we see in the DoIt that actually its boundary
// - the next step will be real Transportation since Woodcock will propose a longer step
// - the next step will be real Transportation since Woodcock will propose a longer step
// - this will bring us properly to the next boundary in the next step
// - this will bring us properly to the next boundary in the next step
const
double
sl
=
fOnWDCKRegionBoundary
?
stepLength
-
1.0E-4
:
stepLength
;
double
sl
=
stepLength
;
if
(
fOnWDCKRegionBoundary
)
{
sl
=
sl
>
1.0E-4
?
sl
-
1.0E-4
:
sl
*
0.999
;
}
fWDCKStepLength
=
sl
;
theTrack
.
SetPosition
(
track
.
GetPosition
()
+
sl
*
track
.
GetMomentumDirection
());
theTrack
.
SetPosition
(
track
.
GetPosition
()
+
sl
*
track
.
GetMomentumDirection
());
// relocate the moved G4Track in order to avoid Navigator warnings
// relocate the moved G4Track in order to avoid Navigator warnings
G4TransportationManager
::
GetTransportationManager
()
->
GetNavigatorForTracking
()
->
LocateGlobalPointAndUpdateTouchableHandle
(
track
.
GetPosition
(),
track
.
GetMomentumDirection
(),
const_cast
<
G4TouchableHandle
&>
(
track
.
GetTouchableHandle
()));
G4TransportationManager
::
GetTransportationManager
()
->
GetNavigatorForTracking
()
->
LocateGlobalPointAndUpdateTouchableHandle
(
track
.
GetPosition
(),
track
.
GetMomentumDirection
(),
const_cast
<
G4TouchableHandle
&>
(
track
.
GetTouchableHandle
()));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment