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

#include <G4QGSBinaryProtonBuilder.hh>

+ Inheritance diagram for G4QGSBinaryProtonBuilder:

Public Member Functions

 G4QGSBinaryProtonBuilder (G4bool quasiElastic=false)
 
virtual ~G4QGSBinaryProtonBuilder ()
 
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 60 of file G4QGSBinaryProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSBinaryProtonBuilder()

G4QGSBinaryProtonBuilder::G4QGSBinaryProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 48 of file G4QGSBinaryProtonBuilder.cc.

50 {
51 theMin = 12*GeV;
52 theModel = new G4TheoFSGenerator("QGSB");
53
54 theStringModel = new G4QGSModel< G4QGSParticipants >;
55 theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
56 theStringModel->SetFragmentationModel(theStringDecay);
57
58 theCascade = new G4BinaryCascade;
59 thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
60 theCascade->SetDeExcitation(thePreEquilib);
61
62 theModel->SetTransport(theCascade);
63 theModel->SetHighEnergyGenerator(theStringModel);
64 if (quasiElastic)
65 {
66 theQuasiElastic=new G4QuasiElasticChannel;
67 theModel->SetQuasiElasticChannel(theQuasiElastic);
68 } else
69 { theQuasiElastic=0;}
70 }
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetDeExcitation(G4VPreCompoundModel *ptr)
void SetFragmentationModel(G4VStringFragmentation *aModel)

◆ ~G4QGSBinaryProtonBuilder()

G4QGSBinaryProtonBuilder::~G4QGSBinaryProtonBuilder ( )
virtual

Definition at line 86 of file G4QGSBinaryProtonBuilder.cc.

87 {
88 delete thePreEquilib;
89 delete theCascade;
90 if ( theQuasiElastic ) delete theQuasiElastic;
91 delete theStringDecay;
92 delete theStringModel;
93 delete theModel;
94 }

Member Function Documentation

◆ Build() [1/2]

void G4QGSBinaryProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 81 of file G4QGSBinaryProtonBuilder.cc.

83 {
84 }

◆ Build() [2/2]

void G4QGSBinaryProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 72 of file G4QGSBinaryProtonBuilder.cc.

74 {
76 theModel->SetMinEnergy(theMin);
77 theModel->SetMaxEnergy(100*TeV);
78 aP->RegisterMe(theModel);
79 }
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 G4QGSBinaryProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 70 of file G4QGSBinaryProtonBuilder.hh.

70{theMin = aM;}

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