NuclearModelI.cxx
Go to the documentation of this file.
1  //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2019, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5  or see $GENIE/LICENSE
6 
7  Author: Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
8  University of Liverpool & STFC Rutherford Appleton Lab
9 
10  For the class documentation see the corresponding header file.
11 
12  Important revisions after version 2.0.0 :
13 
14  @ Mar 18, 2016- Joe Johnston (SD)
15  Update GenerateNucleon() and Prob() to accept a radius as the argument,
16  and call the corresponding methods in the nuclear model with a radius.
17 
18 */
19 //____________________________________________________________________________
20 
21 
31 
32 using std::ostringstream;
33 using namespace genie;
34 using namespace genie::constants;
35 using namespace genie::controls;
36 
37 //____________________________________________________________________________
38 
40  double /*hitNucleonRadius*/) const
41  {
42  return GenerateNucleon(tgt);
43  }
44 
45 double NuclearModelI::Prob(double p, double w, const Target & tgt,
46  double /*hitNucleonRadius*/) const
47  {
48  return Prob(p,w,tgt);
49  }
50 
51 //____________________________________________________________________________
Basic constants.
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
const char * p
Definition: xmltok.h:285
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
Misc GENIE control constants.
virtual bool GenerateNucleon(const Target &) const =0
virtual double Prob(double p, double w, const Target &) const =0
Float_t w
Definition: plot.C:20
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...