Geant4 10.7.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 49 of file G4FTFBuilder.hh.

Constructor & Destructor Documentation

◆ G4FTFBuilder()

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

Definition at line 48 of file G4FTFBuilder.cc.

49 : G4VHadronModelBuilder(aName), fPreCompound(p)
50{}

◆ ~G4FTFBuilder()

G4FTFBuilder::~G4FTFBuilder ( )
virtual

Definition at line 52 of file G4FTFBuilder.cc.

53{}

Member Function Documentation

◆ BuildModel()

G4HadronicInteraction * G4FTFBuilder::BuildModel ( )
protectedvirtual

Implements G4VHadronModelBuilder.

Definition at line 55 of file G4FTFBuilder.cc.

56{
57 G4TheoFSGenerator* theFTFModel = new G4TheoFSGenerator(GetName());
58 G4FTFModel* fStringModel = new G4FTFModel();
60 theFTFModel->SetHighEnergyGenerator(fStringModel);
61
62 if(!fPreCompound) {
63 fPreCompound = new G4PreCompoundModel();
64 }
65
66 if(GetName() == "FTFB") {
67 G4BinaryCascade* bic = new G4BinaryCascade(fPreCompound);
68 theFTFModel->SetTransport(bic);
69
70 } else {
71 G4GeneratorPrecompoundInterface* fPrecoInterface =
72 new G4GeneratorPrecompoundInterface(fPreCompound);
73 theFTFModel->SetTransport(fPrecoInterface);
74 }
75
76 return theFTFModel;
77}
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: