cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.3
A generic central exclusive processes event generator
Loading...
Searching...
No Matches
FunctionIntegrand Class Reference

Wrapper to the function to be integrated. More...

#include <CepGen/Integration/FunctionIntegrand.h>

+ Inheritance diagram for FunctionIntegrand:
+ Collaboration diagram for FunctionIntegrand:

Public Member Functions

 FunctionIntegrand (size_t, const std::function< double(const std::vector< double > &)> &)
 
double eval (const std::vector< double > &) override
 Compute the integrand for a given coordinates set.
 
size_t size () const override
 Phase space dimension.
 
virtual bool hasProcess () const
 Does this integrand also contain a process object?
 

Detailed Description

Definition at line 28 of file FunctionIntegrand.h.

Constructor & Destructor Documentation

◆ FunctionIntegrand()

FunctionIntegrand ( size_t  ndim,
const std::function< double(const std::vector< double > &)> &  func 
)
explicit

Definition at line 23 of file FunctionIntegrand.cpp.

Member Function Documentation

◆ eval()

double eval ( const std::vector< double > &  )
overridevirtual

Implements Integrand.

Definition at line 26 of file FunctionIntegrand.cpp.

◆ hasProcess()

virtual bool hasProcess ( ) const
virtualinherited

Reimplemented in ProcessIntegrand.

Definition at line 37 of file Integrand.h.

◆ size()

size_t size ( ) const
overridevirtual

Implements Integrand.

Definition at line 33 of file FunctionIntegrand.h.