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

#include <G4QGSC_QGSCNeutronBuilder.hh>

+ Inheritance diagram for G4QGSC_QGSCNeutronBuilder:

Public Member Functions

 G4QGSC_QGSCNeutronBuilder (G4bool quasiElastic=false)
 
virtual ~G4QGSC_QGSCNeutronBuilder ()
 
virtual void Build (G4HadronElasticProcess *)
 
virtual void Build (G4HadronFissionProcess *)
 
virtual void Build (G4HadronCaptureProcess *)
 
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 46 of file G4QGSC_QGSCNeutronBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSC_QGSCNeutronBuilder()

G4QGSC_QGSCNeutronBuilder::G4QGSC_QGSCNeutronBuilder ( G4bool  quasiElastic = false)

Definition at line 32 of file G4QGSC_QGSCNeutronBuilder.cc.

34 {
35 theMin = 0*GeV;
36 theModel = new G4TheoFSGenerator("QGSC");
37
38 theStringModel= new G4QGSModel< G4QGSParticipants >;
39 theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
40 theStringModel->SetFragmentationModel(theStringDecay);
41
43
44 theModel->SetTransport(theCascade);
45 theModel->SetHighEnergyGenerator(theStringModel);
46 if (quasiElastic)
47 {
48 theQuasiElastic=new G4QuasiElasticChannel;
49 theModel->SetQuasiElasticChannel(theQuasiElastic);
50 } else
51 { theQuasiElastic=0;}
52 }
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)

◆ ~G4QGSC_QGSCNeutronBuilder()

G4QGSC_QGSCNeutronBuilder::~G4QGSC_QGSCNeutronBuilder ( )
virtual

Definition at line 54 of file G4QGSC_QGSCNeutronBuilder.cc.

56 {
57 delete theStringDecay;
58 delete theStringModel;
59 delete theCascade;
60 if ( theQuasiElastic ) delete theQuasiElastic;
61 delete theModel;
62 }

Member Function Documentation

◆ Build() [1/4]

virtual void G4QGSC_QGSCNeutronBuilder::Build ( G4HadronCaptureProcess )
inlinevirtual

Implements G4VNeutronBuilder.

Definition at line 55 of file G4QGSC_QGSCNeutronBuilder.hh.

55{}

◆ Build() [2/4]

virtual void G4QGSC_QGSCNeutronBuilder::Build ( G4HadronElasticProcess )
inlinevirtual

Implements G4VNeutronBuilder.

Definition at line 53 of file G4QGSC_QGSCNeutronBuilder.hh.

53{}

◆ Build() [3/4]

virtual void G4QGSC_QGSCNeutronBuilder::Build ( G4HadronFissionProcess )
inlinevirtual

Implements G4VNeutronBuilder.

Definition at line 54 of file G4QGSC_QGSCNeutronBuilder.hh.

54{}

◆ Build() [4/4]

void G4QGSC_QGSCNeutronBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 64 of file G4QGSC_QGSCNeutronBuilder.cc.

66 {
67 theModel->SetMinEnergy(theMin);
68 theModel->SetMaxEnergy(100*TeV);
69 aP->RegisterMe(theModel);
70 aP->AddDataSet(&theXSec);
71 }
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMinEnergy()

void G4QGSC_QGSCNeutronBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 58 of file G4QGSC_QGSCNeutronBuilder.hh.

58{theMin = aM;}

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