- 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/G4NeutronHPProduct.cc
r819 r962 27 27 // J.P. Wellisch, Nov-1996 28 28 // 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 // 29 38 #include "G4NeutronHPProduct.hh" 30 39 #include "G4Poisson.hh" … … 38 47 G4int multi; 39 48 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 } 41 62 theDist->SetTarget(theTarget); 42 63 theDist->SetNeutron(theNeutron); … … 46 67 theCurrentMultiplicity = static_cast<G4int>(mean); 47 68 G4ReactionProduct * tmp; 69 theDist->ClearHistories(); 48 70 for(i=0;i<multi;i++) 49 71 { … … 56 78 delete tmp; 57 79 } 80 /* 81 //080901 TK Comment out, too many secondaries are produced in deuteron reactions 58 82 if(theTarget->GetMass()<2*GeV) // @@@ take care of residuals in all cases 59 83 { … … 62 86 if(tmp != 0) { result->push_back(tmp); } 63 87 } 88 */ 64 89 return result; 65 90 }
Note: See TracChangeset
for help on using the changeset viewer.