Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4StatMFMicroCanonical.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 #ifndef G4StatMFMicroCanonical_h
0032 #define G4StatMFMicroCanonical_h 1
0033 
0034 #include <vector>
0035 
0036 #include "G4VStatMFEnsemble.hh"
0037 #include "G4StatMFMicroPartition.hh"
0038 #include "G4StatMFMicroManager.hh"
0039 #include "G4StatMFParameters.hh"
0040 #include "G4StatMFChannel.hh"
0041 
0042 #include "G4Fragment.hh"
0043 #include "Randomize.hh"
0044 
0045 
0046 class G4StatMFMicroCanonical : public G4VStatMFEnsemble {
0047 
0048 public:
0049 
0050     // G4StatMFMicroCanonical class must be initialized with a G4Fragment.
0051     G4StatMFMicroCanonical(const G4Fragment & theFragment);
0052 
0053     // destructor
0054     ~G4StatMFMicroCanonical();
0055 
0056 private:
0057     // default constructor
0058     G4StatMFMicroCanonical() {};
0059 
0060 
0061     // copy constructor
0062     G4StatMFMicroCanonical(const G4StatMFMicroCanonical &right);
0063 
0064 
0065     // operators
0066     G4StatMFMicroCanonical & operator=(const G4StatMFMicroCanonical & right);
0067     G4bool operator==(const G4StatMFMicroCanonical & right) const;
0068     G4bool operator!=(const G4StatMFMicroCanonical & right) const;
0069 
0070 
0071 public:
0072 
0073     // Choice of fragment atomic numbers and charges.
0074     G4StatMFChannel * ChooseAandZ(const G4Fragment & theFragment);
0075     
0076     enum {MaxAllowedMultiplicity = 4};
0077 
0078 private:
0079 
0080     // Initailization method
0081     void Initialize(const G4Fragment & theFragment);
0082 
0083     // Calculate Entropy of Compound Nucleus
0084     G4double CalcEntropyOfCompoundNucleus(const G4Fragment & theFragment, G4double & TConf);
0085 
0086     G4double CalcFreeInternalEnergy(const G4Fragment & theFragment, G4double T);
0087 
0088     G4double CalcInvLevelDensity(G4int anA);
0089     
0090     
0091 // Data members
0092 private:
0093     
0094     // This is a vector of partitions managers for partitions of different 
0095     // multiplicities:
0096     
0097     std::vector<G4StatMFMicroManager*> _ThePartitionManagerVector;
0098     
0099     // Statistical weight of compound nucleus
0100     G4double _WCompoundNucleus;
0101 
0102 
0103   struct DeleteFragment 
0104   {
0105     template<typename T>
0106     void operator()(const T* ptr) const
0107     {
0108       delete ptr;
0109     }
0110   };
0111 
0112 };
0113 
0114 #endif