LuaCallbackMock Class Reference

Detailed Description

Definition at line 52 of file lua.cc.

Inheritance diagram for LuaCallbackMock:

Public Member Functions

virtual void onModuleDeclared (const std::string &type, const std::string &name) override
 A module is declared in the configuration file. More...
 
virtual void onIntegrandDeclared (const InputTag &tag) override
 The integrand was defined in the configuration file. More...
 
virtual void onNewPath (const ExecutionPath &path) override
 A new path is declared in the configuration file. More...
 
virtual void addIntegrationDimension () override
 A new integration dimension is requested in the configuration file. More...
 
virtual void onNewInputDeclared (const std::string &name) override
 The configuration file declared a new input. More...
 

Public Attributes

std::vector< std::pair< std::string, std::string > > modules
 
std::vector< InputTagintegrands
 
std::vector< ExecutionPathpaths
 
std::size_t n_dimensions
 
std::vector< std::string > inputs
 

Member Function Documentation

◆ addIntegrationDimension()

virtual void LuaCallbackMock::addIntegrationDimension ( )
inlineoverridevirtual

A new integration dimension is requested in the configuration file.

This function is called when the user calls the 'add_dimension' lua function

A lua code like

ps_point = add_dimension()

will result in a call to this function

Implements ILuaCallback.

Definition at line 68 of file lua.cc.

◆ onIntegrandDeclared()

virtual void LuaCallbackMock::onIntegrandDeclared ( const InputTag tag)
inlineoverridevirtual

The integrand was defined in the configuration file.

This function is called when the user calls the integrand lua function

A lua code like

integrand("module::parameter")

will result in a call to this function with tag equals to module::parameter

Implements ILuaCallback.

Definition at line 60 of file lua.cc.

◆ onModuleDeclared()

virtual void LuaCallbackMock::onModuleDeclared ( const std::string &  type,
const std::string &  name 
)
inlineoverridevirtual

A module is declared in the configuration file.

This function is called as soon as a new module is declared in the configuration file.

A lua code like

MatrixElement.module_name = {}

will result in a call to this function with type equals to MatrixElement and name equals to module_name.

Implements ILuaCallback.

Definition at line 56 of file lua.cc.

◆ onNewInputDeclared()

virtual void LuaCallbackMock::onNewInputDeclared ( const std::string &  name)
inlineoverridevirtual

The configuration file declared a new input.

This function is called when the user calls the declare_input lua function

A lua code like

declare_input("lepton")

will result in a call to this function with name equals to lepton

Implements ILuaCallback.

Definition at line 72 of file lua.cc.

◆ onNewPath()

virtual void LuaCallbackMock::onNewPath ( const ExecutionPath path)
inlineoverridevirtual

A new path is declared in the configuration file.

This function is called when the user declared a new Path instance

A lua code like

p = Path("my", "path")

will result in a call to this function

Implements ILuaCallback.

Definition at line 64 of file lua.cc.


The documentation for this class was generated from the following file: