ILuaCallback.h
1 /*
2  * MoMEMta: a modular implementation of the Matrix Element Method
3  * Copyright (C) 2016 Universite catholique de Louvain (UCL), Belgium
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 
20 #pragma once
21 
22 #include <string>
23 
24 struct InputTag;
25 struct ExecutionPath;
26 
30 class ILuaCallback {
31  public:
32  virtual ~ILuaCallback() {};
33 
48  virtual void onModuleDeclared(const std::string& type, const std::string& name) = 0;
49 
61  virtual void onIntegrandDeclared(const InputTag& tag) = 0;
62 
74  virtual void onNewPath(const ExecutionPath& path) = 0;
75 
87  virtual void addIntegrationDimension() = 0;
88 
100  virtual void onNewInputDeclared(const std::string& name) = 0;
101 };
virtual void onModuleDeclared(const std::string &type, const std::string &name)=0
A module is declared in the configuration file.
Notification callback used for communication between the lua file and MoMEMta.
Definition: ILuaCallback.h:30
An identifier of a module&#39;s output.
Definition: InputTag_fwd.h:37
virtual void onNewPath(const ExecutionPath &path)=0
A new path is declared in the configuration file.
virtual void addIntegrationDimension()=0
A new integration dimension is requested in the configuration file.
virtual void onNewInputDeclared(const std::string &name)=0
The configuration file declared a new input.
virtual void onIntegrandDeclared(const InputTag &tag)=0
The integrand was defined in the configuration file.