I have a simulation that involves some inefficient processes (i.e. partial transmission target) as well as some geometry I would like to optimize (i.e. a collimator). Therefore I am using phase spaces (PS) to split the simulation into two steps.
Step 1: I collect a phase space after the partial transmission target and before the collimator.
Step 2: I use the Step 1 phase space to track through the collimator and collect another phase space at the exit of the collimator.
I then use the phase space from Step 2 to track particles to a water phantom when I exam dose distributions and such.
These phase spaces are produced in separate simulations and I am careful to kill particles passing through my phase space planes at each step so as not to double count.
My question is about normalization. If I measure dose in my phantom, I want it to be related to input electron as Dose/primary (electron). As I have it now, it is Dose/primary (photon from second phase space).
I believe I need to multiply my final measured value (in this case dose) by the ratio of the input particles to output particles for each step like,
Dose/Photon from 2nd PS * Input Photons to Step 2 / Output Photons in 2nd PS * Input Electrons to Step 1 / Output Photons in 1st PS.
First of all, is my approach correct? The way I understand it, each step of my simulation produces a ratio of input particles to output particles and this becomes a conversion factor for that step.
One main question I have is…When I generate a phase space, I randomly sample from it more particles than exist in the phase space. Say my input PS has 1e6 photons, I sample 5e6, and the output PS has 1e5 photons (no biasing, so all with a weight of 1). When I am determining the ratio of input to output, do I use the number of primaries 5e6 sample, or the number of unique input particles 1e6?