Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/include/G4HETCFragment.hh

    r819 r1340  
    2424// ********************************************************************
    2525//
     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//
    2629// 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
    2734
    2835#ifndef G4HETCFragment_h
     
    3037
    3138#include "G4VPreCompoundFragment.hh"
     39#include "Randomize.hh"
    3240
    3341class G4HETCFragment : public G4VPreCompoundFragment
    3442{
    35 protected:
    36   // default constructor
    37   G4HETCFragment() {};
    38    
    3943public: 
    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);
    4747 
    4848  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
    6152protected:
    6253
     
    6758  virtual G4double GetBeta() = 0;
    6859
    69 public:
    70    
     60  inline G4double BetaRand(const G4int N, const G4int L) const;
     61 
     62private:
    7163
    72   G4double CalcEmissionProbability(const G4Fragment & aFragment);
    73  
    74 private:       
    7564  // This method performs integration for probability function over
    7665  // fragment kinetic energy
     
    7867                                        const G4double & Up,
    7968                                        const G4Fragment & aFragment); 
    80    
    81   // ============================
    82   // Data members access methods
    83   // ============================
    84  
    8569
    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;
    8776
    88 protected:
    89  
    90   inline G4double BetaRand(const G4int N, const G4int L) const;
    91  
     77  G4double r2norm;
    9278};
    9379
    94 #include "G4HETCFragment.icc"
     80inline G4double G4HETCFragment::
     81BetaRand(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}
    9588
    9689#endif
Note: See TracChangeset for help on using the changeset viewer.