G4StatMFMicroPartition.hh

Go to the documentation of this file.
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 #ifndef G4StatMFMicroPartition_h
00033 #define G4StatMFMicroPartition_h 1
00034 
00035 #include  <vector>
00036 
00037 #include "globals.hh"
00038 #include "G4StatMFParameters.hh"
00039 #include "G4StatMFChannel.hh"
00040 
00041 class G4StatMFMicroPartition {
00042 
00043 public:
00044     // Constructor
00045     G4StatMFMicroPartition(const G4int A, const G4double Z) :
00046         theA(A), theZ(Z), _Probability(0.0), _Temperature(0.0), 
00047         _Entropy(0.0) {};
00048 
00049 
00050     // Destructor
00051     ~G4StatMFMicroPartition() {};
00052 
00053 
00054 private:
00055     // Default constructor
00056     G4StatMFMicroPartition() {};
00057         
00058     // Copy constructor
00059     G4StatMFMicroPartition(const G4StatMFMicroPartition & right);
00060 
00061     // operators
00062     G4StatMFMicroPartition & operator=(const G4StatMFMicroPartition & right);
00063 public:
00064     G4bool operator==(const G4StatMFMicroPartition & right) const;
00065     G4bool operator!=(const G4StatMFMicroPartition & right) const;
00066 
00067 public:
00068 
00069     // Gives fragments charges
00070     G4StatMFChannel * ChooseZ(const G4double A0, const G4double Z0, const G4double MeanT);      
00071 
00072     G4double GetProbability(void)
00073         { return _Probability; }
00074         
00075 
00076 
00077     void SetPartitionFragment(const G4int anA)
00078         { 
00079             _thePartition.push_back(anA);
00080             CoulombFreeEnergy(anA);
00081         }
00082         
00083     void Normalize(const G4double Normalization)
00084         { _Probability /= Normalization; }
00085 
00086 
00087     G4double CalcPartitionProbability(const G4double U,
00088                                       const G4double FreeInternalE0,
00089                                       const G4double SCompound);
00090                                                                 
00091     G4double GetTemperature(void)
00092         {
00093             return _Temperature;
00094         }
00095         
00096     G4double GetEntropy(void)
00097         {
00098             return _Entropy;
00099         }
00100 
00101 private:
00102     void CoulombFreeEnergy(const G4double anA);
00103 
00104     G4double CalcPartitionTemperature(const G4double U, 
00105                                       const G4double FreeInternalE0);
00106 
00107     G4double GetPartitionEnergy(const G4double T);
00108         
00109     G4double GetCoulombEnergy(void);
00110 
00111     G4double GetDegeneracyFactor(const G4int A);
00112         
00113     G4double InvLevelDensity(const G4double Af) 
00114         {
00115             // Calculate Inverse Density Level
00116             // Epsilon0*(1 + 3 /(Af - 1))
00117             if (Af < 1.5) return 0.0;
00118             else return G4StatMFParameters::GetEpsilon0()*(1.0+3.0/(Af - 1.0));
00119         }
00120 
00121 private:
00122 
00123     // A and Z of initial nucleus
00124     G4double theA;
00125     G4double theZ;
00126 
00127     // Partition probability
00128     G4double _Probability;
00129         
00130     // Partition temperature
00131     G4double _Temperature;
00132         
00133     // Partition entropy
00134     G4double _Entropy;
00135         
00136     // The partition itself
00137     std::vector<G4int> _thePartition;
00138         
00139         
00140     std::vector<G4double> _theCoulombFreeEnergy;
00141 
00142 };
00143 
00144 #endif

Generated on Mon May 27 17:49:54 2013 for Geant4 by  doxygen 1.4.7