Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-24 09:10:49

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 // Hadronic Process: Nuclear De-excitations
0027 // by V. Lara
0028 //
0029 // Modification: 13.08.2025 V.Ivanchenko rewrite
0030 
0031 #ifndef G4StatMFMacroCanonical_h
0032 #define G4StatMFMacroCanonical_h 1
0033 
0034 #include "G4Fragment.hh"
0035 #include "G4StatMFFragment.hh"
0036 #include "G4VStatMFEnsemble.hh"
0037 #include "G4VStatMFMacroCluster.hh"
0038 #include "G4StatMFMacroNucleon.hh"
0039 #include "G4StatMFMacroBiNucleon.hh"
0040 #include "G4StatMFMacroTriNucleon.hh"
0041 #include "G4StatMFMacroTetraNucleon.hh"
0042 #include "G4StatMFMacroMultiNucleon.hh"
0043 #include "G4StatMFParameters.hh"
0044 #include "G4StatMFChannel.hh"
0045 #include "G4StatMFMacroTemperature.hh"
0046 #include "Randomize.hh"
0047 
0048 
0049 class G4StatMFMacroCanonical : public G4VStatMFEnsemble {
0050 
0051 public:
0052 
0053   G4StatMFMacroCanonical();
0054 
0055   ~G4StatMFMacroCanonical() override;
0056 
0057   // Initialise for a given G4Fragment
0058   void Initialise(const G4Fragment& theFragment) override;
0059 
0060   // Choice of the channel
0061   G4StatMFChannel* ChooseAandZ(const G4Fragment &theFragment) override;
0062 
0063   G4StatMFMacroCanonical(const G4StatMFMacroCanonical&) = delete;
0064   G4StatMFMacroCanonical& operator=(const G4StatMFMacroCanonical& right) = delete;
0065   G4bool operator==(const G4StatMFMacroCanonical& right) const = delete;
0066   G4bool operator!=(const G4StatMFMacroCanonical& right) const = delete;
0067 
0068 private:
0069 
0070   // Determines fragments multiplicities and compute total fragment multiplicity
0071   G4double ChooseA(G4int A, std::vector<G4int>& ANumbers);
0072     
0073   // Samples charges of fragments
0074   G4StatMFChannel* ChooseZ(G4int Z, std::vector<G4int>& FragmentsA);
0075 
0076   G4StatMFMacroTemperature* theTemp{nullptr};
0077   
0078   // Chemical Potential \mu
0079   G4double fChemPotentialMu{0.0};
0080 
0081   // Chemical Potential \nu
0082   G4double fChemPotentialNu{0.0};
0083 
0084   // Parameter Kappa
0085   G4double fKappa{0.0};
0086 
0087   // Clusters
0088   std::vector<G4VStatMFMacroCluster*> fClusters;
0089   std::vector<G4double> fAcumMultiplicity;
0090 };
0091 
0092 #endif