Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPContEnergyAngular.cc

    r819 r962  
    2828// A prototype of the low energy neutron transport model.
    2929//
     30// 080721 To be "ClearHistories" effective, the selection scheme of angular distribution is modified by T. Koi
     31//
     32//
    3033#include "G4NeutronHPContEnergyAngular.hh"
    3134
     
    5558     // This is the cause of the He3 problem !!!!!!!!
    5659     // 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--;
    6166     theAngular[it].SetTarget(GetTarget());
    6267     theAngular[it].SetTargetCode(theTargetCode);
     
    8489   return result;
    8590}
     91
     92
     93 
     94void 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.