Belle II Software development
MergeDataStoreModule.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 {
23
24 public:
25
31
33 void init(const std::string& to, bool doCopy, const std::vector<std::string>& mergeBack);
34
36
37 virtual void initialize() override;
38 virtual void event() override;
39 virtual void terminate() override;
40
41 private:
42 std::string m_from;
43 std::string m_to;
47 std::vector<std::string> m_mergeBack;
48 };
50}
Internal module used by Path.add_independent_merge_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.
virtual void terminate() override
This method is called at the end of the event processing.
std::vector< std::string > m_mergeBack
list of obj/arrays (of event durability) that should be merged with m_to.
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.
bool m_createNew
create new DataStore
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.