Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:57

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 //
0027 // Hadronic Process: Nuclear Preequilibrium
0028 // by V. Lara 
0029 //
0030 // Modif (03 September 2008) by J. M. Quesada for external choice of inverse 
0031 // cross section option
0032 // JMQ (06 September 2008) Also external choice has been added for:
0033 //                      - superimposed Coulomb barrier (if useSICB=true) 
0034 // 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers
0035 //                         use int Z and A and cleanup; 
0036 //                         inline methods moved from icc file to hh
0037 
0038 #ifndef G4PreCompoundEmission_h
0039 #define G4PreCompoundEmission_h 1
0040 
0041 #include "G4VPreCompoundFragment.hh"
0042 #include "G4ReactionProduct.hh"
0043 #include "G4Fragment.hh"
0044 #include "G4PreCompoundFragmentVector.hh"
0045 
0046 class G4VPreCompoundEmissionFactory;
0047 class G4Pow;
0048 class G4NuclearLevelData;
0049 
0050 class G4PreCompoundEmission
0051 {
0052 public:
0053 
0054   G4PreCompoundEmission();
0055 
0056   ~G4PreCompoundEmission();
0057 
0058   void SetDefaultModel();
0059 
0060   void SetHETCModel();
0061 
0062   G4ReactionProduct* PerformEmission(G4Fragment& aFragment);
0063 
0064   inline G4double GetTotalProbability(const G4Fragment& aFragment);
0065 
0066   inline void SetOPTxs(G4int);
0067 
0068   inline void UseSICB(G4bool);
0069 
0070   G4PreCompoundEmission(const G4PreCompoundEmission &right) = delete;
0071   const G4PreCompoundEmission& operator=
0072   (const G4PreCompoundEmission &right) = delete;
0073   G4bool operator==(const G4PreCompoundEmission &right) const = delete;
0074   G4bool operator!=(const G4PreCompoundEmission &right) const = delete;
0075 
0076 private:
0077 
0078   void AngularDistribution(G4VPreCompoundFragment * theFragment,
0079                const G4Fragment& aFragment,
0080                G4double kineticEnergy);
0081         
0082   G4double rho(G4int p, G4int h, G4double gg, 
0083                G4double E, G4double Ef) const;
0084 
0085   G4Pow* g4calc;
0086   G4NuclearLevelData* fNuclData;
0087 
0088   G4double fFermiEnergy;
0089 
0090   // A vector with the allowed emission fragments 
0091   G4PreCompoundFragmentVector* theFragmentsVector;
0092   G4VPreCompoundEmissionFactory* theFragmentsFactory;
0093 
0094   // Momentum of emitted fragment
0095   G4ThreeVector theFinalMomentum;
0096   G4bool fUseAngularGenerator;
0097 
0098   G4int fModelID;
0099 };
0100 
0101 inline G4double 
0102 G4PreCompoundEmission::GetTotalProbability(const G4Fragment& aFragment) 
0103 {
0104   return theFragmentsVector->CalculateProbabilities(aFragment);
0105 }
0106 
0107 inline void G4PreCompoundEmission::SetOPTxs(G4int opt)
0108 {
0109   theFragmentsVector->SetOPTxs(opt);
0110 }
0111 
0112 inline void G4PreCompoundEmission::UseSICB(G4bool use)
0113 {
0114   theFragmentsVector->UseSICB(use);
0115 }
0116 
0117 #endif