diff --git a/Core/src/Framework/Sequencer.cpp b/Core/src/Framework/Sequencer.cpp index 3058ec7886897de361545a92e7283b29b8e9e4d1..cc787bce1c01d1235693274f6709644df3880897 100644 --- a/Core/src/Framework/Sequencer.cpp +++ b/Core/src/Framework/Sequencer.cpp @@ -137,8 +137,6 @@ FW::Sequencer::run(boost::optional<size_t> events, size_t skip) "Number of events, to be read in, are differnt for readers. Abort"); return ProcessCode::ABORT; } - // Check if user wants to process less events than given by the reader - if (events && (*events) < numEvents) numEvents = *events; // Check if the number of skipped events is smaller then the overall number // if events if (skip > numEvents) { @@ -149,6 +147,8 @@ FW::Sequencer::run(boost::optional<size_t> events, size_t skip) // The total number of events is the maximum number of events minus the // number of skipped evebts numEvents -= skip; + // Check if user wants to process less events than given by the reader + if (events && (*events) < numEvents) numEvents = *events; } // Execute the event loop