Import Geant4 3.2.0 source tree
This commit is contained in:
@@ -1,3 +1,25 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// neutron_hp -- source file
|
||||
// J.P. Wellisch, Nov-1996
|
||||
// A prototype of the low energy neutron transport model.
|
||||
@@ -42,8 +64,8 @@ void G4NeutronHPLabAngularEnergy::Init(G4std::ifstream & aDataFile)
|
||||
G4ReactionProduct * G4NeutronHPLabAngularEnergy::Sample(G4double anEnergy, G4double massCode, G4double mass)
|
||||
{
|
||||
G4ReactionProduct * result = new G4ReactionProduct;
|
||||
G4int Z = massCode/1000;
|
||||
G4int A = massCode-1000*Z;
|
||||
G4int Z = static_cast<G4int>(massCode/1000);
|
||||
G4int A = static_cast<G4int>(massCode-1000*Z);
|
||||
|
||||
if(massCode==0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user