Belle II Software light-2406-ragdoll
SwitchDataStoreModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/core/Module.h>
12
13namespace Belle2 {
20
21 public:
22
29 void init(const std::string& to, bool doCopy, const std::vector<std::string>& mergeBack);
30
32
33 virtual void initialize() override;
34 virtual void beginRun() override;
35 virtual void endRun() override;
36 virtual void event() override;
37 virtual void terminate() override;
38
39 private:
40 std::string m_from;
41 std::string m_to;
42 bool m_doCopy;
43 std::vector<std::string>
45 };
47}
Base class for Modules.
Definition: Module.h:72
Internal module used by Path.add_independent_path().
std::string m_from
active DataStore ID before this module.
virtual void initialize() override
Initialize the Module.
virtual void event() override
This method is the core of the module.
bool m_doCopy
should data be copied to m_to?
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void beginRun() override
Called when entering a new run.
std::vector< std::string > m_mergeBack
list of obj/arrays (of event durability) that should be copied to m_to regardless of m_doCopy.
std::string m_to
active DataStore ID after this module.
void init(const std::string &to, bool doCopy, const std::vector< std::string > &mergeBack)
setter for Path.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24