00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // Hadronic Process: Nuclear De-excitations 00030 // by V. Lara 00031 00032 00033 #ifndef G4StatMFMicroManager_h 00034 #define G4StatMFMicroManager_h 1 00035 00036 #include "G4StatMFMicroPartition.hh" 00037 #include "G4StatMFParameters.hh" 00038 #include "G4StatMFChannel.hh" 00039 00040 #include "G4Fragment.hh" 00041 #include "Randomize.hh" 00042 00043 00044 class G4StatMFMicroManager { 00045 00046 public: 00047 00048 // G4StatMFMicroManager class must be initialized with a G4Fragment, multiplicity, 00049 // free internal energy and the entropy of the compund nucleus. 00050 G4StatMFMicroManager(const G4Fragment & theFragment, const G4int multiplicity, 00051 const G4double FreeIntE, const G4double SCompNuc); 00052 00053 // destructor 00054 ~G4StatMFMicroManager(); 00055 00056 private: 00057 // default constructor 00058 G4StatMFMicroManager() {}; 00059 00060 00061 // copy constructor 00062 G4StatMFMicroManager(const G4StatMFMicroManager &right); 00063 00064 00065 // operators 00066 G4StatMFMicroManager & operator=(const G4StatMFMicroManager & right); 00067 00068 public: 00069 G4bool operator==(const G4StatMFMicroManager & right) const; 00070 G4bool operator!=(const G4StatMFMicroManager & right) const; 00071 00072 00073 public: 00074 00075 // Choice of fragment atomic numbers and charges. 00076 G4StatMFChannel * ChooseChannel(const G4double A0, const G4double Z0, const G4double MeanT); 00077 00078 G4double GetProbability(void) const {return _WW;} 00079 00080 void Normalize(const G4double Norm); 00081 00082 G4double GetMeanMultiplicity(void) const {return _MeanMultiplicity; } 00083 00084 G4double GetMeanTemperature(void) const {return _MeanTemperature; } 00085 00086 G4double GetMeanEntropy(void) const {return _MeanEntropy; } 00087 00088 private: 00089 00090 // Initailization method 00091 void Initialize(const G4Fragment & theFragment, const G4int m, 00092 const G4double FreeIntE, const G4double SCompNuc); 00093 00094 G4bool MakePartition(const G4int k, G4int * ANumbers); 00095 00096 00097 00098 00099 // Data members 00100 private: 00101 00102 00103 // Partitions vector 00104 std::vector<G4StatMFMicroPartition*> _Partition; 00105 00106 00107 // Statistical weight 00108 G4double _WW; 00109 00110 G4double _Normalization; 00111 00112 G4double _MeanMultiplicity; 00113 00114 G4double _MeanTemperature; 00115 00116 G4double _MeanEntropy; 00117 00118 struct DeleteFragment 00119 { 00120 template<typename T> 00121 void operator()(const T* ptr) const 00122 { 00123 delete ptr; 00124 } 00125 }; 00126 00127 }; 00128 00129 #endif 00130 00131 00132 00133 00134 00135