Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4FTFBuilder Class Reference

#include <G4FTFBuilder.hh>

Inheritance diagram for G4FTFBuilder:
Collaboration 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 ()
 

Detailed Description

Definition at line 50 of file G4FTFBuilder.hh.

Constructor & Destructor Documentation

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

Definition at line 49 of file G4FTFBuilder.cc.

50  : G4VHadronModelBuilder(aName),
51  fStringModel(0), fStringDecay(0),
52  fPreCompound(p),fPrecoInterface(0),fLund(0)
53 {}
G4VHadronModelBuilder(const G4String &name="")
G4FTFBuilder::~G4FTFBuilder ( )
virtual

Definition at line 55 of file G4FTFBuilder.cc.

56 {
57  delete fStringDecay;
58  delete fStringModel;
59  delete fLund;
60 }

Member Function Documentation

G4HadronicInteraction * G4FTFBuilder::BuildModel ( )
protectedvirtual

Implements G4VHadronModelBuilder.

Definition at line 62 of file G4FTFBuilder.cc.

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

Here is the call graph for this function:


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