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

#include <G4QGSPPiKBuilder.hh>

+ Inheritance diagram for G4QGSPPiKBuilder:

Public Member Functions

 G4QGSPPiKBuilder (G4bool quasiElastic=false, G4bool projectileDiffraction=false)
 
virtual ~G4QGSPPiKBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4PionPlusInelasticProcess *aP)
 
virtual void Build (G4PionMinusInelasticProcess *aP)
 
virtual void Build (G4KaonPlusInelasticProcess *aP)
 
virtual void Build (G4KaonMinusInelasticProcess *aP)
 
virtual void Build (G4KaonZeroLInelasticProcess *aP)
 
virtual void Build (G4KaonZeroSInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
- Public Member Functions inherited from G4VPiKBuilder
 G4VPiKBuilder ()
 
virtual ~G4VPiKBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4PionPlusInelasticProcess *aP)=0
 
virtual void Build (G4PionMinusInelasticProcess *aP)=0
 
virtual void Build (G4KaonPlusInelasticProcess *aP)=0
 
virtual void Build (G4KaonMinusInelasticProcess *aP)=0
 
virtual void Build (G4KaonZeroLInelasticProcess *aP)=0
 
virtual void Build (G4KaonZeroSInelasticProcess *aP)=0
 

Detailed Description

Definition at line 62 of file G4QGSPPiKBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSPPiKBuilder()

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

Definition at line 53 of file G4QGSPPiKBuilder.cc.

55{
56 thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV);
57
58 theMin = 12*GeV;
59 theModel = new G4TheoFSGenerator("QGSP");
60
61 theStringModel = new G4QGSModel< G4QGSParticipants >;
62 theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
63 theStringModel->SetFragmentationModel(theStringDecay);
64
65
66 theCascade = new G4GeneratorPrecompoundInterface;
67 thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
68 theCascade->SetDeExcitation(thePreEquilib);
69
70 theModel->SetHighEnergyGenerator(theStringModel);
71 if (quasiElastic)
72 {
73 theQuasiElastic=new G4QuasiElasticChannel;
74 theModel->SetQuasiElasticChannel(theQuasiElastic);
75 } else
76 { theQuasiElastic=0;}
77 if ( projectileDiffraction )
78 {
79 theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
80 theModel->SetProjectileDiffraction(theProjectileDiffraction);
81 } else
82 { theProjectileDiffraction=0;}
83
84 theModel->SetTransport(theCascade);
85}
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)

◆ ~G4QGSPPiKBuilder()

G4QGSPPiKBuilder::~G4QGSPPiKBuilder ( )
virtual

Definition at line 87 of file G4QGSPPiKBuilder.cc.

89{
90 delete theCascade;
91 delete thePreEquilib;
92 if ( theQuasiElastic ) delete theQuasiElastic;
93 if ( theProjectileDiffraction ) delete theProjectileDiffraction;
94 delete theStringDecay;
95 delete theStringModel;
96 delete theModel;
97 delete theQGSM;
98 //delete theHandler;
99}

Member Function Documentation

◆ Build() [1/7]

void G4QGSPPiKBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 101 of file G4QGSPPiKBuilder.cc.

102{}

◆ Build() [2/7]

void G4QGSPPiKBuilder::Build ( G4KaonMinusInelasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 131 of file G4QGSPPiKBuilder.cc.

133{
134 theModel->SetMinEnergy(theMin);
135 theModel->SetMaxEnergy(100*TeV);
136 aP->RegisterMe(theModel);
138}
static G4CrossSectionDataSetRegistry * Instance()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ Build() [3/7]

void G4QGSPPiKBuilder::Build ( G4KaonPlusInelasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 122 of file G4QGSPPiKBuilder.cc.

124{
125 theModel->SetMinEnergy(theMin);
126 theModel->SetMaxEnergy(100*TeV);
127 aP->RegisterMe(theModel);
129}

◆ Build() [4/7]

void G4QGSPPiKBuilder::Build ( G4KaonZeroLInelasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 140 of file G4QGSPPiKBuilder.cc.

142{
143 theModel->SetMinEnergy(theMin);
144 theModel->SetMaxEnergy(100*TeV);
145 aP->RegisterMe(theModel);
147}

◆ Build() [5/7]

void G4QGSPPiKBuilder::Build ( G4KaonZeroSInelasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 149 of file G4QGSPPiKBuilder.cc.

151{
152 theModel->SetMinEnergy(theMin);
153 theModel->SetMaxEnergy(100*TeV);
154 aP->RegisterMe(theModel);
155}

◆ Build() [6/7]

void G4QGSPPiKBuilder::Build ( G4PionMinusInelasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 113 of file G4QGSPPiKBuilder.cc.

115{
116 theModel->SetMinEnergy(theMin);
117 theModel->SetMaxEnergy(100*TeV);
118 aP->AddDataSet(thePiData);
119 aP->RegisterMe(theModel);
120}

◆ Build() [7/7]

void G4QGSPPiKBuilder::Build ( G4PionPlusInelasticProcess aP)
virtual

Implements G4VPiKBuilder.

Definition at line 104 of file G4QGSPPiKBuilder.cc.

106{
107 theModel->SetMinEnergy(theMin);
108 theModel->SetMaxEnergy(100*TeV);
109 aP->AddDataSet(thePiData);
110 aP->RegisterMe(theModel);
111}

◆ SetMinEnergy()

void G4QGSPPiKBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 78 of file G4QGSPPiKBuilder.hh.

78{theMin = aM;}

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