cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
GridParameters Class Reference

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_tn (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)
 

Detailed Description

Definition at line 28 of file GridParameters.h.

Member Typedef Documentation

◆ coord_t

typedef std::vector<unsigned short> coord_t

Definition at line 33 of file GridParameters.h.

Constructor & Destructor Documentation

◆ GridParameters()

GridParameters ( size_t  mbin,
size_t  ndim 
)
explicit

Definition at line 28 of file GridParameters.cpp.

Member Function Documentation

◆ correct()

bool correct ( size_t  bin)

Definition at line 71 of file GridParameters.cpp.

◆ correctionValue()

float correctionValue ( ) const

Definition at line 59 of file GridParameters.h.

◆ dump()

void dump ( ) const

Definition at line 52 of file GridParameters.cpp.

◆ globalMax()

float globalMax ( ) const

Definition at line 40 of file GridParameters.h.

◆ increment()

void increment ( size_t  coord)

Definition at line 53 of file GridParameters.h.

◆ initCorrectionCycle()

void initCorrectionCycle ( size_t  bin,
float  weight 
)

Definition at line 94 of file GridParameters.cpp.

◆ maxHistValue()

double maxHistValue ( ) const

Definition at line 45 of file GridParameters.h.

◆ maxValue()

float maxValue ( size_t  coord) const

Definition at line 43 of file GridParameters.h.

◆ maxValueDiff()

double maxValueDiff ( ) const

Definition at line 44 of file GridParameters.h.

◆ n()

const coord_t & n ( size_t  coord) const

Definition at line 39 of file GridParameters.h.

◆ numPoints()

size_t numPoints ( size_t  coord) const

Definition at line 51 of file GridParameters.h.

◆ prepared()

bool prepared ( ) const

Definition at line 55 of file GridParameters.h.

◆ rescale()

void rescale ( size_t  bin,
float  weight 
)

Definition at line 86 of file GridParameters.cpp.

◆ setCorrectionValue()

void setCorrectionValue ( float  correc)

Definition at line 61 of file GridParameters.h.

◆ setPrepared()

void setPrepared ( bool  prepared = true)

Definition at line 56 of file GridParameters.h.

◆ setValue()

void setValue ( size_t  coord,
float  val 
)

Definition at line 39 of file GridParameters.cpp.

◆ shoot()

void shoot ( const Integrator integ,
size_t  coord,
std::vector< double > &  out 
) const

Definition at line 45 of file GridParameters.cpp.

◆ size()

size_t size ( ) const

Definition at line 37 of file GridParameters.h.