Changeset 1340 for trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/include/G4HETCFragment.hh
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/include/G4HETCFragment.hh
r819 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HETCFragment.hh,v 1.3 2010/08/28 15:16:55 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 28 // 26 29 // by V. Lara 30 // 31 // Modified: 32 // 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers 33 // use int Z and A and cleanup 27 34 28 35 #ifndef G4HETCFragment_h … … 30 37 31 38 #include "G4VPreCompoundFragment.hh" 39 #include "Randomize.hh" 32 40 33 41 class G4HETCFragment : public G4VPreCompoundFragment 34 42 { 35 protected:36 // default constructor37 G4HETCFragment() {};38 39 43 public: 40 // copy constructor 41 G4HETCFragment(const G4HETCFragment &right); 42 43 // constructor 44 G4HETCFragment(const G4double anA, const G4double aZ, 45 G4VCoulombBarrier * aCoulombBarrier, 46 const G4String & aName); 44 45 G4HETCFragment(const G4ParticleDefinition*, 46 G4VCoulombBarrier * aCoulombBarrier); 47 47 48 48 virtual ~G4HETCFragment(); 49 50 // ========== 51 // operators 52 // ========== 53 54 const G4HETCFragment& 55 operator= (const G4HETCFragment &right); 56 57 G4int operator==(const G4HETCFragment &right) const; 58 59 G4int operator!=(const G4HETCFragment &right) const; 60 49 50 G4double CalcEmissionProbability(const G4Fragment & aFragment); 51 61 52 protected: 62 53 … … 67 58 virtual G4double GetBeta() = 0; 68 59 69 public: 70 60 inline G4double BetaRand(const G4int N, const G4int L) const; 61 62 private: 71 63 72 G4double CalcEmissionProbability(const G4Fragment & aFragment);73 74 private:75 64 // This method performs integration for probability function over 76 65 // fragment kinetic energy … … 78 67 const G4double & Up, 79 68 const G4Fragment & aFragment); 80 81 // ============================82 // Data members access methods83 // ============================84 85 69 86 inline G4bool IsItPossible(const G4Fragment & aFragment) const; 70 G4HETCFragment(); 71 G4HETCFragment(const G4HETCFragment &right); 72 const G4HETCFragment& 73 operator= (const G4HETCFragment &right); 74 G4int operator==(const G4HETCFragment &right) const; 75 G4int operator!=(const G4HETCFragment &right) const; 87 76 88 protected: 89 90 inline G4double BetaRand(const G4int N, const G4int L) const; 91 77 G4double r2norm; 92 78 }; 93 79 94 #include "G4HETCFragment.icc" 80 inline G4double G4HETCFragment:: 81 BetaRand(const G4int N, const G4int L) const 82 { 83 G4double Y1 = CLHEP::RandGamma::shoot(N,1); 84 G4double Y2 = CLHEP::RandGamma::shoot(L,1); 85 86 return Y1/(Y1+Y2); 87 } 95 88 96 89 #endif
Note: See TracChangeset
for help on using the changeset viewer.