Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:07

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // Hadronic Process: Nuclear De-excitations
0029 // by V. Lara
0030 
0031 
0032 #ifndef G4StatMFMicroManager_h
0033 #define G4StatMFMicroManager_h 1
0034 
0035 #include "G4StatMFMicroPartition.hh"
0036 #include "G4StatMFParameters.hh"
0037 #include "G4StatMFChannel.hh"
0038 
0039 #include "G4Fragment.hh"
0040 #include "Randomize.hh"
0041 
0042 
0043 class G4StatMFMicroManager {
0044 
0045 public:
0046 
0047     // G4StatMFMicroManager class must be initialized with a G4Fragment, multiplicity,
0048     // free internal energy and the entropy of the compund nucleus.
0049     G4StatMFMicroManager(const G4Fragment & theFragment, G4int multiplicity,
0050              G4double FreeIntE, G4double SCompNuc);
0051 
0052     // destructor
0053     ~G4StatMFMicroManager();
0054 
0055 private:
0056     // default constructor
0057     G4StatMFMicroManager() {};
0058 
0059 
0060     // copy constructor
0061     G4StatMFMicroManager(const G4StatMFMicroManager &right);
0062 
0063 
0064     // operators
0065     G4StatMFMicroManager & operator=(const G4StatMFMicroManager & right);
0066 
0067 public:
0068     G4bool operator==(const G4StatMFMicroManager & right) const;
0069     G4bool operator!=(const G4StatMFMicroManager & right) const;
0070 
0071 
0072 public:
0073 
0074     // Choice of fragment atomic numbers and charges.
0075     G4StatMFChannel * ChooseChannel(G4int A0, G4int Z0, G4double MeanT);
0076     
0077     G4double GetProbability(void) const {return _WW;}
0078 
0079     void Normalize(G4double Norm);
0080     
0081     G4double GetMeanMultiplicity(void) const {return _MeanMultiplicity; }
0082 
0083     G4double GetMeanTemperature(void) const {return _MeanTemperature; }
0084 
0085     G4double GetMeanEntropy(void) const {return _MeanEntropy; }
0086 
0087 private:
0088 
0089     // Initailization method
0090     void Initialize(const G4Fragment & theFragment, G4int m,
0091             G4double FreeIntE, G4double SCompNuc);
0092 
0093     G4bool MakePartition(G4int k, G4int * ANumbers); 
0094                                 
0095 
0096 
0097     
0098 // Data members
0099 private:
0100 
0101 
0102     // Partitions vector
0103     std::vector<G4StatMFMicroPartition*> _Partition;
0104     
0105 
0106     // Statistical weight
0107     G4double _WW;
0108 
0109     G4double _Normalization;
0110     
0111     G4double _MeanMultiplicity;
0112 
0113     G4double _MeanTemperature;
0114     
0115     G4double _MeanEntropy;
0116 
0117   struct DeleteFragment 
0118   {
0119     template<typename T>
0120     void operator()(const T* ptr) const
0121     {
0122       delete ptr;
0123     }
0124   };
0125   
0126 };
0127 
0128 #endif
0129 
0130 
0131 
0132 
0133 
0134