LHAPDF 6.5.5
Loading...
Searching...
No Matches
LHAPDF::KnotArray Class Reference

Internal storage class for PDF data point grids. More...

#include <KnotArray.h>

Public Member Functions

size_t size () const
 How many flavours are stored in the grid stored.
size_t xsize () const
 How many x knots are there.
size_t q2size () const
 How many q2 knots are there.
bool empty () const
 Is this container empty?
size_t ixbelow (double x) const
 find the largest grid index below given x, such that xknots[index] < x
size_t iq2below (double q2) const
 find the largest grid index below given q2, such that q2knots[index] < q2
double xf (int ix, int iq2, int ipid) const
 convenient accessor to the grid values
const double & coeff (int ix, int iq2, int pid, int in) const
 convenient accessor to the polynomial coefficients, returns reference rather than value, to be able to read multiple adjacent at once
int lookUpPid (size_t id) const
 accessor to the internal 'lookup table' for the pid's
double xs (size_t id) const
double logxs (size_t id) const
double q2s (size_t id) const
double logq2s (size_t id) const
size_t shape (size_t id) const
bool inRangeX (double x) const
 check if value within the boundaries of xknots
bool inRangeQ2 (double q2) const
 check if value within the boundaries of q2knots
int get_pid (int id) const
bool has_pid (int id) const
void initPidLookup ()
void fillLogKnots ()
const std::vector< double > & xs () const
 Const accessors to the internal data container.
const std::vector< double > & logxs () const
const std::vector< double > & q2s () const
const std::vector< double > & logq2s () const
std::vector< double > & setCoeffs ()
 Non const accessors for programmatic filling.
std::vector< double > & setGrid ()
std::vector< double > & setxknots ()
std::vector< double > & setq2knots ()
std::vector< size_t > & setShape ()
std::vector< int > & setPids ()

Private Attributes

std::vector< size_t > _shape
std::vector< double > _grid
std::vector< double > _coeffs
std::vector< int > _pids
std::vector< int > _lookup
std::vector< double > _xs
std::vector< double > _q2s
std::vector< double > _logxs
std::vector< double > _logq2s

Detailed Description

Internal storage class for PDF data point grids.

We use "array" to refer to the "raw" knot grid, while "grid" means a grid-based PDF. The "1F" means that this is a single-flavour array


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