Add the check of pulse energy
The pulse requested in the BunchPattern may be too weak. Then the exposed frame will be also almost dark. The real pulse energy can be measured by XGM detector. It would be nice to take this into account.
Edited by Egor Sobolev