 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreObjPtr.h>
14 #include <framework/dataobjects/EventMetaData.h>
30 class EventLimiterModule :
public Module {
43 virtual void event()
override;
int m_runEvents
How many events processed for the current run so far, stops counting up once max is hit Only used/inc...
virtual ~EventLimiterModule()
Destructor of the module.
virtual void event() override
Checks if we've reached the maximum number of events yet and sets the return value to False if we hav...
bool m_returnValue
Flag that will be returned by the module.
EventLimiterModule()
Constructor: Sets the description, the properties and the parameters of the module.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
int m_maxEventsPerRun
Maximum number of events to be collected at the start of each run (-1 = no maximum)
StoreObjPtr< EventMetaData > m_eventMetaData
Datastore pointers.
virtual void beginRun() override
Resets our event counter to zero and return value to True.
virtual void initialize() override
Initialization states required data objects (EventMetaData)