Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-24 09:10:22

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 #include "G4VSIntegration.hh"
0043 
0044 class G4NuclearLevelData;
0045 class G4Pow;
0046 
0047 class G4VEmissionProbability : G4VSIntegration
0048 {
0049 public:
0050 
0051   explicit G4VEmissionProbability(G4int Z, G4int A);
0052 
0053   ~G4VEmissionProbability() override = default;
0054 
0055   G4double ProbabilityDensityFunction(G4double energy) override;
0056 
0057   virtual void Initialise();
0058 
0059   virtual G4double EmissionProbability(const G4Fragment & fragment, 
0060                        G4double anEnergy);
0061 
0062   virtual G4double ComputeProbability(G4double anEnergy, G4double CB);
0063 
0064   G4int GetZ(void) const { return theZ; }
0065     
0066   G4int GetA(void) const { return theA; }
0067 
0068   // Z, A, rmass are residual parameters
0069   // fmass is SCM mass of decaying nucleus
0070   // exc is an excitation of emitted fragment
0071   void SetDecayKinematics(G4int rZ, G4int rA, G4double rmass, G4double fmass)
0072   {
0073     resZ = rZ;
0074     resA = rA;
0075     pMass = fmass;
0076     pResMass = rmass;
0077   }
0078 
0079   G4double GetRecoilExcitation() const { return fExcRes; };
0080 
0081   void SetEvapExcitation(G4double exc) { fExc = exc; };
0082 
0083   G4double GetProbability() const { return pProbability; };
0084 
0085   void ResetProbability() { pProbability = 0.0; };
0086 
0087   // this method may be called only if the probability is computed
0088   // for given initial fragment and decay channel
0089   G4double SampleEnergy();
0090 
0091   G4VEmissionProbability(const G4VEmissionProbability &right) = delete;
0092   const G4VEmissionProbability & operator=
0093   (const G4VEmissionProbability &right) = delete;
0094   G4bool operator==(const G4VEmissionProbability &right) const = delete;
0095   G4bool operator!=(const G4VEmissionProbability &right) const = delete;
0096 
0097 protected:
0098 
0099   void ResetIntegrator(G4double de, G4double eps);
0100 
0101   G4double IntegrateProbability(G4double elow, G4double ehigh, G4double CB);
0102 
0103   G4NuclearLevelData* pNuclearLevelData;
0104   G4Pow* pG4pow;
0105 
0106   G4int OPTxs;
0107   G4int pVerbose;
0108   G4int theZ;
0109   G4int theA;
0110   G4int resZ = 0;
0111   G4int resA = 0;
0112 
0113   G4double pMass = 0.0; // initial fragment
0114   G4double pEvapMass = 0.0;
0115   G4double pResMass = 0.0;
0116   G4double pProbability = 0.0;
0117   G4double pTolerance = 0.0;
0118   G4double pWidth = 0.0;
0119 
0120 private:
0121 
0122   G4double FindRecoilExcitation(const G4double e);
0123 
0124   G4double fExc = 0.0;
0125   G4double fExcRes = 0.0;
0126   G4double eCoulomb = 0.0;
0127   G4double fMaxLifeTime = 1.0; 
0128   G4bool fFD = false;
0129 };
0130 
0131 #endif