Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-30 08:53:01

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 // by V. Lara
0027 //
0028 // Class Description
0029 // Model implementation for pre-equilibrium decay models in geant4. 
0030 // To be used in your physics list, in case you neeed this kind of physics.
0031 // Can be used as a stand-allone model, but also in conjunction with
0032 // an intra-nuclear transport, or any of the string-parton models.
0033 // Class Description - End
0034 //
0035 // Modified:
0036 // 03.09.2008 J.M.Quesada added external choice of inverse 
0037 //            cross section option.(default OPTxs=3)
0038 // 06.09.2008 J.M.Quesada external choices have been added for:
0039 //     - superimposed Coulomb barrier (if useSICB=true, default false) 
0040 //     - "never go back"  hipothesis (if useNGB=true, default false) 
0041 //     - soft cutoff from preeq. to equlibrium (if useSCO=true, default false)
0042 //                - CEM transition probabilities (if useCEMtr=true)
0043 // 30.10.2009 J.M.Quesada CEM transition probabilities are set as default
0044 // 20.08.2010 V.Ivanchenko Cleanup of the code 
0045 // 03.01.2012 V.Ivanchenko Added pointer to G4ExcitationHandler to the 
0046 //                         constructor
0047 
0048 #ifndef G4PreCompoundModel_h
0049 #define G4PreCompoundModel_h 1
0050 
0051 #include "G4VPreCompoundModel.hh"
0052 #include "G4Fragment.hh"
0053 #include "G4ReactionProductVector.hh"
0054 #include "G4ReactionProduct.hh"
0055 #include "G4ExcitationHandler.hh"
0056 
0057 class G4PreCompoundInterface;
0058 class G4PreCompoundEmission;
0059 class G4VPreCompoundTransitions;
0060 class G4NuclearLevelData;
0061 class G4ParticleDefinition;
0062 class G4VMultiFragmentation;
0063 
0064 class G4PreCompoundModel : public G4VPreCompoundModel
0065 { 
0066 public:
0067 
0068   explicit G4PreCompoundModel(G4ExcitationHandler* ptr = nullptr);
0069 
0070   ~G4PreCompoundModel() override;
0071 
0072   G4HadFinalState* ApplyYourself(const G4HadProjectile& thePrimary, 
0073                  G4Nucleus& theNucleus) override;
0074 
0075   G4ReactionProductVector* DeExcite(G4Fragment& aFragment) override;
0076 
0077   void BuildPhysicsTable(const G4ParticleDefinition&) override;
0078 
0079   void InitialiseModel() override;
0080   
0081   void ModelDescription(std::ostream& outFile) const override;
0082   void DeExciteModelDescription(std::ostream& outFile) const override;
0083 
0084   G4PreCompoundModel(const G4PreCompoundModel&) = delete;
0085   const G4PreCompoundModel& operator=(const G4PreCompoundModel &right) = delete;
0086   G4bool operator==(const G4PreCompoundModel &right) const = delete;
0087   G4bool operator!=(const G4PreCompoundModel &right) const = delete;
0088 
0089 private:  
0090 
0091   void DoIt(G4ReactionProductVector* result, G4Fragment&);
0092 
0093   inline 
0094   void PerformEquilibriumEmission(const G4Fragment& aFragment, 
0095                   G4ReactionProductVector* result) const;
0096 
0097   G4PreCompoundInterface* fInterface{nullptr};
0098   G4PreCompoundEmission* theEmission{nullptr};
0099   G4VPreCompoundTransitions* theTransition{nullptr};
0100   G4NuclearLevelData* fNuclData{nullptr};
0101   G4VMultiFragmentation* theMultiFrag{nullptr};
0102 
0103   const G4ParticleDefinition* proton;
0104   const G4ParticleDefinition* neutron;
0105 
0106   G4double fLowLimitExc{0.0};
0107   G4double fHighLimitExc{0.0};
0108   G4double fFermiBreakUpExc{DBL_MAX};
0109   G4double fMinEForMultiFrag{DBL_MAX};
0110 
0111   G4bool useSCO{false};
0112   G4bool isInitialised{false};
0113   G4bool isActive{true};
0114   G4bool usePrecoInterface{false};
0115 
0116   G4int minZ{3};
0117   G4int minA{5};
0118   G4int modelID{-1};
0119   G4int fVerbose{1};
0120 
0121   G4HadFinalState theResult;
0122 };
0123 
0124 inline void G4PreCompoundModel::PerformEquilibriumEmission(
0125             const G4Fragment& aFragment,
0126             G4ReactionProductVector* result) const 
0127 {
0128   auto deexResult = GetExcitationHandler()->BreakItUp(aFragment);
0129   for (auto & frag : *deexResult) { result->push_back(std::move(frag)); }
0130   delete deexResult;
0131 }
0132 
0133 #endif
0134