11#include <framework/core/Module.h>
12#include <framework/dataobjects/EventExtraInfo.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <framework/gearbox/Const.h>
17#include <unordered_map>
The base module for generator modules, which sets the generator information as EventExtraInfo.
void initialize() override
Initialize the module.
void setGeneratorInfoMap(std::unordered_map< std::string, double > generatorInfoMap)
Set the generator information
void event() override
Method is called for each event.
std::unordered_map< std::string, double > m_generatorInfoMap
Generator information to be set as extraInfo.
virtual void generatorInitialize()=0
Initialize the module.
virtual std::string getEventType() const
Return m_eventType.
std::string m_eventType
Event type.
StoreObjPtr< EventExtraInfo > m_eventExtraInfo
pointer to EventExtraInfo
GeneratorBaseModule()
Constructor.
virtual void generatorEvent()=0
Method is called for each event.
Type-safe access to single objects in the data store.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Abstract base class for different kinds of events.