Belle II Software light-2406-ragdoll
SignalSideVariablesToDaughterExtraInfoModule.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#include <framework/datastore/StoreObjPtr.h>
13
14#include <analysis/dataobjects/ParticleList.h>
15#include <analysis/VariableManager/Manager.h>
16
17#include <string>
18#include <map>
19
20namespace Belle2 {
35
36 public:
37
42
44 virtual void initialize() override;
45
47 virtual void event() override;
48
49
50 private:
51
52 std::string m_particleListName;
60 std::map<std::string, std::string> m_variablesToExtraInfo;
61
63 std::vector<Variable::Manager::FunctionPtr> m_functions;
65 std::vector<std::string> m_extraInfoNames;
67 int m_overwrite = 0;
68 };
70}
71
Base class for Modules.
Definition: Module.h:72
The module writes properties (values of specified variables) of the particle related to the current R...
virtual void initialize() override
Register input and output data.
std::map< std::string, std::string > m_variablesToExtraInfo
Map of variable and extraInfo names to save in the extra-info field.
SignalSideVariablesToDaughterExtraInfoModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_overwrite
-1/0/1/2: Overwrite if lower / don't overwrite / overwrite if higher / always overwrite,...
std::vector< Variable::Manager::FunctionPtr > m_functions
Vector of function pointers corresponding to given variables.
std::vector< std::string > m_extraInfoNames
Vector of extra info names.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24