From 4c9131fe812dcddb1234dd6a3a2857f37af63cce Mon Sep 17 00:00:00 2001 From: majacquet Date: Tue, 14 Apr 2026 18:41:31 +0200 Subject: [PATCH 1/2] Generic way to perform splitting of scatter --- .../biasing/GateScatterSplittingFreeFlightOptn.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp b/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp index 8f0422874..bfaf01bcb 100644 --- a/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp +++ b/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp @@ -60,14 +60,13 @@ G4VParticleChange *GateScatterSplittingFreeFlightOptn::ApplyFinalStateBiasing( const G4BiasingProcessInterface *callingProcess, const G4Track *track, const G4Step *step, G4bool &b) { // This is the reference pure G4 version - // return ApplyFinalStateBiasing_V1_PostStepDoIt(callingProcess, track, step, - // b); + return ApplyFinalStateBiasing_V1_PostStepDoIt(callingProcess, track, step,b); // This is a faster (1x5 speedup) version with direct Compton sampling // return ApplyFinalStateBiasing_V3_SampleScatter(callingProcess, track, step, // b); - return ApplyFinalStateBiasing_V4_SampleComptonOnly(callingProcess, track, - step, b); + //return ApplyFinalStateBiasing_V4_SampleComptonOnly(callingProcess, track, + // step, b); // Those are tests, not conclusive // return ApplyFinalStateBiasing_V2_SampleSecondaries(callingProcess, track, From eb3d74a3a3b0c1bb23f2e82c9fa7b06ff470ea9b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Apr 2026 16:42:19 +0000 Subject: [PATCH 2/2] [pre-commit.ci] Automatic python and c++ formatting --- .../biasing/GateScatterSplittingFreeFlightOptn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp b/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp index bfaf01bcb..76f884024 100644 --- a/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp +++ b/core/opengate_core/opengate_lib/biasing/GateScatterSplittingFreeFlightOptn.cpp @@ -60,13 +60,13 @@ G4VParticleChange *GateScatterSplittingFreeFlightOptn::ApplyFinalStateBiasing( const G4BiasingProcessInterface *callingProcess, const G4Track *track, const G4Step *step, G4bool &b) { // This is the reference pure G4 version - return ApplyFinalStateBiasing_V1_PostStepDoIt(callingProcess, track, step,b); + return ApplyFinalStateBiasing_V1_PostStepDoIt(callingProcess, track, step, b); // This is a faster (1x5 speedup) version with direct Compton sampling // return ApplyFinalStateBiasing_V3_SampleScatter(callingProcess, track, step, // b); - //return ApplyFinalStateBiasing_V4_SampleComptonOnly(callingProcess, track, - // step, b); + // return ApplyFinalStateBiasing_V4_SampleComptonOnly(callingProcess, track, + // step, b); // Those are tests, not conclusive // return ApplyFinalStateBiasing_V2_SampleSecondaries(callingProcess, track,