[mcstas-users] Multiple sources - potential bug
Петр Коник
104pet104 at gmail.com
Sat Mar 21 16:10:52 CET 2026
Hi all!
Wanted to report (maybe not so) strange behavior with calculating beam intensities when several sources are used. The way I do it is to put EXTEND to the very first origin arm, where I flip a coin to choose which of two sources to use (e.g. for bi-spectral extraction) with WHEN condition.
The problem is that it looks like while each source now generates only half of the total number of trajectories, they still use the full number of them to estimate the flux “carried” by each of them. My solution is to artificially double the flux of the sources (given I generate 50/50 trajectories on each of two sources).
Don’t know if it’s intended behavior or not.
Best,
Peter Konik
More information about the mcstas-users
mailing list