Geant4-11
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
G4FTFBuilder Class Reference

#include <G4FTFBuilder.hh>

Inheritance diagram for G4FTFBuilder:
G4VHadronModelBuilder

Public Member Functions

 G4FTFBuilder (const G4String &name="FTF", G4PreCompoundModel *p=0)
 
G4HadronicInteractionGetModel ()
 
const G4StringGetName () const
 
virtual ~G4FTFBuilder ()
 

Protected Member Functions

virtual G4HadronicInteractionBuildModel ()
 

Private Member Functions

 G4FTFBuilder (G4FTFBuilder &)
 
G4FTFBuilderoperator= (const G4FTFBuilder &right)
 

Private Attributes

G4PreCompoundModelfPreCompound
 
G4HadronicInteractionmodel
 
G4String name
 

Detailed Description

Definition at line 49 of file G4FTFBuilder.hh.

Constructor & Destructor Documentation

◆ G4FTFBuilder() [1/2]

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

Definition at line 48 of file G4FTFBuilder.cc.

50{}
G4PreCompoundModel * fPreCompound
Definition: G4FTFBuilder.hh:68
G4VHadronModelBuilder(const G4String &name="")

◆ ~G4FTFBuilder()

G4FTFBuilder::~G4FTFBuilder ( )
virtual

Definition at line 52 of file G4FTFBuilder.cc.

53{}

◆ G4FTFBuilder() [2/2]

G4FTFBuilder::G4FTFBuilder ( G4FTFBuilder )
private

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) {
64 }
65
66 if(GetName() == "FTFB") {
68 theFTFModel->SetTransport(bic);
69
70 } else {
71 G4GeneratorPrecompoundInterface* fPrecoInterface =
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)

References fPreCompound, G4VHadronModelBuilder::GetName(), G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), and G4TheoFSGenerator::SetTransport().

◆ GetModel()

G4HadronicInteraction * G4VHadronModelBuilder::GetModel ( )
inherited

◆ GetName()

const G4String & G4VHadronModelBuilder::GetName ( ) const
inlineinherited

Definition at line 69 of file G4VHadronModelBuilder.hh.

70{
71 return name;
72}

References G4VHadronModelBuilder::name.

Referenced by BuildModel(), and G4QGSBuilder::BuildModel().

◆ operator=()

G4FTFBuilder & G4FTFBuilder::operator= ( const G4FTFBuilder right)
private

Field Documentation

◆ fPreCompound

G4PreCompoundModel* G4FTFBuilder::fPreCompound
private

Definition at line 68 of file G4FTFBuilder.hh.

Referenced by BuildModel().

◆ model

G4HadronicInteraction* G4VHadronModelBuilder::model
privateinherited

Definition at line 65 of file G4VHadronModelBuilder.hh.

Referenced by G4VHadronModelBuilder::GetModel().

◆ name

G4String G4VHadronModelBuilder::name
privateinherited

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