Changeset 1340 for trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/include/G4VPreCompoundFragment.icc
- 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/G4VPreCompoundFragment.icc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VPreCompoundFragment.icc,v 1. 7 2008/09/22 10:18:36 ahowardExp $28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // $Id: G4VPreCompoundFragment.icc,v 1.8 2010/08/28 15:16:55 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 // by V. Lara … … 34 34 // JMQ (06 September 2008) Also external choice has been added for: 35 35 // - superimposed Coulomb barrier (if useSICB=true) 36 // 23.08.2010 V.Ivanchenko general cleanup, move constructor and destructor 37 // the source, make GetReactionProduct() and IsItPossible inlined 36 38 37 inline G4double G4VPreCompoundFragment::GetA() const 39 inline G4bool G4VPreCompoundFragment:: 40 IsItPossible(const G4Fragment & aFragment) const 41 { 42 G4int pplus = aFragment.GetNumberOfCharged(); 43 G4int pneut = aFragment.GetNumberOfParticles()-pplus; 44 return ((pneut >= theA - theZ) && (pplus >= theZ) 45 && (theMaximalKineticEnergy > 0)); 46 } 47 48 49 inline 50 G4ReactionProduct * G4VPreCompoundFragment::GetReactionProduct() const 51 { 52 G4ReactionProduct * theReactionProduct = 53 new G4ReactionProduct(const_cast<G4ParticleDefinition*>(particle)); 54 theReactionProduct->SetMomentum(GetMomentum().vect()); 55 theReactionProduct->SetTotalEnergy(GetMomentum().e()); 56 return theReactionProduct; 57 } 58 59 inline G4int G4VPreCompoundFragment::GetA() const 38 60 { 39 61 return theA; 40 62 } 41 63 42 inline G4 doubleG4VPreCompoundFragment::GetZ() const64 inline G4int G4VPreCompoundFragment::GetZ() const 43 65 { 44 66 return theZ; 45 67 } 46 68 47 inline G4 doubleG4VPreCompoundFragment::GetRestA() const69 inline G4int G4VPreCompoundFragment::GetRestA() const 48 70 { 49 71 return theRestNucleusA; 50 72 } 51 73 52 inline G4 doubleG4VPreCompoundFragment::GetRestZ() const74 inline G4int G4VPreCompoundFragment::GetRestZ() const 53 75 { 54 76 return theRestNucleusZ; 77 } 78 79 inline G4double G4VPreCompoundFragment::ResidualA13() const 80 { 81 return theRestNucleusA13; 55 82 } 56 83 … … 82 109 inline G4double G4VPreCompoundFragment::GetNuclearMass(void) const 83 110 { 84 return G4ParticleTable::GetParticleTable()-> 85 GetIonTable()->GetIonMass(static_cast<G4int>(theZ),static_cast<G4int>(theA)); 111 return theMass; 86 112 } 87 88 113 89 114 inline G4double G4VPreCompoundFragment::GetRestNuclearMass() const 90 115 { 91 return G4ParticleTable::GetParticleTable()->GetIonTable()-> 92 GetIonMass(static_cast<G4int>(theRestNucleusZ),static_cast<G4int>(theRestNucleusA)); 116 return theRestNucleusMass; 93 117 } 94 95 118 96 119 inline G4double G4VPreCompoundFragment::GetReducedMass() const 97 120 { 98 return GetRestNuclearMass()*GetNuclearMass()/ 99 (GetNuclearMass()+GetRestNuclearMass()); 121 return theReducedMass; 100 122 } 101 123 102 103 inline const G4LorentzVector G4VPreCompoundFragment:: 104 GetMomentum() const 124 inline 125 const G4LorentzVector& G4VPreCompoundFragment::GetMomentum() const 105 126 { 106 127 return theMomentum; 107 128 } 108 109 129 110 inline void G4VPreCompoundFragment::111 SetMomentum(const G4LorentzVector & value)130 inline 131 void G4VPreCompoundFragment::SetMomentum(const G4LorentzVector & value) 112 132 { 113 133 theMomentum = value; 114 }115 116 inline void G4VPreCompoundFragment::117 SetFragmentName(const G4String& aName)118 {119 theFragmentName = aName;120 134 } 121 135 … … 123 137 GetName() const 124 138 { 125 return theFragmentName; 126 } 127 128 inline void G4VPreCompoundFragment::ResetStage() 129 { 130 theStage = 1; 131 } 132 133 inline G4int G4VPreCompoundFragment::GetStage() const 134 { 135 return theStage; 136 } 137 138 inline void G4VPreCompoundFragment::IncrementStage() 139 { 140 theStage++; 139 return particle->GetParticleName(); 141 140 } 142 141 … … 145 144 { 146 145 OPTxs=opt; 147 return;148 146 } 149 147 … … 152 150 { 153 151 useSICB=use; 154 return;155 152 }
Note: See TracChangeset
for help on using the changeset viewer.