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

#include <G4FTFBuilder.hh>

+ Inheritance diagram for G4FTFBuilder:

Public Member Functions

 G4FTFBuilder (const G4String &name="FTF", G4PreCompoundModel *p=0)
 
virtual ~G4FTFBuilder ()
 
- Public Member Functions inherited from G4VHadronModelBuilder
 G4VHadronModelBuilder (const G4String &name="")
 
virtual ~G4VHadronModelBuilder ()
 
G4HadronicInteractionGetModel ()
 
const G4StringGetName () const
 

Protected Member Functions

virtual G4HadronicInteractionBuildModel ()
 
virtual G4HadronicInteractionBuildModel ()=0
 

Detailed Description

Definition at line 50 of file G4FTFBuilder.hh.

Constructor & Destructor Documentation

◆ G4FTFBuilder()

G4FTFBuilder::G4FTFBuilder ( const G4String name = "FTF",
G4PreCompoundModel p = 0 
)

Definition at line 50 of file G4FTFBuilder.cc.

51 : G4VHadronModelBuilder(aName),
52 fStringModel(0), fStringDecay(0),
53 fPreCompound(p),fPrecoInterface(0),fLund(0)
54{}

◆ ~G4FTFBuilder()

G4FTFBuilder::~G4FTFBuilder ( )
virtual

Definition at line 56 of file G4FTFBuilder.cc.

57{
58 delete fStringDecay;
59 //delete fPrecoInterface;
60 delete fLund;
61}

Member Function Documentation

◆ BuildModel()

G4HadronicInteraction * G4FTFBuilder::BuildModel ( )
protectedvirtual

Implements G4VHadronModelBuilder.

Definition at line 63 of file G4FTFBuilder.cc.

64{
65 G4TheoFSGenerator* theFTFModel = new G4TheoFSGenerator(GetName());
66 fStringModel = new G4FTFModel();
67 fLund = new G4LundStringFragmentation();
68 fStringDecay = new G4ExcitedStringDecay(fLund);
69 fStringModel->SetFragmentationModel(fStringDecay);
70 theFTFModel->SetHighEnergyGenerator(fStringModel);
71
72 if(!fPreCompound) {
73 //G4ExcitationHandler* handler = new G4ExcitationHandler();
74 fPreCompound = new G4PreCompoundModel();
75 }
76
77 if(GetName() == "FTFC") {
79
80 } else if(GetName() == "FTFB") {
81 G4BinaryCascade* bic = new G4BinaryCascade(fPreCompound);
82 theFTFModel->SetTransport(bic);
83
84 } else {
85 fPrecoInterface = new G4GeneratorPrecompoundInterface(fPreCompound);
86 theFTFModel->SetTransport(fPrecoInterface);
87 }
88
89 return theFTFModel;
90}
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
const G4String & GetName() const
void SetFragmentationModel(G4VStringFragmentation *aModel)

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