Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:20

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 (Oct 1998) 
0028 //
0029 // Modif (03 September 2008) by J. M. Quesada for external choice of inverse 
0030 // cross section option
0031 // JMQ (06 September 2008) Also external choices have been added for 
0032 // superimposed Coulomb barrier (if useSICB is set true, by default is false) 
0033 //
0034 // V.Ivanchenko general clean-up since 2010
0035 //
0036 
0037 #ifndef G4VEmissionProbability_h
0038 #define G4VEmissionProbability_h 1
0039 
0040 #include "globals.hh"
0041 #include "G4Fragment.hh"
0042 
0043 class G4NuclearLevelData;
0044 class G4Pow;
0045 
0046 class G4VEmissionProbability 
0047 {
0048 public:
0049 
0050   explicit G4VEmissionProbability(G4int Z, G4int A);
0051 
0052   virtual ~G4VEmissionProbability() = default;
0053 
0054   void Initialise();
0055 
0056   virtual G4double EmissionProbability(const G4Fragment & fragment, 
0057                        G4double anEnergy);
0058 
0059   virtual G4double ComputeProbability(G4double anEnergy, G4double CB);
0060 
0061   G4int GetZ(void) const { return theZ; }
0062     
0063   G4int GetA(void) const { return theA; }
0064 
0065   // Z, A, rmass are residual parameters
0066   // fmass is SCM mass of decaying nucleus
0067   // exc is an excitation of emitted fragment
0068   void SetDecayKinematics(G4int rZ, G4int rA, G4double rmass, G4double fmass)
0069   {
0070     resZ = rZ;
0071     resA = rA;
0072     pMass = fmass;
0073     pResMass = rmass;
0074   }
0075 
0076   G4double GetRecoilExcitation() const { return fExcRes; };
0077 
0078   void SetEvapExcitation(G4double exc) { fExc = exc; };
0079 
0080   G4double GetProbability() const { return pProbability; };
0081 
0082   void ResetProbability() { pProbability = 0.0; };
0083 
0084   // this method may be called only if the probability is computed
0085   // for given initial fragment and decay channel
0086   G4double SampleEnergy();
0087 
0088   G4VEmissionProbability(const G4VEmissionProbability &right) = delete;
0089   const G4VEmissionProbability & operator=
0090   (const G4VEmissionProbability &right) = delete;
0091   G4bool operator==(const G4VEmissionProbability &right) const = delete;
0092   G4bool operator!=(const G4VEmissionProbability &right) const = delete;
0093 
0094 protected:
0095 
0096   void ResetIntegrator(size_t nbin, G4double de, G4double eps);
0097 
0098   G4double IntegrateProbability(G4double elow, G4double ehigh, G4double CB);
0099 
0100   G4NuclearLevelData* pNuclearLevelData;
0101   G4Pow* pG4pow;
0102 
0103   G4int OPTxs;
0104   G4int pVerbose;
0105   G4int theZ;
0106   G4int theA;
0107   G4int resZ = 0;
0108   G4int resA = 0;
0109 
0110   G4double pMass = 0.0; // initial fragment
0111   G4double pEvapMass = 0.0;
0112   G4double pResMass = 0.0;
0113   G4double pProbability = 0.0;
0114   G4double pTolerance = 0.0;
0115 
0116 private:
0117 
0118   G4double FindRecoilExcitation(const G4double e);
0119 
0120   G4double fExc = 0.0;
0121   G4double fExcRes = 0.0;
0122 
0123   G4double fE1 = 0.0;
0124   G4double fE2 = 0.0; 
0125   G4double fP2 = 0.0; 
0126 
0127   G4double emin = 0.0;
0128   G4double emax = 0.0;
0129   G4double eCoulomb = 0.0;
0130   G4double accuracy = 0.005;
0131   G4double probmax = 0.0;
0132   G4double elimit;
0133 
0134   G4bool fFD = false;
0135 };
0136 
0137 #endif