Belle II Software  release-08-01-10
VariableToReturnValueModule.h
1 #pragma once
2 /**************************************************************************
3  * basf2 (Belle II Analysis Software Framework) *
4  * Author: The Belle II Collaboration *
5  * *
6  * See git log for contributors and copyright holders. *
7  * This file is licensed under LGPL-3.0, see LICENSE.md. *
8  **************************************************************************/
9 
10 #include <framework/core/Module.h>
11 #include <analysis/VariableManager/Manager.h>
12 
13 #include <string>
14 
15 namespace Belle2 {
24  public:
27 
29  virtual void initialize() override;
31  virtual void event() override;
32 
33  private:
37  std::string m_variable;
38 
39  };
41 } // end namespace Belle2
Base class for Modules.
Definition: Module.h:72
Module to calculate variable specified by the user and set return value accordingly.
virtual void initialize() override
Initialize.
virtual void event() override
Method called for each event.
std::string m_variable
variable name (module parameter)
Variable::Manager::FunctionPtr m_function
function pointer corresponding to given variable.
std::function< VarVariant(const Particle *)> FunctionPtr
functions stored take a const Particle* and return VarVariant.
Definition: Manager.h:113
Abstract base class for different kinds of events.