Skip to content

Commit

Permalink
Modification of Rayleigh behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
majacquet committed Jun 27, 2024
1 parent f3a0575 commit e6c0b5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion core/opengate_core/opengate_lib/GateOptnForceFreeFlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ void GateOptnForceFreeFlight ::AlongMoveBy(
G4double weightChange)

{
fWeightChange[callingProcess->GetWrappedProcess()->GetProcessName()] =
G4String processName = callingProcess->GetWrappedProcess()->GetProcessName();
if (processName != "Rayl"){
fWeightChange[processName] =
weightChange;
}
else {
fWeightChange[processName] = 1;
}
}
2 changes: 1 addition & 1 deletion opengate/actors/miscactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def set_default_user_info(user_info):
user_info.attach_to_logical_holder = True
user_info.splitting_factor = 1
user_info.relative_min_weight_of_particle = np.inf
user_info.gamma_processes = ["compt", "phot", "conv"]
user_info.gamma_processes = ["compt", "phot", "conv","Rayl"]
user_info.electron_processes = ["eBrem"]
user_info.positron_processes = ["annihil", "eBrem"]
user_info.russian_roulette_for_angle = False
Expand Down

0 comments on commit e6c0b5b

Please sign in to comment.