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

#include <G4QGSPProtonBuilder.hh>

+ Inheritance diagram for G4QGSPProtonBuilder:

Public Member Functions

 G4QGSPProtonBuilder (G4bool quasiElastic=false, G4bool projectileDiffraction=false)
 
virtual ~G4QGSPProtonBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4ProtonInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
- Public Member Functions inherited from G4VProtonBuilder
 G4VProtonBuilder ()
 
virtual ~G4VProtonBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4ProtonInelasticProcess *aP)=0
 

Detailed Description

Definition at line 62 of file G4QGSPProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSPProtonBuilder()

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

Definition at line 49 of file G4QGSPProtonBuilder.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)

◆ ~G4QGSPProtonBuilder()

G4QGSPProtonBuilder::~G4QGSPProtonBuilder ( )
virtual

Definition at line 93 of file G4QGSPProtonBuilder.cc.

94 {
95 delete thePreEquilib;
96 delete theCascade;
97 if ( theQuasiElastic ) delete theQuasiElastic;
98 if ( theProjectileDiffraction ) delete theProjectileDiffraction;
99 delete theStringDecay;
100 delete theStringModel;
101 delete theModel;
102 delete theQGSM;
103 //delete theHandler;
104 }

Member Function Documentation

◆ Build() [1/2]

void G4QGSPProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 88 of file G4QGSPProtonBuilder.cc.

90 {
91 }

◆ Build() [2/2]

void G4QGSPProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 79 of file G4QGSPProtonBuilder.cc.

81 {
83 theModel->SetMinEnergy(theMin);
84 theModel->SetMaxEnergy(100*TeV);
85 aP->RegisterMe(theModel);
86 }
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4Proton * Proton()
Definition: G4Proton.cc:93

◆ SetMinEnergy()

void G4QGSPProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 73 of file G4QGSPProtonBuilder.hh.

73{theMin = aM;}

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