Go to the source code of this file.
int main |
( |
int |
, |
|
|
char ** |
|
|
) |
| |
Definition at line 32 of file gtestPDFLIB.cxx.
37 double Q2arr[nQ2] = { 1.0, 2.0, 4.0 };
38 const double xmin_idx = -2;
39 const double xmax_idx = 0;
40 const double dx_idx = (xmax_idx-xmin_idx)/(nx-1);
43 TNtuple * nt =
new TNtuple(
"nt",
"pdfs",
"uv:dv:us:ds:s:g:x:Q2");
55 for(
int iq2 = 0; iq2 < nQ2; iq2++) {
56 for(
int ix = 0; ix < nx; ix++) {
58 double Q2 = Q2arr[iq2];
59 double x = TMath::Power(10, xmin_idx + ix * dx_idx);
62 LOG(
"test",
pINFO) <<
"PDFs:\n" << pdf;
73 TFile
f(
"./genie-pdfs.root",
"recreate");
double Q2(const Interaction *const i)
double DownValence(void) const
Pure abstract base class. Defines the PDFModelI interface to be implemented by wrapper classes to exi...
double DownSea(void) const
double Strange(void) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void SetModel(const PDFModelI *model)
const Algorithm * GetAlgorithm(const AlgId &algid)
void Calculate(double x, double q2)
double UpValence(void) const
The GENIE Algorithm Factory.