 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
21 class SwitchDataStoreModule :
public Module {
31 void init(
const std::string& to,
bool doCopy,
const std::vector<std::string>& mergeBack);
37 virtual void endRun()
override;
38 virtual void event()
override;
45 std::vector<std::string>
Abstract base class for different kinds of events.
virtual void beginRun() override
Called when entering a new run.
bool m_doCopy
should data be copied to m_to?
virtual void event() override
This method is the core of the module.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void endRun() override
This method is called if the current run ends.
Internal module used by Path.add_independent_path().
std::string m_to
active DataStore ID after this module.
SwitchDataStoreModule()
Constructor.
void init(const std::string &to, bool doCopy, const std::vector< std::string > &mergeBack)
setter for Path.
std::string m_from
active DataStore ID before this module.
std::vector< std::string > m_mergeBack
list of obj/arrays (of event durability) that should be copied to m_to regardless of m_doCopy.
virtual void initialize() override
Initialize the Module.