Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QGSPNeutronBuilder Class Reference

#include <G4QGSPNeutronBuilder.hh>

+ Inheritance diagram for G4QGSPNeutronBuilder:

Public Member Functions

 G4QGSPNeutronBuilder (G4bool quasiElastic=false, G4bool projectileDiffraction=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 ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4HadronFissionProcess *aP)=0
 
virtual void Build (G4HadronCaptureProcess *aP)=0
 
virtual void Build (G4NeutronInelasticProcess *aP)=0
 

Detailed Description

Definition at line 61 of file G4QGSPNeutronBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSPNeutronBuilder()

G4QGSPNeutronBuilder::G4QGSPNeutronBuilder ( G4bool  quasiElastic = false,
G4bool  projectileDiffraction = false 
)

Definition at line 49 of file G4QGSPNeutronBuilder.cc.

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

◆ ~G4QGSPNeutronBuilder()

G4QGSPNeutronBuilder::~G4QGSPNeutronBuilder ( )
virtual

Definition at line 79 of file G4QGSPNeutronBuilder.cc.

80{
81 delete theStringDecay;
82 delete theStringModel;
83 delete thePreEquilib;
84 delete theCascade;
85 if ( theQuasiElastic ) delete theQuasiElastic;
86 if ( theProjectileDiffraction ) delete theProjectileDiffraction;
87 delete theModel;
88 delete theQGSM;
89 //delete theHandler;
90}

Member Function Documentation

◆ Build() [1/4]

void G4QGSPNeutronBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 102 of file G4QGSPNeutronBuilder.cc.

104{
105}

◆ Build() [2/4]

void G4QGSPNeutronBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 92 of file G4QGSPNeutronBuilder.cc.

94{
95}

◆ Build() [3/4]

void G4QGSPNeutronBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 97 of file G4QGSPNeutronBuilder.cc.

99{
100}

◆ Build() [4/4]

void G4QGSPNeutronBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 107 of file G4QGSPNeutronBuilder.cc.

109{
110 theModel->SetMinEnergy(theMin);
111 theModel->SetMaxEnergy(100*TeV);
112 aP->RegisterMe(theModel);
114}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104

◆ SetMinEnergy()

void G4QGSPNeutronBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 74 of file G4QGSPNeutronBuilder.hh.

74{theMin = aM;}

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