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

#include <G4QGSBuilder.hh>

+ Inheritance diagram for G4QGSBuilder:

Public Member Functions

 G4QGSBuilder (const G4String &name="", G4PreCompoundModel *p=0, G4bool quasiElastic=true)
 
virtual ~G4QGSBuilder ()
 
- Public Member Functions inherited from G4VHadronModelBuilder
 G4VHadronModelBuilder (const G4String &name="")
 
virtual ~G4VHadronModelBuilder ()
 
G4HadronicInteractionGetModel ()
 
const G4StringGetName () const
 

Protected Member Functions

virtual G4HadronicInteractionBuildModel ()
 
virtual G4HadronicInteractionBuildModel ()=0
 

Detailed Description

Definition at line 45 of file G4QGSBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSBuilder()

G4QGSBuilder::G4QGSBuilder ( const G4String name = "",
G4PreCompoundModel p = 0,
G4bool  quasiElastic = true 
)

Definition at line 52 of file G4QGSBuilder.cc.

54 : G4VHadronModelBuilder(aName),
55 quasielFlag(quasiel)
56{}

◆ ~G4QGSBuilder()

G4QGSBuilder::~G4QGSBuilder ( )
virtual

Definition at line 58 of file G4QGSBuilder.cc.

59{}

Member Function Documentation

◆ BuildModel()

G4HadronicInteraction * G4QGSBuilder::BuildModel ( )
protectedvirtual

Implements G4VHadronModelBuilder.

Definition at line 61 of file G4QGSBuilder.cc.

62{
66 theModel->SetMinEnergy(theMin);
67 theModel->SetMaxEnergy(theMax);
68
69 G4QGSModel< G4QGSParticipants >* theStringModel =
71 G4ExcitedStringDecay* theStringDecay =
73 theStringModel->SetFragmentationModel(theStringDecay);
74
75 theModel->SetHighEnergyGenerator(theStringModel);
76 if (quasielFlag)
77 {
79 }
80
81 if(GetName() == "QGSB") {
82 theModel->SetTransport(new G4BinaryCascade());
83 } else {
85 }
86
87 return theModel;
88}
double G4double
Definition: G4Types.hh:83
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
G4double GetMinEnergyTransitionQGS_FTF() const
G4double GetMaxEnergy() const
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
const G4String & GetName() const
void SetFragmentationModel(G4VStringFragmentation *aModel)

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