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

#include <G4FTFCProtonBuilder.hh>

+ Inheritance diagram for G4FTFCProtonBuilder:

Public Member Functions

 G4FTFCProtonBuilder (G4bool quasiElastic=false)
 
virtual ~G4FTFCProtonBuilder ()
 
virtual void Build (G4HadronElasticProcess *)
 
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 57 of file G4FTFCProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4FTFCProtonBuilder()

G4FTFCProtonBuilder::G4FTFCProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 46 of file G4FTFCProtonBuilder.cc.

48{
49 theMin = 4*GeV;
50 theModel = new G4TheoFSGenerator;
51
52 theStringModel = new G4FTFModel;
53 theStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation);
54 theStringModel->SetFragmentationModel(theStringDecay);
55
57
58 theModel->SetHighEnergyGenerator(theStringModel);
59
60 if (quasiElastic)
61 {
62 theQuasiElastic=new G4QuasiElasticChannel;
63 theModel->SetQuasiElasticChannel(theQuasiElastic);
64 } else
65 { theQuasiElastic=0;}
66
67 theModel->SetTransport(theCascade);
68 theModel->SetMinEnergy(theMin);
69 theModel->SetMaxEnergy(100*TeV);
70}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)

◆ ~G4FTFCProtonBuilder()

G4FTFCProtonBuilder::~G4FTFCProtonBuilder ( )
virtual

Definition at line 72 of file G4FTFCProtonBuilder.cc.

73{
74 delete theCascade;
75 delete theStringDecay;
76 if ( theQuasiElastic ) delete theQuasiElastic;
77 delete theStringModel;
78 delete theModel;
79}

Member Function Documentation

◆ Build() [1/2]

void G4FTFCProtonBuilder::Build ( G4HadronElasticProcess )
virtual

Implements G4VProtonBuilder.

Definition at line 89 of file G4FTFCProtonBuilder.cc.

91{
92}

◆ Build() [2/2]

void G4FTFCProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 81 of file G4FTFCProtonBuilder.cc.

83{
84 theModel->SetMinEnergy(theMin);
85 aP->RegisterMe(theModel);
87}
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMinEnergy()

void G4FTFCProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 67 of file G4FTFCProtonBuilder.hh.

67{theMin = aM;}

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