Files
geant4/source/processes/hadronic/models/neutron_hp/include/G4NeutronHPFinalState.hh
T
2016-06-08 15:55:53 +02:00

75 lines
1.9 KiB
C++

// This code implementation is the intellectual property of
// neutron_hp -- header file
// J.P. Wellisch, Nov-1996
// A prototype of the low energy neutron transport model.
//
// 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.
//
// $Id: G4NeutronHPFinalState.hh,v 1.3 1999/07/02 09:59:00 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
#ifndef G4NeutronHPFinalState_h
#define G4NeutronHPFinalState_h
#include "G4Material.hh"
#include "G4FastVector.hh"
#include "G4ParticleChange.hh"
#include "G4NeutronHPNames.hh"
#include "G4NeutronHPVector.hh"
class G4NeutronHPFinalState
{
public:
G4NeutronHPFinalState()
{
hasFSData = true;
hasXsec = true;
hasAnyData = true;
theBaseZ = 0;
theBaseA = 0;
};
virtual ~G4NeutronHPFinalState(){};
virtual void Init (G4double A, G4double Z, G4String & dirName, G4String & aFSType) = 0;
virtual G4ParticleChange * ApplyYourself(const G4Track & theTrack)
{
G4Exception("G4ParticleChange * ApplyYourself(const G4Track & theTrack) needs implementation");
return NULL;
}
// of course this would better be Done templating G4NeutronHPChannel...,
// but due to peculiarities of the DEC compiler, this way it
// is easier to maintain.
virtual G4NeutronHPFinalState * New() = 0;
G4bool HasXsec() {return hasXsec;}
G4bool HasFSData() {return hasFSData;}
G4bool HasAnyData() {return hasAnyData;}
virtual G4double GetXsec(G4double anEnergy) { return 0; }
virtual G4NeutronHPVector * GetXsec() { return NULL; }
G4double GetZ() { return theBaseZ; }
G4double GetN() { return theBaseA; }
protected:
G4bool hasXsec;
G4bool hasFSData;
G4bool hasAnyData;
G4NeutronHPNames theNames;
G4ParticleChange theResult;
G4double theBaseA;
G4double theBaseZ;
private:
};
#endif