- Timestamp:
- Dec 22, 2010, 3:52:27 PM (14 years ago)
- Location:
- trunk/source/processes/hadronic/models/de_excitation/fermi_breakup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/de_excitation/fermi_breakup/include/G4VFermiFragment.hh
r1340 r1347 25 25 // 26 26 // 27 // $Id: G4VFermiFragment.hh,v 1. 3 2006/06/29 20:12:37 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-ref-09$27 // $Id: G4VFermiFragment.hh,v 1.4 2010/10/29 17:35:03 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Hadronic Process: Nuclear De-excitations … … 35 35 36 36 #include "G4FragmentVector.hh" 37 #include "G4NucleiProperties.hh" 38 #include "G4ParticleTable.hh" 39 #include "G4IonTable.hh" 37 #include "globals.hh" 40 38 41 39 class G4VFermiFragment 42 40 { 43 41 public: 44 G4VFermiFragment(const G4int anA, const G4int aZ, const G4int Pol, const G4double ExE): 45 A(anA), 46 Z(aZ), 47 Polarization(Pol), 48 ExcitEnergy(ExE) 49 {} 42 G4VFermiFragment(G4int anA, G4int aZ, G4int Pol, G4double ExE); 50 43 51 virtual ~G4VFermiFragment() {};44 virtual ~G4VFermiFragment(); 52 45 53 46 protected: 54 G4VFermiFragment() {};47 G4VFermiFragment(); 55 48 56 49 private: … … 66 59 virtual G4FragmentVector * GetFragment(const G4LorentzVector & aMomentum) const = 0; 67 60 68 G4int GetA(void) const61 inline G4int GetA(void) const 69 62 { 70 63 return A; 71 64 } 72 65 73 G4int GetZ(void) const66 inline G4int GetZ(void) const 74 67 { 75 68 return Z; 76 69 } 77 70 78 G4int GetPolarization(void) const71 inline G4int GetPolarization(void) const 79 72 { 80 73 return Polarization; 81 74 } 82 75 83 G4double GetExcitationEnergy(void) const76 inline G4double GetExcitationEnergy(void) const 84 77 { 85 78 return ExcitEnergy; 86 79 } 87 80 88 G4double GetFragmentMass(void) const81 inline G4double GetFragmentMass(void) const 89 82 { 90 return G4ParticleTable::GetParticleTable()->GetIonTable()->GetIonMass(Z,A);83 return fragmentMass; 91 84 } 92 85 93 G4double GetTotalEnergy(void) const86 inline G4double GetTotalEnergy(void) const 94 87 { 95 return this->GetFragmentMass() + this->GetExcitationEnergy();88 return (GetFragmentMass() + GetExcitationEnergy()); 96 89 } 97 90 … … 106 99 G4double ExcitEnergy; 107 100 101 G4double fragmentMass; 108 102 109 103 }; -
trunk/source/processes/hadronic/models/de_excitation/fermi_breakup/src/G4VFermiFragment.cc
r1340 r1347 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4VFermiFragment.cc,v 1.5 2006/06/29 20:13:15 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 26 // $Id: G4VFermiFragment.cc,v 1.6 2010/10/29 17:35:03 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 28 // 30 29 // Hadronic Process: Nuclear De-excitations … … 32 31 33 32 #include "G4VFermiFragment.hh" 34 #include "G4 HadronicException.hh"33 #include "G4NucleiProperties.hh" 35 34 36 G4VFermiFragment::G4VFermiFragment(const G4VFermiFragment &) 35 G4VFermiFragment::G4VFermiFragment(G4int anA, G4int aZ, G4int Pol, G4double ExE): 36 A(anA), 37 Z(aZ), 38 Polarization(Pol), 39 ExcitEnergy(ExE) 37 40 { 38 throw G4HadronicException(__FILE__, __LINE__, "G4VFermiFragment::copy_constructor meant to not be accessable"); 41 fragmentMass = 0.0; 42 if(A > 0) { fragmentMass = G4NucleiProperties::GetNuclearMass(A, Z); } 39 43 } 40 44 41 42 const G4VFermiFragment & G4VFermiFragment::operator=(const G4VFermiFragment &) 45 G4VFermiFragment::G4VFermiFragment(): 46 A(0), 47 Z(0), 48 Polarization(0), 49 ExcitEnergy(0.0) 43 50 { 44 throw G4HadronicException(__FILE__, __LINE__, "G4VFermiFragment::operator= meant to not be accessable"); 45 return *this; 51 fragmentMass = 0.0; 46 52 } 47 53 48 49 G4bool G4VFermiFragment::operator==(const G4VFermiFragment &) const 50 { 51 return false; 52 } 53 54 G4bool G4VFermiFragment::operator!=(const G4VFermiFragment &) const 55 { 56 return true; 57 } 54 G4VFermiFragment::~G4VFermiFragment() 55 {} 58 56 59 57 60 58 59
Note: See TracChangeset
for help on using the changeset viewer.