CepGen 1.2.5
Central exclusive processes event generator
|
A parameters placeholder for the grid integration helper. More...
#include <CepGen/Integration/GridParameters.h>
Public Types | |
typedef std::vector< unsigned short > | coord_t |
Coordinates definition. | |
Public Member Functions | |
GridParameters (size_t mbin, size_t ndim) | |
Build a generation grid for a ndim-dimensional phase space. | |
void | dump () const |
Dump the grid coordinates. | |
size_t | size () const |
Grid multiplicity Number of times a phase space point has been randomly selected. | |
const coord_t & | n (size_t coord) const |
float | globalMax () const |
Global function maximum. | |
float | maxValue (size_t coord) const |
Maximal function value for a given grid coordinate. | |
double | maxValueDiff () const |
double | maxHistValue () const |
void | setValue (size_t, float) |
Set the function value for a given grid coordinate Shoot a phase space point for a grid coordinate. | |
void | shoot (const Integrator *integ, size_t coord, std::vector< double > &out) const |
size_t | numPoints (size_t coord) const |
Number of points already shot for a given grid coordinate. | |
void | increment (size_t coord) |
Specify a new trial has been attempted for bin. | |
bool | prepared () const |
Has the grid been prepared. | |
void | setPrepared (bool prepared=true) |
Mark the grid as prepared. | |
float | correctionValue () const |
Correction to apply on the next phase space point generation. | |
void | setCorrectionValue (float correc) |
Set the correction to apply on the next phase space point generation. | |
bool | correct (size_t) |
Apply the correction requested at the previous generation. | |
void | rescale (size_t, float) |
void | initCorrectionCycle (size_t, float) |
Definition at line 28 of file GridParameters.h.
typedef std::vector<unsigned short> coord_t |
Definition at line 33 of file GridParameters.h.
|
explicit |
Definition at line 28 of file GridParameters.cpp.
bool correct | ( | size_t | bin | ) |
Definition at line 71 of file GridParameters.cpp.
float correctionValue | ( | ) | const |
Definition at line 59 of file GridParameters.h.
void dump | ( | ) | const |
Definition at line 52 of file GridParameters.cpp.
float globalMax | ( | ) | const |
Definition at line 40 of file GridParameters.h.
void increment | ( | size_t | coord | ) |
Definition at line 53 of file GridParameters.h.
void initCorrectionCycle | ( | size_t | bin, |
float | weight | ||
) |
Definition at line 94 of file GridParameters.cpp.
double maxHistValue | ( | ) | const |
Definition at line 45 of file GridParameters.h.
float maxValue | ( | size_t | coord | ) | const |
Definition at line 43 of file GridParameters.h.
double maxValueDiff | ( | ) | const |
Definition at line 44 of file GridParameters.h.
const coord_t & n | ( | size_t | coord | ) | const |
Definition at line 39 of file GridParameters.h.
size_t numPoints | ( | size_t | coord | ) | const |
Definition at line 51 of file GridParameters.h.
bool prepared | ( | ) | const |
Definition at line 55 of file GridParameters.h.
void rescale | ( | size_t | bin, |
float | weight | ||
) |
Definition at line 86 of file GridParameters.cpp.
void setCorrectionValue | ( | float | correc | ) |
Definition at line 61 of file GridParameters.h.
void setPrepared | ( | bool | prepared = true | ) |
Definition at line 56 of file GridParameters.h.
void setValue | ( | size_t | coord, |
float | val | ||
) |
Definition at line 39 of file GridParameters.cpp.
void shoot | ( | const Integrator * | integ, |
size_t | coord, | ||
std::vector< double > & | out | ||
) | const |
Definition at line 45 of file GridParameters.cpp.
size_t size | ( | ) | const |
Definition at line 37 of file GridParameters.h.