gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
scanner_plugin.hpp File Reference

declaration for scanner module More...

Include dependency graph for scanner_plugin.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __SCANNER_SETUP__
 
#define SCANNER_PLUGIN(plug_name, ...)   GAMBIT_PLUGIN_INITIALIZE(__SCANNER_SETUP__, plug_name, scanner, __VA_ARGS__) \
 
Scanner Plugin Macros

Macros used by the scanner plugin

Defines a scanner plugin.

Has the form: scanner_plugin(name, version).

#define scanner_plugin(...)   SCANNER_PLUGIN(__VA_ARGS__)
 

Detailed Description

declaration for scanner module


Authors (add name and date if you modify):

Author
Gregory Martinez (grego.nosp@m.ry.d.nosp@m.avid..nosp@m.mart.nosp@m.inez@.nosp@m.gmai.nosp@m.l.com)
Date
2013 August 2014 Feb
Author
Pat Scott (p.sco.nosp@m.tt@i.nosp@m.mperi.nosp@m.al.a.nosp@m.c.uk)
Date
2014 Dec
Author
Ben Farmer (benja.nosp@m.min..nosp@m.farme.nosp@m.r@fy.nosp@m.sik.s.nosp@m.u.se)
Date
2016 Jul

Definition in file scanner_plugin.hpp.

Macro Definition Documentation

◆ __SCANNER_SETUP__

#define __SCANNER_SETUP__
Value:
using namespace Gambit::Scanner; \
\
void *get_purpose(const std::string &purpose) \
{ \
void *ptr = (get_input_value<Factory_Base>(1))(purpose); \
static_cast <Function_Base<void(void)>*>(ptr)->setPurpose(purpose); \
static_cast <Function_Base<void(void)>*>(ptr)->setPrinter(get_printer().get_stream()); \
static_cast <Function_Base<void(void)>*>(ptr)->setPrior(&get_prior()); \
assign_aux_numbers(purpose, "pointID", "MPIrank"); \
\
return ptr; \
} \
\
inline unsigned int &get_dimension() {return get_input_value<unsigned int>(0);} \
Generic function base used by the scanner. Can be Likelihood, observables, etc.

Definition at line 45 of file scanner_plugin.hpp.

◆ scanner_plugin

#define scanner_plugin (   ...)    SCANNER_PLUGIN(__VA_ARGS__)

Definition at line 42 of file scanner_plugin.hpp.

◆ SCANNER_PLUGIN

#define SCANNER_PLUGIN (   plug_name,
  ... 
)    GAMBIT_PLUGIN_INITIALIZE(__SCANNER_SETUP__, plug_name, scanner, __VA_ARGS__) \

Definition at line 61 of file scanner_plugin.hpp.