Don't transport more events as available in input
In #2421 a crash was reported when the number of events requested to be transported is larger than the number of events in the input. Add protection against such a crash in the transport class. The number of events to be transported is set to the minimum number of events in any of the connected inputs.
Showing
- sim/transport/generators/CbmPlutoGenerator.cxx 5 additions, 29 deletionssim/transport/generators/CbmPlutoGenerator.cxx
- sim/transport/generators/CbmPlutoGenerator.h 18 additions, 13 deletionssim/transport/generators/CbmPlutoGenerator.h
- sim/transport/generators/CbmUnigenGenerator.cxx 2 additions, 22 deletionssim/transport/generators/CbmUnigenGenerator.cxx
- sim/transport/generators/CbmUnigenGenerator.h 21 additions, 15 deletionssim/transport/generators/CbmUnigenGenerator.h
- sim/transport/steer/CMakeLists.txt 2 additions, 0 deletionssim/transport/steer/CMakeLists.txt
- sim/transport/steer/CbmTransport.cxx 30 additions, 1 deletionsim/transport/steer/CbmTransport.cxx
Loading
Please register or sign in to comment