I have created a working example here:
can’t get it to work so far, but additional insight: it’s not clones getting recognized in the wrong depth of volume…
Now there is an “insideBox” inside an “outsideBox” within the “parallelWorld”, nothing in the mass-world. Particle #1 travels through as expected:
G4WT0 > * G4Track Information: Particle = gamma, Track ID = 1, Parent ID = 0
G4WT0 > *********************************************************************************************************
G4WT0 >
G4WT0 > Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolume ProcName
G4WT0 > 0 0 0 200 0.1 0 0 0 World initStep
G4WT0 > 1 / 1 DistanceToApply: parallelWorld -> parallelWorld Current Volume: parallelWorld
G4WT0 > 1 / 1 GenerateBiasingFinalState: parallelWorld -> parallelWorld Current Volume: outsideBox Pos: (0,0,100)
G4WT0 > 1 from id: 2 to id: 3 parallelWorld -> outsideBox
G4WT0 > 1 0 0 100 0.1 0 100 100 World biasLimiter
G4WT0 > :----- List of 2ndaries - #SpawnInStep= 1(Rest= 0,Along= 0,Post= 1), #SpawnTotal= 1 ---------------
G4WT0 > : 0 0 100 0.1 gamma
G4WT0 > :----------------------------------------------------------------- EndOf2ndaries Info ---------------
G4WT0 > 1 / 2 DistanceToApply: parallelWorld -> outsideBox Current Volume: outsideBox
G4WT0 > 1 / 2 GenerateBiasingFinalState: parallelWorld -> outsideBox Current Volume: insideBox Pos: (0,0,50)
G4WT0 > 1 from id: 3 to id: 4 outsideBox -> insideBox
G4WT0 > 2 0 0 50 0.1 0 50 150 World biasLimiter
G4WT0 > :----- List of 2ndaries - #SpawnInStep= 2(Rest= 0,Along= 0,Post= 2), #SpawnTotal= 3 ---------------
G4WT0 > : 0 0 50 0.1 gamma
G4WT0 > : 0 0 50 0.1 gamma
G4WT0 > :----------------------------------------------------------------- EndOf2ndaries Info ---------------
G4WT0 > 1 / 3 DistanceToApply: outsideBox -> insideBox Current Volume: insideBox
G4WT0 > 1 / 3 GenerateBiasingFinalState: outsideBox -> insideBox Current Volume: outsideBox Pos: (0,0,-50)
G4WT0 > 1 from id: 4 to id: 3 insideBox -> outsideBox
G4WT0 > 1 killed
getting killed at the boundary insideBox/outsideBox.
One of the clones, #2, starts at the boundary parallelWorld/outsideBox, splits when entering insideBox, survives leaving insideBox, gets killed when leaving outsideBox:
G4WT0 > *********************************************************************************************************
G4WT0 > * G4Track Information: Particle = gamma, Track ID = 2, Parent ID = 1
G4WT0 > *********************************************************************************************************
G4WT0 >
G4WT0 > Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolume ProcName
G4WT0 > 0 0 0 100 0.1 0 0 0 World initStep
G4WT0 > 2 / 1 DistanceToApply: outsideBox -> outsideBox Current Volume: outsideBox
G4WT0 > 2 / 1 GenerateBiasingFinalState: outsideBox -> outsideBox Current Volume: insideBox Pos: (0,0,50)
G4WT0 > 2 from id: 3 to id: 4 outsideBox -> insideBox
G4WT0 > 1 0 0 50 0.1 0 50 50 World biasLimiter
G4WT0 > :----- List of 2ndaries - #SpawnInStep= 2(Rest= 0,Along= 0,Post= 2), #SpawnTotal= 2 ---------------
G4WT0 > : 0 0 50 0.1 gamma
G4WT0 > : 0 0 50 0.1 gamma
G4WT0 > :----------------------------------------------------------------- EndOf2ndaries Info ---------------
G4WT0 > 2 / 2 DistanceToApply: outsideBox -> insideBox Current Volume: insideBox
G4WT0 > 2 / 2 GenerateBiasingFinalState: outsideBox -> insideBox Current Volume: outsideBox Pos: (0,0,-50)
G4WT0 > 2 from id: 4 to id: 3 insideBox -> outsideBox
G4WT0 > 2 killed
However, when placing a scattering object into the mass world, tracing particle #1 again:
G4WT0 > *********************************************************************************************************
G4WT0 > * G4Track Information: Particle = gamma, Track ID = 1, Parent ID = 0
G4WT0 > *********************************************************************************************************
G4WT0 >
G4WT0 > Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolume ProcName
G4WT0 > 0 0 0 200 0.1 0 0 0 World initStep
G4WT0 > 1 / 1 DistanceToApply: parallelWorld -> parallelWorld Current Volume: parallelWorld
G4WT0 > 1 / 1 GenerateBiasingFinalState: parallelWorld -> parallelWorld Current Volume: outsideBox Pos: (0,0,100)
G4WT0 > 1 from id: 2 to id: 3 parallelWorld -> outsideBox
G4WT0 > 1 0 0 100 0.1 0 100 100 World biasLimiter
G4WT0 > :----- List of 2ndaries - #SpawnInStep= 1(Rest= 0,Along= 0,Post= 1), #SpawnTotal= 1 ---------------
G4WT0 > : 0 0 100 0.1 gamma
G4WT0 > :----------------------------------------------------------------- EndOf2ndaries Info ---------------
G4WT0 > 1 / 2 DistanceToApply: parallelWorld -> outsideBox Current Volume: outsideBox
G4WT0 > 1 / 2 GenerateBiasingFinalState: parallelWorld -> outsideBox Current Volume: insideBox Pos: (0,0,50)
G4WT0 > 1 from id: 3 to id: 4 outsideBox -> insideBox
G4WT0 > 2 0 0 50 0.1 0 50 150 World biasLimiter
G4WT0 > :----- List of 2ndaries - #SpawnInStep= 2(Rest= 0,Along= 0,Post= 2), #SpawnTotal= 3 ---------------
G4WT0 > : 0 0 50 0.1 gamma
G4WT0 > : 0 0 50 0.1 gamma
G4WT0 > :----------------------------------------------------------------- EndOf2ndaries Info ---------------
G4WT0 > 1 / 3 DistanceToApply: outsideBox -> insideBox Current Volume: insideBox
G4WT0 > 1 / 3 GenerateBiasingFinalState: outsideBox -> insideBox Current Volume: insideBox Pos: (0,0,5)
G4WT0 > 1 from id: 4 to id: 4 insideBox -> insideBox
G4WT0 > 1 not doing anything
G4WT0 > 3 0 0 5 0.1 0 45 195 Box CoupledTransportation
G4WT0 > 4 0 0 -4.58 0.0972 0.000119 9.58 205 Box compt
G4WT0 > :----- List of 2ndaries - #SpawnInStep= 1(Rest= 0,Along= 0,Post= 1), #SpawnTotal= 4 ---------------
G4WT0 > : 0 0 -4.58 0.00266 e-
G4WT0 > :----------------------------------------------------------------- EndOf2ndaries Info ---------------
G4WT0 > 5 -0.274 0.14 -5 0.0972 0 0.525 205 World CoupledTransportation
G4WT0 > 6 -29.3 15 -50 0.0972 0 55.6 261 World biasLimiter
G4WT0 > 1 / 7 DistanceToApply: insideBox -> outsideBox Current Volume: outsideBox
G4WT0 > 1 / 7 GenerateBiasingFinalState: insideBox -> outsideBox Current Volume: parallelWorld Pos: (-61.6426,31.5805,-100)
G4WT0 > 1 from id: 3 to id: 2 outsideBox -> parallelWorld
G4WT0 > 7 -61.6 31.6 -100 0.0972 0 61.8 322 World biasLimiter
G4WT0 > 1 / 8 DistanceToApply: outsideBox -> parallelWorld Current Volume: parallelWorld
G4WT0 > 8 -159 81.2 -250 0.0972 0 185 508 OutOfWorld CoupledTransportation
There is no transition from insideBox to outsideBox, or id: 4 to id: 3. From the pattern, I would expect this to happen before/at step 6…
I would be so very happy for suggestions on how to debug this 