Changeset 1340 for trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4GNASHTransitions.cc
- 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/src/G4GNASHTransitions.cc
r819 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4GNASHTransitions.cc,v 1.6 2010/08/20 07:42:19 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 28 // 29 // 20.08.2010 V.Ivanchenko move constructor and destructor to the source 30 26 31 #include "G4GNASHTransitions.hh" 27 32 #include "G4PreCompoundParameters.hh" 28 33 #include "G4HadronicException.hh" 29 34 30 const G4GNASHTransitions & G4GNASHTransitions:: 31 operator=(const G4GNASHTransitions & ) 32 { 33 throw G4HadronicException(__FILE__, __LINE__, "G4GNASHTransitions::operator= meant to not be accesable"); 34 return *this; 35 } 35 G4GNASHTransitions::G4GNASHTransitions() 36 {} 36 37 37 G4bool G4GNASHTransitions::operator==(const G4GNASHTransitions & ) const 38 { 39 return false; 40 } 41 42 G4bool G4GNASHTransitions::operator!=(const G4GNASHTransitions & ) const 43 { 44 return true; 45 } 46 38 G4GNASHTransitions::~G4GNASHTransitions() 39 {} 47 40 48 41 G4double G4GNASHTransitions:: … … 72 65 Probability *= theMatrixElement; 73 66 74 75 67 return Probability; 76 68 } 77 69 78 G4Fragment G4GNASHTransitions:: 79 PerformTransition(const G4Fragment & aFragment) 70 void G4GNASHTransitions::PerformTransition(G4Fragment & result) 80 71 { 81 G4Fragment result(aFragment);82 72 result.SetNumberOfParticles(result.GetNumberOfParticles()+1); 83 73 result.SetNumberOfHoles(result.GetNumberOfHoles()+1); … … 91 81 result.SetNumberOfCharged(result.GetNumberOfParticles()); 92 82 } 93 94 return result;95 83 }
Note: See TracChangeset
for help on using the changeset viewer.