G4VStatMFMacroCluster.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 
00033 #ifndef G4VStatMFMacroCluster_h
00034 #define G4VStatMFMacroCluster_h 1
00035 
00036 #include "G4StatMFParameters.hh"
00037 #include "G4HadronicException.hh"
00038 
00039 class G4VStatMFMacroCluster {
00040 
00041 public:
00042     // Constructor
00043     G4VStatMFMacroCluster(const G4int Size) : 
00044         theA(Size),
00045         _InvLevelDensity(0.0),
00046         _Entropy(0.0),
00047         theZARatio(0.0),
00048         _MeanMultiplicity(0.0),
00049         _Energy(0.0)
00050         {
00051             if (theA <= 0) throw G4HadronicException(__FILE__, __LINE__, 
00052                 "G4VStatMFMacroCluster::Constructor: Cluster's size must be >= 1");
00053             _InvLevelDensity = CalcInvLevelDensity();
00054         }
00055 
00056 
00057     // Destructor
00058     virtual ~G4VStatMFMacroCluster() {};
00059 
00060 
00061 private:
00062 
00063     // Default constructor
00064     G4VStatMFMacroCluster() {};
00065 
00066     // Copy constructor
00067     G4VStatMFMacroCluster(const G4VStatMFMacroCluster & right);
00068 
00069     // operators
00070     G4VStatMFMacroCluster & operator=(const G4VStatMFMacroCluster & right);
00071 
00072 public:
00073     G4bool operator==(const G4VStatMFMacroCluster & right) const;
00074     G4bool operator!=(const G4VStatMFMacroCluster & right) const;
00075 
00076 private:
00077     G4double CalcInvLevelDensity(void);
00078         
00079 public:
00080 
00081     virtual G4double CalcMeanMultiplicity(const G4double FreeVol, const G4double mu, 
00082                                           const G4double nu, const G4double T) = 0;
00083                                                 
00084     virtual G4double CalcZARatio(const G4double nu) = 0;
00085         
00086     G4double GetMeanMultiplicity(void) const { return _MeanMultiplicity; }
00087 
00088     virtual G4double CalcEnergy(const G4double T) = 0;
00089 
00090     virtual G4double CalcEntropy(const G4double T, const G4double FreeVol) = 0;
00091 
00092 protected:
00093     // Number of nucleons in the cluster
00094     G4int theA;
00095         
00096     // Inverse level density
00097     G4double _InvLevelDensity;
00098         
00099     // Entropy
00100     G4double _Entropy;
00101         
00102     // Z/A ratio
00103     G4double theZARatio;
00104         
00105     // Mean Multiplicity
00106     G4double _MeanMultiplicity;
00107         
00108     // Energy
00109     G4double _Energy;
00110 
00111 // *************************************************************************
00112 public:
00113         
00114     G4double GetInvLevelDensity(void) const
00115         { return _InvLevelDensity; }
00116          
00117     void SetZARatio(const G4double value)
00118         { theZARatio = value; }
00119         
00120     G4double GetZARatio(void) const
00121         { return theZARatio; }
00122         
00123         
00124     void SetSize(const G4double value)
00125         { 
00126             if (value <= 0.0) throw G4HadronicException(__FILE__, __LINE__, "G4VStatMFMacroCluster::SetSize: Cluster's size must be >= 1");
00127             theA = G4int(value); 
00128             _InvLevelDensity = CalcInvLevelDensity();
00129         }
00130         
00131     G4double GetSize(void) const
00132         { return theA; }
00133 
00134 
00135 
00136 
00137 
00138 };
00139 
00140 #endif

Generated on Mon May 27 17:50:22 2013 for Geant4 by  doxygen 1.4.7