Geant4 Cross Reference |
1 // 2 // ******************************************************************** 3 // * License and Disclaimer * 4 // * * 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. * 10 // * * 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitation of liability. * 17 // * * 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************************************** 25 // 26 // 27 // J. M. Quesada (August 2008). 28 // Based on previous work by V. Lara 29 // 30 // Modified: 31 // 03.09.2008 by J. M. Quesada for external choice of inverse 32 // cross section option (default OPTxs=2) 33 // 06.09.2008 by JMQ Also external choice has been added for 34 // superimposed Coulomb barrier (if useSICB=true, default false) 35 // 20.08.2010 V.Ivanchenko added int Z and A and cleanup; added 36 // G4ParticleDefinition to constructor 37 38 #ifndef G4PreCompoundFragment_h 39 #define G4PreCompoundFragment_h 1 40 41 #include "G4VPreCompoundFragment.hh" 42 43 class G4PreCompoundFragment : public G4VPreCompoundFragment 44 { 45 public: 46 47 G4PreCompoundFragment(const G4ParticleDefinition*, 48 G4VCoulombBarrier * aCoulombBarrier); 49 50 ~G4PreCompoundFragment() override = default; 51 52 // ================================================ 53 // Methods for calculating the emission probability 54 // ================================================ 55 56 // Calculates the total (integrated over kinetic energy) emission 57 // probability of a fragment 58 G4double CalcEmissionProbability(const G4Fragment& aFragment) override; 59 60 G4double SampleKineticEnergy(const G4Fragment& aFragment) override; 61 62 G4double CrossSection(G4double ekin); 63 64 G4double RecentXS() const { return recentXS; }; 65 66 G4PreCompoundFragment(const G4PreCompoundFragment &right) = delete; 67 const G4PreCompoundFragment& 68 operator= (const G4PreCompoundFragment &right) = delete; 69 G4bool operator==(const G4PreCompoundFragment &right) const = delete; 70 G4bool operator!=(const G4PreCompoundFragment &right) const = delete; 71 72 protected: 73 74 virtual G4double 75 ProbabilityDistributionFunction(G4double ekin, 76 const G4Fragment & aFragment) = 0; 77 78 private: 79 80 // This method performs integration for probability function over 81 // fragment kinetic energy 82 G4double IntegrateEmissionProbability(G4double low, G4double up, 83 const G4Fragment & aFragment); 84 85 G4double GetOpt0(G4double ekin) const; 86 87 G4int lastA{0}; 88 89 G4double muu{0.0}; 90 G4double probmax{0.0}; 91 G4double recentXS{0.0}; 92 }; 93 94 #endif 95