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

#include <G4QGSCProtonBuilder.hh>

+ Inheritance diagram for G4QGSCProtonBuilder:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4QGSCProtonBuilder()

G4QGSCProtonBuilder::G4QGSCProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 45 of file G4QGSCProtonBuilder.cc.

47{
48 theMin = 8*GeV;
49 theModel = new G4TheoFSGenerator("QGSC");
50
51 theStringModel = new G4QGSModel< G4QGSParticipants >;
52 theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
53 theStringModel->SetFragmentationModel(theStringDecay);
54
56
57 theModel->SetHighEnergyGenerator(theStringModel);
58 theModel->SetTransport(theCascade);
59 if (quasiElastic)
60 {
61 theQuasiElastic=new G4QuasiElasticChannel;
62 theModel->SetQuasiElasticChannel(theQuasiElastic);
63 } else
64 { theQuasiElastic=0;}
65}
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)

◆ ~G4QGSCProtonBuilder()

G4QGSCProtonBuilder::~G4QGSCProtonBuilder ( )
virtual

Definition at line 67 of file G4QGSCProtonBuilder.cc.

69{
70 delete theCascade;
71 delete theStringDecay;
72 delete theStringModel;
73 if ( theQuasiElastic ) delete theQuasiElastic;
74 delete theModel;
75}

Member Function Documentation

◆ Build() [1/2]

void G4QGSCProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 77 of file G4QGSCProtonBuilder.cc.

79{
80}

◆ Build() [2/2]

void G4QGSCProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 82 of file G4QGSCProtonBuilder.cc.

84{
85 theModel->SetMinEnergy(theMin);
86 theModel->SetMaxEnergy(100*TeV);
87 aP->RegisterMe(theModel);
89}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMinEnergy()

void G4QGSCProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 69 of file G4QGSCProtonBuilder.hh.

69{theMin = aM;}

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