Dear experts,
I have output of DETECT CARD for two different charged particles (say proton and carbon). I know the integral flux of these two particles. Now I want to combine these two distribution. How to do that?
Let two outputs are n1(E) and n2(E) and fluxes are x1 and x2.

Should I simply do n1(E)x1 + n2(E)x2

Or first I need to normalise n1(E) and n2(E) first and then take the weighted sum.

Thank you for your question. Please note that I can not give specific answers without more information on your simulations. I understand you want to merge the results of two simulations with identical geometry and inputs but different primary particles.

The output of the DETECT card is normalized to the number of primaries of each simulation. Therefore, you may need to calculate something like:

N = n1*x1 + n2*x2

where n1 and n2 are the output simulations and x1 and x2 are two parameters to define the final units of your calculations and the relative weight of the two particles used as primaries. Lastly, please note that this approach is only valid when the primaries is fully independent. If they belong to the same event, the total energy deposition may be a higher value.

Please let me know if this is helpful.
Best regards,