Changeset 1340 for trunk/source/processes/hadronic/models/neutron_hp/src
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- Location:
- trunk/source/processes/hadronic/models/neutron_hp/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPFissionData.cc
r962 r1340 32 32 // 081024 G4NucleiPropertiesTable:: to G4NucleiProperties:: 33 33 // 081124 Protect invalid read which caused run time errors by T. Koi 34 // 100729 Add safty for 0 lenght cross sections by T. Koi 34 35 35 36 #include "G4NeutronHPFissionData.hh" … … 149 150 G4int index = anE->GetIndex(); 150 151 152 // 100729 TK add safety 153 if ( ( ( *theCrossSections )( index ) )->GetVectorLength() == 0 ) return result; 154 151 155 // prepare neutron 152 156 G4double eKinetic = aP->GetKineticEnergy(); -
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelastic.cc
r1337 r1340 34 34 // 35 35 // $Id: G4NeutronHPInelastic.cc,v 1.24 2008/12/03 22:28:48 tkoi Exp $ 36 // GEANT4 tag $Name: geant4-09-0 4-beta-01$36 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 37 37 // 38 38 // 070523 bug fix for G4FPE_DEBUG on by A. Howard (and T. Koi) -
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticCompFS.cc
r1337 r1340 40 40 // 100406 "nothingWasKnownOnHadron=1" then sample mu isotropic in CM 41 41 // add two_body_reaction 42 // 100909 add safty 42 43 // 43 44 #include "G4NeutronHPInelasticCompFS.hh" … … 276 277 (aHadron.GetMass()+residualMass*G4Neutron::Neutron()->GetPDGMass())); 277 278 278 aHadron.SetMomentum(theNeutron.GetMomentum()*(1./theNeutron.GetTotalMomentum())*279 std::sqrt(aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy()-280 aHadron.GetMass()*aHadron.GetMass()));281 282 /* 283 G4double p2 = ( aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy() -aHadron.GetMass()*aHadron.GetMass() );279 //aHadron.SetMomentum(theNeutron.GetMomentum()*(1./theNeutron.GetTotalMomentum())* 280 // std::sqrt(aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy()- 281 // aHadron.GetMass()*aHadron.GetMass())); 282 283 //TK add safty 100909 284 G4double p2 = ( aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy() - aHadron.GetMass()*aHadron.GetMass() ); 284 285 G4double p = 0.0; 285 if ( p2 > 0.0 ) 286 { 287 p = std::sqrt( p ); 288 } 286 if ( p2 > 0.0 ) p = std::sqrt( p ); 287 289 288 aHadron.SetMomentum(theNeutron.GetMomentum()*(1./theNeutron.GetTotalMomentum())*p ); 290 */291 289 292 290 } 293 291 else 294 292 { 295 while( iLevel!=-1 && theGammas.GetLevel(iLevel) ==0 ) { iLevel--; }293 while( iLevel!=-1 && theGammas.GetLevel(iLevel) == 0 ) { iLevel--; } 296 294 } 297 295 -
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPNBodyPhaseSpace.cc
r1337 r1340 26 26 // 27 27 // $Id: G4NeutronHPNBodyPhaseSpace.cc,v 1.13 2006/06/29 20:53:11 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #include "G4NeutronHPNBodyPhaseSpace.hh" -
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPThermalScattering.cc
r962 r1340 40 40 // 070625 Fix memory leaking at destructor by T. Koi 41 41 // 081201 Fix memory leaking at destructor by T. Koi 42 // 100729 Add model name in constructor Problem #1116 42 43 43 44 #include "G4NeutronHPThermalScattering.hh" … … 48 49 49 50 G4NeutronHPThermalScattering::G4NeutronHPThermalScattering() 51 :G4HadronicInteraction("NeutronHPThermalScattering") 50 52 { 51 53
Note: See TracChangeset
for help on using the changeset viewer.