File indexing completed on 2025-01-18 09:59:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #ifndef G4StatMFMacroCanonical_h
0032 #define G4StatMFMacroCanonical_h 1
0033
0034 #include "G4Fragment.hh"
0035 #include "G4StatMFFragment.hh"
0036 #include "G4VStatMFEnsemble.hh"
0037 #include "G4VStatMFMacroCluster.hh"
0038 #include "G4StatMFMacroNucleon.hh"
0039 #include "G4StatMFMacroBiNucleon.hh"
0040 #include "G4StatMFMacroTriNucleon.hh"
0041 #include "G4StatMFMacroTetraNucleon.hh"
0042 #include "G4StatMFMacroMultiNucleon.hh"
0043 #include "G4StatMFParameters.hh"
0044 #include "G4StatMFChannel.hh"
0045 #include "G4StatMFMacroTemperature.hh"
0046 #include "Randomize.hh"
0047
0048
0049 class G4StatMFMacroCanonical : public G4VStatMFEnsemble {
0050
0051 public:
0052
0053
0054 G4StatMFMacroCanonical(G4Fragment const & theFragment);
0055
0056
0057 ~G4StatMFMacroCanonical();
0058
0059 private:
0060
0061 G4StatMFMacroCanonical() {};
0062
0063
0064
0065 G4StatMFMacroCanonical(const G4StatMFMacroCanonical &) : G4VStatMFEnsemble() {};
0066
0067
0068
0069 G4StatMFMacroCanonical & operator=(const G4StatMFMacroCanonical & right);
0070 G4bool operator==(const G4StatMFMacroCanonical & right) const;
0071 G4bool operator!=(const G4StatMFMacroCanonical & right) const;
0072
0073
0074 public:
0075
0076
0077 G4StatMFChannel * ChooseAandZ(const G4Fragment &theFragment);
0078
0079 private:
0080
0081
0082 void Initialize(const G4Fragment & theFragment);
0083
0084
0085 void CalculateTemperature(const G4Fragment & theFragment);
0086
0087
0088 G4double ChooseA(G4int A, std::vector<G4int> & ANumbers);
0089
0090
0091 G4StatMFChannel * ChooseZ(G4int & Z,
0092 std::vector<G4int> & FragmentsA);
0093
0094
0095
0096
0097
0098 G4double _ChemPotentialMu;
0099
0100
0101 G4double _ChemPotentialNu;
0102
0103
0104
0105 G4double _Kappa;
0106
0107
0108 std::vector<G4VStatMFMacroCluster*> _theClusters;
0109
0110 struct DeleteFragment
0111 {
0112 template<typename T>
0113 void operator()(const T* ptr) const
0114 {
0115 delete ptr;
0116 }
0117 };
0118
0119
0120 };
0121
0122 #endif