32 using namespace genie;
38 TNtupleD * elffnt =
new TNtupleD(
"elffnt",
"",
"Q2:mod:Gep:Gmp:Gen:Gmn");
44 algf->
GetAlgorithm(
"genie::DipoleELFormFactorsModel",
"Default"));
47 algf->
GetAlgorithm(
"genie::BBA03ELFormFactorsModel",
"Default"));
50 algf->
GetAlgorithm(
"genie::BBA05ELFormFactorsModel",
"Default"));
57 for(
int iq=0; iq<100; iq++) {
59 double Q2 = iq*0.01 + 0.01;
64 elffnt->Fill(Q2,0,elff.
Gep(),elff.
Gmp(),elff.
Gen(),elff.
Gmn());
68 elffnt->Fill(Q2,1,elff.
Gep(),elff.
Gmp(),elff.
Gen(),elff.
Gmn());
72 elffnt->Fill(Q2,2,elff.
Gep(),elff.
Gmp(),elff.
Gen(),elff.
Gmn());
75 TFile
f(
"./elff.root",
"recreate");
THE MAIN GENIE PROJECT NAMESPACE
double Q2(const Interaction *const i)
void SetQ2(double Q2, bool selected=false)
Kinematics * KinePtr(void) const
static Interaction * QELCC(int tgt, int nuc, int probe, double E=0)
Summary information for an interaction.
const Algorithm * GetAlgorithm(const AlgId &algid)
static AlgFactory * Instance()
The GENIE Algorithm Factory.
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...