/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/CfSource.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/CfSource.hh Source File
Ratpac-two
CfSource.hh
Go to the documentation of this file.
1 
6 #ifndef __RAT_CfSource__
7 #define __RAT_CfSource__
8 
9 #include <CLHEP/Vector/LorentzVector.h>
10 
11 #include <cmath>
12 #include <iostream>
13 #include <vector>
14 
35 namespace RAT {
36 
37 class CfSource {
38  public:
41  CfSource(int newIsotope = 252);
42 
44  ~CfSource();
45 
47  CfSource(const CfSource &CfSource);
48 
50  CfSource &operator=(const CfSource &rhs);
51 
53  int GetNumNeutron() const { return Nneutron; }
54 
56  int GetNumGamma() const { return Ngamma; }
57 
61  CLHEP::HepLorentzVector GetCfNeutronMomentum(int n) const { return neutronE[n]; }
62  double GetCfNeutronTime(int n) const { return Tneutron[n]; }
63 
67  CLHEP::HepLorentzVector GetCfGammaMomentum(int n) const { return gammaE[n]; }
68  double GetCfGammaTime(int n) const { return Tgamma[n]; }
69 
70  private:
71  int Isotope;
72 
73  static const int maxNeutron = 8;
74  static const int maxGamma = 25;
75  int Nneutron, Ngamma;
76 
81  std::vector<CLHEP::HepLorentzVector> neutronE;
82  std::vector<double> Tneutron;
83 
88  std::vector<CLHEP::HepLorentzVector> gammaE;
89  std::vector<double> Tgamma;
90 
91  // G4 particle definitions.
92  static double massNeutron;
93 
96  static double Cf252NeutronSpectrum(const double &x);
97 
100  static double Cf252GammaMultiplicity(const int &x);
101 
104  static double Cf252GammaMultiplicityFit(const double &x);
105 
108  static double Cf252GammaSpectrum(const double &x);
109 };
110 
111 } // namespace RAT
112 
113 #endif
Definition: CfSource.hh:37
CLHEP::HepLorentzVector GetCfNeutronMomentum(int n) const
Definition: CfSource.hh:61
CfSource & operator=(const CfSource &rhs)
Definition: CfSource.cc:237
int GetNumGamma() const
Definition: CfSource.hh:56
CfSource(int newIsotope=252)
Definition: CfSource.cc:33
int GetNumNeutron() const
Definition: CfSource.hh:53
CLHEP::HepLorentzVector GetCfGammaMomentum(int n) const
Definition: CfSource.hh:67
~CfSource()
Definition: CfSource.cc:225
Definition: CCCrossSecMessenger.hh:29