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

#include <G4QGSC_QGSCProtonBuilder.hh>

+ Inheritance diagram for G4QGSC_QGSCProtonBuilder:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4QGSC_QGSCProtonBuilder()

G4QGSC_QGSCProtonBuilder::G4QGSC_QGSCProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 32 of file G4QGSC_QGSCProtonBuilder.cc.

34{
35 theMin = 0*GeV;
36 theModel = new G4TheoFSGenerator("QGSC");
37
38 theStringModel = new G4QGSModel< G4QGSParticipants >;
39 theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
40 theStringModel->SetFragmentationModel(theStringDecay);
41
43
44 theModel->SetHighEnergyGenerator(theStringModel);
45 theModel->SetTransport(theCascade);
46 if (quasiElastic)
47 {
48 theQuasiElastic=new G4QuasiElasticChannel;
49 theModel->SetQuasiElasticChannel(theQuasiElastic);
50 } else
51 { theQuasiElastic=0;}
52}
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)

◆ ~G4QGSC_QGSCProtonBuilder()

G4QGSC_QGSCProtonBuilder::~G4QGSC_QGSCProtonBuilder ( )
virtual

Definition at line 54 of file G4QGSC_QGSCProtonBuilder.cc.

56{
57 delete theCascade;
58 delete theStringDecay;
59 delete theStringModel;
60 if ( theQuasiElastic ) delete theQuasiElastic;
61 delete theModel;
62}

Member Function Documentation

◆ Build() [1/2]

void G4QGSC_QGSCProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 64 of file G4QGSC_QGSCProtonBuilder.cc.

66{
67}

◆ Build() [2/2]

void G4QGSC_QGSCProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 69 of file G4QGSC_QGSCProtonBuilder.cc.

71{
72 theModel->SetMinEnergy(theMin);
73 theModel->SetMaxEnergy(100*TeV);
74 aP->RegisterMe(theModel);
75 aP->AddDataSet(&theXSec);
76}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMinEnergy()

void G4QGSC_QGSCProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 58 of file G4QGSC_QGSCProtonBuilder.hh.

58{theMin = aM;}

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