55 lines
2.3 KiB
C++
55 lines
2.3 KiB
C++
//
|
|
// ********************************************************************
|
|
// * 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.
|
|
//
|
|
#include "G4NeutronHPDAInelasticFS.hh"
|
|
#include "G4Nucleus.hh"
|
|
#include "G4Deuteron.hh"
|
|
#include "G4Alpha.hh"
|
|
|
|
G4ParticleChange * G4NeutronHPDAInelasticFS::ApplyYourself(const G4Track & theTrack)
|
|
{
|
|
// these are the particle types in the final state
|
|
|
|
G4ParticleDefinition * theDefs[2];
|
|
theDefs[0] = G4Deuteron::Deuteron();
|
|
theDefs[1] = G4Alpha::Alpha();
|
|
|
|
// fill the final state
|
|
G4NeutronHPInelasticBaseFS::BaseApply(theTrack, theDefs, 2);
|
|
|
|
// return the result
|
|
return &theResult;
|
|
}
|
|
|
|
void G4NeutronHPDAInelasticFS::
|
|
Init (G4double A, G4double Z, G4String & dirName, G4String & aFSType)
|
|
{
|
|
G4NeutronHPInelasticBaseFS::Init(A, Z, dirName, aFSType);
|
|
G4double ResidualA = A-5;
|
|
G4double ResidualZ = Z-3;
|
|
G4NeutronHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
|
|
}
|