- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4HadronNucleonXsc.cc
r1228 r1340 33 33 #include "G4IonTable.hh" 34 34 #include "G4ParticleDefinition.hh" 35 36 ////////////////////////////////////////////////////////////////////////////////////// 37 // 38 // 35 #include "G4HadTmpUtil.hh" 39 36 40 37 … … 80 77 81 78 G4HadronNucleonXsc::~G4HadronNucleonXsc() 82 { 83 } 79 {} 84 80 85 81 … … 91 87 G4bool 92 88 G4HadronNucleonXsc::IsApplicable(const G4DynamicParticle* aDP, 93 const G4Element*anElement)89 const G4Element* anElement) 94 90 { 95 return IsZAApplicable(aDP, anElement->GetZ(), anElement->GetN()); 91 G4int Z = G4lrint(anElement->GetZ()); 92 G4int A = G4lrint(anElement->GetN()); 93 return IsIsoApplicable(aDP, Z, A); 96 94 } 97 95 98 96 //////////////////////////////////////////////////////////////////////////////////////// 99 97 // 100 //101 98 102 99 G4bool 103 G4HadronNucleonXsc::Is ZAApplicable(const G4DynamicParticle* aDP,104 G4double Z, G4double)100 G4HadronNucleonXsc::IsIsoApplicable(const G4DynamicParticle* aDP, 101 G4int Z, G4int) 105 102 { 106 G4bool applicable 103 G4bool applicable = false; 107 104 // G4int baryonNumber = aDP->GetDefinition()->GetBaryonNumber(); 108 105 G4double kineticEnergy = aDP->GetKineticEnergy(); … … 111 108 112 109 if ( ( kineticEnergy >= fLowerLimit && 113 Z > 1 .5&& // >= He110 Z > 1 && // >= He 114 111 ( theParticle == theAProton || 115 112 theParticle == theGamma || … … 119 116 120 117 ( kineticEnergy >= 0.1*fLowerLimit && 121 Z > 1 .5&& // >= He118 Z > 1 && // >= He 122 119 ( theParticle == theProton || 123 120 theParticle == theNeutron || … … 127 124 return applicable; 128 125 } 129 130 131 126 132 127 … … 210 205 211 206 212 213 214 215 207 ///////////////////////////////////////////////////////////////////////////////////// 216 208 // … … 242 234 G4double B = 0.308; 243 235 244 245 236 const G4ParticleDefinition* theParticle = aParticle->GetDefinition(); 246 237 … … 249 240 G4bool neutron = (nucleon == theNeutron); 250 241 251 252 242 if(theParticle == theNeutron) // proton-neutron fit 253 243 { … … 358 348 return xsection; 359 349 } 360 361 350 362 351 … … 758 747 G4bool neutron = (nucleon == theNeutron); 759 748 760 761 762 749 763 750 if( absPDGcode > 1000 && pORn ) //------Projectile is baryon -
Note: See TracChangeset
for help on using the changeset viewer.