9#include <hlt/softwaretrigger/core/utilities.h>
17 namespace SoftwareTrigger {
18 bool makePreScale(
const unsigned int& preScaleFactor, uint32_t* counter)
21 if (preScaleFactor == 1) {
24 }
else if (preScaleFactor == 0) {
31 const unsigned int randomNumber = gRandom->Integer(preScaleFactor);
32 return randomNumber == 0;
36 const auto remainder = *counter % preScaleFactor;
37 *counter = (remainder == 0) ? 1 : *counter + 1;
38 return remainder == 0;
Abstract base class for different kinds of events.