Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:59:16

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 //  J. M. Quesada (August 2008).  
0028 //  Based  on previous work by V. Lara
0029 //
0030 // Modified:
0031 // 03.09.2008 by J. M. Quesada for external choice of inverse 
0032 //                    cross section option (default OPTxs=2)
0033 // 06.09.2008 by JMQ Also external choice has been added for
0034 //     superimposed Coulomb barrier (if useSICB=true, default false) 
0035 // 20.08.2010 V.Ivanchenko added int Z and A and cleanup; added 
0036 //                        G4ParticleDefinition to constructor
0037 
0038 #ifndef G4PreCompoundFragment_h
0039 #define G4PreCompoundFragment_h 1
0040 
0041 #include "G4VPreCompoundFragment.hh"
0042 
0043 class G4PreCompoundFragment : public G4VPreCompoundFragment
0044 {
0045 public:  
0046 
0047   G4PreCompoundFragment(const G4ParticleDefinition*,
0048             G4VCoulombBarrier * aCoulombBarrier);
0049   
0050   ~G4PreCompoundFragment() override = default;
0051 
0052   // ================================================
0053   // Methods for calculating the emission probability
0054   // ================================================
0055   
0056   // Calculates the total (integrated over kinetic energy) emission
0057   // probability of a fragment
0058   G4double CalcEmissionProbability(const G4Fragment& aFragment) override;
0059   
0060   G4double SampleKineticEnergy(const G4Fragment& aFragment) override;
0061 
0062   G4double CrossSection(G4double ekin);
0063 
0064   G4double RecentXS() const { return recentXS; };
0065 
0066   G4PreCompoundFragment(const G4PreCompoundFragment &right) = delete;
0067   const G4PreCompoundFragment& 
0068   operator= (const G4PreCompoundFragment &right) = delete;
0069   G4bool operator==(const G4PreCompoundFragment &right) const = delete;
0070   G4bool operator!=(const G4PreCompoundFragment &right) const = delete;
0071 
0072 protected:
0073 
0074   virtual G4double 
0075   ProbabilityDistributionFunction(G4double ekin, 
0076                   const G4Fragment & aFragment) = 0; 
0077 
0078 private:    
0079 
0080   // This method performs integration for probability function over 
0081   // fragment kinetic energy
0082   G4double IntegrateEmissionProbability(G4double low, G4double up, 
0083                     const G4Fragment & aFragment);  
0084 
0085   G4double GetOpt0(G4double ekin) const;
0086   
0087   G4int lastA{0};
0088 
0089   G4double muu{0.0};
0090   G4double probmax{0.0};
0091   G4double recentXS{0.0};
0092 };
0093 
0094 #endif