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/G4NeutronHPProduct.cc

    r819 r962  
    2727// J.P. Wellisch, Nov-1996
    2828// A prototype of the low energy neutron transport model.
     29//
     30// 080718 As for secondary photons, if its mean value has a value of integer,
     31//        then a sampling of multiplicity that based on Poisson Distribution
     32//        is not carried out and the mean is used as a multiplicity.
     33//        modified by T. Koi.
     34// 080721 Using ClearHistories() methodl for limiting the sum of secondary energies
     35//        modified by T. Koi.
     36// 080901 bug fix of too many secnodaries production in nd reactinos by T. Koi
     37//
    2938#include "G4NeutronHPProduct.hh"
    3039#include "G4Poisson.hh"
     
    3847  G4int multi;
    3948  multi = G4int(mean+0.0001);
    40   if(theMassCode==0) multi = G4Poisson(mean); // @@@@gammas. please X-check this
     49  //if(theMassCode==0) multi = G4Poisson(mean); // @@@@gammas. please X-check this
     50  //080718
     51  if ( theMassCode == 0 )
     52  {
     53     if ( G4int ( mean ) == mean )
     54     {
     55        multi = (G4int) mean;
     56     }
     57     else
     58     {
     59        multi = G4Poisson ( mean );
     60     }
     61  }
    4162  theDist->SetTarget(theTarget);
    4263  theDist->SetNeutron(theNeutron);
     
    4667  theCurrentMultiplicity = static_cast<G4int>(mean);
    4768  G4ReactionProduct * tmp;
     69  theDist->ClearHistories();
    4870  for(i=0;i<multi;i++)
    4971  {
     
    5678    delete  tmp;
    5779  }
     80/*
     81//080901 TK Comment out, too many secondaries are produced in deuteron reactions
    5882  if(theTarget->GetMass()<2*GeV) // @@@ take care of residuals in all cases
    5983  {
     
    6286    if(tmp != 0) { result->push_back(tmp); }
    6387  }
     88*/
    6489  return result;
    6590}
Note: See TracChangeset for help on using the changeset viewer.