LocalFGM.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::LocalFGM
5 
6 \brief local Fermi gas model. Implements the NuclearModelI
7  interface.
8 
9 \ref
10 
11 \author Joe Johnston, Steven Dytman
12 
13 \created December 2015
14 
15 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
16  For the full text of the license visit http://copyright.genie-mc.org
17 
18 */
19 //____________________________________________________________________________
20 
21 #ifndef _LOCAL_FGM_H_
22 #define _LOCAL_FGM_H_
23 
24 #include <map>
25 
26 #include <TH1D.h>
27 
29 
30 using std::map;
31 
32 namespace genie {
33 
34 class LocalFGM : public NuclearModelI {
35 
36 public:
37  LocalFGM();
38  LocalFGM(string config);
39  virtual ~LocalFGM();
40 
41  using NuclearModelI::GenerateNucleon; // inherit versions not overridden here
42  using NuclearModelI::Prob;
43 
44  //-- allow methods to be called with a radius
45  bool GenerateNucleon (const Target & t, double hitNucleonRadius) const;
46  double Prob (double p, double w, const Target & t,
47  double hitNucleonRadius) const;
48 
49  //-- implement the NuclearModelI interface
50  bool GenerateNucleon (const Target & t) const {
51  return GenerateNucleon(t,0.0);
52  }
53  double Prob (double p, double w, const Target & t) const {
54  return Prob(p,w,t,0.0);
55  }
56  NuclearModel_t ModelType (const Target &) const
57  {
58  return kNucmLocalFermiGas;
59  }
60 
61  virtual double LocalFermiMomentum( const Target & t, int nucleon_pdg, double radius ) const ;
62 
63  //-- override the Algorithm::Configure methods to load configuration
64  // data to private data members
65  void Configure (const Registry & config);
66  void Configure (string param_set) ;
67 
68  protected:
69  void LoadConfig (void);
70 
71 
72 private:
73  TH1D * ProbDistro (const Target & t, double r) const;
74 
75  map<int, double> fNucRmvE;
76 
77  double fPMax;
78 
79  // options related to SRC pairs
80  double fSRC_Fraction;
81  double fPCutOff;
82 };
83 
84 } // genie namespace
85 #endif // _LOCAL_FGM_H_
86 
double Prob(double p, double w, const Target &t) const
Definition: LocalFGM.h:53
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
double Prob(double p, double w, const Target &t, double hitNucleonRadius) const
Definition: LocalFGM.cxx:96
Pure abstract base class. Defines the NuclearModelI interface to be implemented by any physics model ...
Definition: NuclearModelI.h:46
NuclearModel_t ModelType(const Target &) const
Definition: LocalFGM.h:56
local Fermi gas model. Implements the NuclearModelI interface.
Definition: LocalFGM.h:34
map< int, double > fNucRmvE
Definition: LocalFGM.h:75
static Config * config
Definition: config.cpp:1054
void LoadConfig(void)
Definition: LocalFGM.cxx:212
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:40
double fSRC_Fraction
Definition: LocalFGM.h:80
double fPCutOff
Definition: LocalFGM.h:81
bool GenerateNucleon(const Target &t, double hitNucleonRadius) const
Definition: LocalFGM.cxx:52
p
Definition: test.py:223
double fPMax
Definition: LocalFGM.h:77
bool GenerateNucleon(const Target &t) const
Definition: LocalFGM.h:50
TH1D * ProbDistro(const Target &t, double r) const
Definition: LocalFGM.cxx:112
enum genie::ENuclearModel NuclearModel_t
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:65
virtual ~LocalFGM()
Definition: LocalFGM.cxx:47
virtual double LocalFermiMomentum(const Target &t, int nucleon_pdg, double radius) const
Definition: LocalFGM.cxx:184
virtual bool GenerateNucleon(const Target &) const =0
void Configure(const Registry &config)
Definition: LocalFGM.cxx:200
virtual double Prob(double p, double w, const Target &) const =0