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

#include <G4FTFPProtonBuilder.hh>

+ Inheritance diagram for G4FTFPProtonBuilder:

Public Member Functions

 G4FTFPProtonBuilder (G4bool quasiElastic=false)
 
virtual ~G4FTFPProtonBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4ProtonInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
void SetMaxEnergy (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 G4FTFPProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4FTFPProtonBuilder()

G4FTFPProtonBuilder::G4FTFPProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 48 of file G4FTFPProtonBuilder.cc.

50{
51 theMin = 4*GeV;
52 theMax = 100.*TeV;
53 theModel = new G4TheoFSGenerator("FTFP");
54
55 theStringModel = new G4FTFModel;
56 theStringDecay = new G4ExcitedStringDecay(theLund = new G4LundStringFragmentation);
57 theStringModel->SetFragmentationModel(theStringDecay);
58
59 thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
60 theCascade = new G4GeneratorPrecompoundInterface(thePreEquilib);
61
62 theModel->SetHighEnergyGenerator(theStringModel);
63 if (quasiElastic)
64 {
65 theQuasiElastic=new G4QuasiElasticChannel;
66 theModel->SetQuasiElasticChannel(theQuasiElastic);
67 } else
68 { theQuasiElastic=0;}
69
70 theModel->SetTransport(theCascade);
71 theModel->SetMinEnergy(theMin);
72 theModel->SetMaxEnergy(100*TeV);
73}
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)

◆ ~G4FTFPProtonBuilder()

G4FTFPProtonBuilder::~G4FTFPProtonBuilder ( )
virtual

Definition at line 85 of file G4FTFPProtonBuilder.cc.

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

Member Function Documentation

◆ Build() [1/2]

void G4FTFPProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 97 of file G4FTFPProtonBuilder.cc.

99{
100}

◆ Build() [2/2]

void G4FTFPProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 75 of file G4FTFPProtonBuilder.cc.

77{
78 theModel->SetMinEnergy(theMin);
79 theModel->SetMaxEnergy(theMax);
80 aP->RegisterMe(theModel);
81
83}
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4Proton * Proton()
Definition: G4Proton.cc:93

◆ SetMaxEnergy()

void G4FTFPProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 70 of file G4FTFPProtonBuilder.hh.

70{theMax = aM;}

◆ SetMinEnergy()

void G4FTFPProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 69 of file G4FTFPProtonBuilder.hh.

69{theMin = aM;}

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