Files
geant4/source/processes/hadronic/models/neutron_hp/include/G4NeutronHPFissionBaseFS.hh
T
2016-06-08 16:57:27 +02:00

90 lines
3.2 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. *
// ********************************************************************
//
//
// $Id: G4NeutronHPFissionBaseFS.hh,v 1.7 2002/12/12 19:18:12 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4NeutronHPFissionBaseFS_h
#define G4NeutronHPFissionBaseFS_h 1
#include "globals.hh"
#include "G4ReactionProduct.hh"
#include "G4DynamicParticleVector.hh"
#include "G4NeutronHPFinalState.hh"
#include "G4NeutronHPNames.hh"
#include "G4NeutronHPVector.hh"
#include "G4NeutronHPEnergyDistribution.hh"
#include "G4NeutronHPAngular.hh"
class G4NeutronHPFissionBaseFS : public G4NeutronHPFinalState
{
public:
G4NeutronHPFissionBaseFS()
{
hasXsec = true;
theXsection = new G4NeutronHPVector;
}
virtual ~G4NeutronHPFissionBaseFS()
{
delete theXsection;
}
void Init (G4double A, G4double Z, G4String & dirName, G4String & bit);
G4DynamicParticleVector * ApplyYourself(G4int Prompt);
virtual G4double GetXsec(G4double anEnergy)
{
return G4std::max(0., theXsection->GetY(anEnergy));
}
virtual G4NeutronHPVector * GetXsec() { return theXsection; }
inline void SetNeutron(const G4ReactionProduct & aNeutron)
{
theNeutron = aNeutron;
theAngularDistribution.SetNeutron(aNeutron);
}
inline void SetTarget(const G4ReactionProduct & aTarget)
{
theTarget = aTarget;
theAngularDistribution.SetTarget(aTarget);
}
private:
G4ParticleChange * ApplyYourself(const G4Track & aTrack) {return NULL;}
G4NeutronHPVector * theXsection;
G4NeutronHPEnergyDistribution theEnergyDistribution;
G4NeutronHPAngular theAngularDistribution;
G4ReactionProduct theNeutron;
G4ReactionProduct theTarget;
private:
};
#endif