Berkeley Nuclear Data Software
EnergeticDD.h
Go to the documentation of this file.
2 namespace NSDG4
3 {
5 {
6 public:
7  //default constructor puts the class into a working state.
8  EnergeticDD();
9 
12  virtual void GeneratePrimaries(G4Event* event);
13 
14 private:
15  // Gets the neutron energy as a function of angle for a given deueteron energy
16  double getNeutronEnergyThetaEd(double a_Ed,double a_theta);
17  //reads the required anisotropy file from disk
18  void readAnisoFile();
19 
20  //linear array of cdf data for specified energies
21  std::vector<double> m_cdfData;
22  //energies assoicated with the above array
23  std::vector<double> m_cdfEn;
24  //angles associated with the cdf
25  std::vector<double> m_theta;
26 
27  //integer width of a set of cdf values for a given energy
28  int m_cdfDataWidth;
29  //loads an interpolated cdf for a given energy
30  void loadCDF(double a_Ed);
31  //used to store a current estimated CDF for an interpolated energy
32  std::vector<double> m_interpCDF;
33  //returns a theta for a given energy
34  double getTheta(double a_Ed);
35 
36 
39  bool m_isReflected;
40 
41 };
42 
43 }
Definition: EnergeticDD.h:5
virtual void GeneratePrimaries(G4Event *event)
Definition: EnergeticDD.cpp:57
EnergeticDD()
Definition: EnergeticDD.cpp:20
Definition: NSDG4PrimaryGenerator.h:13
Definition: AbsLYAna.h:7