G4StatMFMacroChemicalPotential.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 G4StatMFMacroChemicalPotential_h
00033 #define G4StatMFMacroChemicalPotential_h 1
00034 
00035 #include <vector>
00036 
00037 #include "G4StatMFParameters.hh"
00038 #include "G4VStatMFMacroCluster.hh"
00039 #include "G4StatMFMacroMultiplicity.hh"
00040 #include "G4Solver.hh"
00041 
00042 
00043 
00044 class G4StatMFMacroChemicalPotential {
00045 
00046 public:
00047 
00048     G4StatMFMacroChemicalPotential(const G4double anA, const G4double aZ,
00049                                    const G4double kappa, 
00050                                    const G4double temp, 
00051                                    std::vector<G4VStatMFMacroCluster*> * ClusterVector) :
00052         theA(anA),
00053         theZ(aZ),
00054         _Kappa(kappa),
00055         _MeanMultiplicity(0.0),
00056         _MeanTemperature(temp),
00057         _ChemPotentialMu(0.0),
00058         _ChemPotentialNu(0.0),
00059         _theClusters(ClusterVector) 
00060         {};
00061         
00062     ~G4StatMFMacroChemicalPotential() {};
00063    
00064     G4double operator()(const G4double nu)
00065         { return (theZ - this->CalcMeanZ(nu))/theZ; }   
00066 
00067 private:
00068     // Default constructor
00069     G4StatMFMacroChemicalPotential() {};
00070 
00071     // copy constructor
00072     G4StatMFMacroChemicalPotential(const G4StatMFMacroChemicalPotential &) {};
00073 
00074 
00075     // operators
00076     G4StatMFMacroChemicalPotential & operator=(const G4StatMFMacroChemicalPotential & right);
00077     G4bool operator==(const G4StatMFMacroChemicalPotential & right) const;
00078     G4bool operator!=(const G4StatMFMacroChemicalPotential & right) const;
00079 
00080 public:
00081 
00082     G4double GetMeanMultiplicity(void) const {return _MeanMultiplicity;}
00083         
00084     G4double GetChemicalPotentialMu(void) const {return _ChemPotentialMu;}
00085 
00086     G4double GetChemicalPotentialNu(void) const {return _ChemPotentialNu;}
00087 
00088     G4double CalcChemicalPotentialNu(void);
00089 
00090 private:
00091         
00092     G4double CalcMeanZ(const G4double nu);
00093 
00094     void CalcChemicalPotentialMu(const G4double nu);
00095 
00096 private:
00097 
00098     G4double theA;
00099 
00100     G4double theZ;
00101 
00102     G4double _Kappa;
00103 
00104     G4double _MeanMultiplicity;
00105 
00106     G4double _MeanTemperature;
00107         
00108     G4double _ChemPotentialMu;
00109         
00110     G4double _ChemPotentialNu;
00111         
00112     std::vector<G4VStatMFMacroCluster*> * _theClusters; 
00113 
00114 
00115 };
00116 #endif

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