Belle II Software development
SignalSideVariablesToExtraInfoModule.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 <analysis/dataobjects/ParticleList.h>
13#include <framework/datastore/StoreObjPtr.h>
14
15#include <analysis/VariableManager/Manager.h>
16
17#include <string>
18#include <map>
19
20namespace Belle2 {
33
34 public:
35
39 virtual void initialize() override;
41 virtual void event() override;
42
43
44 private:
45
46 std::string m_particleListName;
54 std::map<std::string, std::string> m_variableToExtraInfo;
55
57 std::vector<Variable::Manager::FunctionPtr> m_functions;
59 std::vector<std::string> m_extraInfoNames;
60
62 };
64}
65
Base class for Modules.
Definition: Module.h:72
The module writes property of single particle found in the input ParticleList as an ExtraInfo to the ...
std::string m_particleListName
The input particleList name.
bool m_allVariablesEventbased
Whether all variables are event-based.
virtual void initialize() override
Register input and output data.
StoreObjPtr< ParticleList > m_inputList
input particle list
std::map< std::string, std::string > m_variableToExtraInfo
Map of variable and extraInfo name to save in the extra-info field.
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.