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

#include <G4QGSCEflowProtonBuilder.hh>

+ Inheritance diagram for G4QGSCEflowProtonBuilder:

Public Member Functions

 G4QGSCEflowProtonBuilder (G4bool quasiElastic=false)
 
virtual ~G4QGSCEflowProtonBuilder ()
 
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 G4QGSCEflowProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSCEflowProtonBuilder()

G4QGSCEflowProtonBuilder::G4QGSCEflowProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 46 of file G4QGSCEflowProtonBuilder.cc.

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

◆ ~G4QGSCEflowProtonBuilder()

G4QGSCEflowProtonBuilder::~G4QGSCEflowProtonBuilder ( )
virtual

Definition at line 68 of file G4QGSCEflowProtonBuilder.cc.

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

Member Function Documentation

◆ Build() [1/2]

void G4QGSCEflowProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 78 of file G4QGSCEflowProtonBuilder.cc.

80{
81}

◆ Build() [2/2]

void G4QGSCEflowProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 83 of file G4QGSCEflowProtonBuilder.cc.

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

◆ SetMinEnergy()

void G4QGSCEflowProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 69 of file G4QGSCEflowProtonBuilder.hh.

69{theMin = aM;}

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