FermiMomentumTable.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::FermiMomentumTable
5 
6 \brief A table of Fermi momentum constants
7 
8 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created August 18, 2005
12 
13 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _FERMI_MOMENTUM_TABLE_H_
20 #define _FERMI_MOMENTUM_TABLE_H_
21 
22 #include <map>
23 
24 using std::map;
25 
26 namespace genie {
27 
28 typedef struct EKF_t {
29  double p; // Fermi momentum for proton
30  double n; // Fermi momentum for neutron
31 } KF_t;
32 
34 {
35 public:
38  virtual ~FermiMomentumTable();
39 
40  double FindClosestKF (int target_pdgc, int nucleon_pdgc) const;
41  void AddTableEntry (int target_pdgc, KF_t kf);
42 
43 private:
44  map<int, KF_t> fKFSets; // the actual Fermi momenta table
45 };
46 
47 } // genie namespace
48 
49 #endif // _FERMI_MOMENTUM_TABLE_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
A table of Fermi momentum constants.
struct genie::EKF_t KF_t