Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4QGSPNeutronBuilder Class Reference

#include <G4QGSPNeutronBuilder.hh>

Inheritance diagram for G4QGSPNeutronBuilder:
G4VNeutronBuilder

Public Member Functions

 G4QGSPNeutronBuilder (G4bool quasiElastic=false)
 
virtual ~G4QGSPNeutronBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4HadronFissionProcess *aP)
 
virtual void Build (G4HadronCaptureProcess *aP)
 
virtual void Build (G4NeutronInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
- Public Member Functions inherited from G4VNeutronBuilder
 G4VNeutronBuilder ()
 
virtual ~G4VNeutronBuilder ()
 

Detailed Description

Definition at line 59 of file G4QGSPNeutronBuilder.hh.

Constructor & Destructor Documentation

G4QGSPNeutronBuilder::G4QGSPNeutronBuilder ( G4bool  quasiElastic = false)

Definition at line 52 of file G4QGSPNeutronBuilder.cc.

References python.hepunit::GeV, G4VIntraNuclearTransportModel::SetDeExcitation(), G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), G4TheoFSGenerator::SetQuasiElasticChannel(), and G4TheoFSGenerator::SetTransport().

53 {
54  theMin = 12*GeV;
55  theModel = new G4TheoFSGenerator("QGSP");
56 
57  theStringModel = new G4QGSModel< G4QGSParticipants >;
58  theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
59  theStringModel->SetFragmentationModel(theStringDecay);
60 
61  theCascade = new G4GeneratorPrecompoundInterface;
62  thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
63  theCascade->SetDeExcitation(thePreEquilib);
64 
65  theModel->SetTransport(theCascade);
66  theModel->SetHighEnergyGenerator(theStringModel);
67  if (quasiElastic)
68  {
69  theQuasiElastic=new G4QuasiElasticChannel;
70  theModel->SetQuasiElasticChannel(theQuasiElastic);
71  } else
72  { theQuasiElastic=0;}
73 }
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetDeExcitation(G4VPreCompoundModel *ptr)
void SetTransport(G4VIntraNuclearTransportModel *const value)
G4QGSPNeutronBuilder::~G4QGSPNeutronBuilder ( )
virtual

Definition at line 75 of file G4QGSPNeutronBuilder.cc.

76 {
77  delete theStringDecay;
78  delete theStringModel;
79  delete thePreEquilib;
80  delete theCascade;
81  if ( theQuasiElastic ) delete theQuasiElastic;
82  delete theModel;
83  delete theQGSM;
84 }

Member Function Documentation

void G4QGSPNeutronBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 87 of file G4QGSPNeutronBuilder.cc.

88 {
89 }
void G4QGSPNeutronBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 92 of file G4QGSPNeutronBuilder.cc.

93 {
94 }
void G4QGSPNeutronBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 97 of file G4QGSPNeutronBuilder.cc.

98 {
99 }
void G4QGSPNeutronBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 102 of file G4QGSPNeutronBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), G4HadronicInteraction::SetMinEnergy(), and python.hepunit::TeV.

103 {
104  theModel->SetMinEnergy(theMin);
105  theModel->SetMaxEnergy(100*TeV);
106  aP->RegisterMe(theModel);
108 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(const G4double anEnergy)
void G4QGSPNeutronBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 71 of file G4QGSPNeutronBuilder.hh.

71 {theMin = aM;}

The documentation for this class was generated from the following files: