Changeset 962 for trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPContEnergyAngular.cc
- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPContEnergyAngular.cc
r819 r962 28 28 // A prototype of the low energy neutron transport model. 29 29 // 30 // 080721 To be "ClearHistories" effective, the selection scheme of angular distribution is modified by T. Koi 31 // 32 // 30 33 #include "G4NeutronHPContEnergyAngular.hh" 31 34 … … 55 58 // This is the cause of the He3 problem !!!!!!!! 56 59 // See to it, if you can improve this. 57 G4double random = G4UniformRand(); 58 G4double deltaE = theAngular[it].GetEnergy()-theAngular[it-1].GetEnergy(); 59 G4double offset = theAngular[it].GetEnergy()-anEnergy; 60 if(random<offset/deltaE) it--; 60 //080714 TK commnet Randomizing use angular distribution 61 //080714 TK Always use the upper side distribution. enabling ClearHistories method. 62 //G4double random = G4UniformRand(); 63 //G4double deltaE = theAngular[it].GetEnergy()-theAngular[it-1].GetEnergy(); 64 //G4double offset = theAngular[it].GetEnergy()-anEnergy; 65 //if(random<offset/deltaE) it--; 61 66 theAngular[it].SetTarget(GetTarget()); 62 67 theAngular[it].SetTargetCode(theTargetCode); … … 84 89 return result; 85 90 } 91 92 93 94 void G4NeutronHPContEnergyAngular::ClearHistories() 95 { 96 if ( theAngular!= NULL ) 97 { 98 for ( G4int i = 0 ; i< nEnergy ; i++ ) 99 theAngular[i].ClearHistories(); 100 } 101 }
Note: See TracChangeset
for help on using the changeset viewer.