Geant4
10.03.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4FTFBuilder.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// $Id: G4FTFBuilder.cc 81935 2014-06-06 15:41:42Z gcosmo $
27
//
28
//---------------------------------------------------------------------------
29
//
30
// ClassName: G4FTFBuilder
31
//
32
// Author: 28 June 2009 V.Ivanchenko
33
//
34
// Modified:
35
//
36
//----------------------------------------------------------------------------
37
//
38
39
#include "
G4FTFBuilder.hh
"
40
#include "
G4FTFModel.hh
"
41
#include "
G4ExcitedStringDecay.hh
"
42
#include "
G4TheoFSGenerator.hh
"
43
#include "
G4GeneratorPrecompoundInterface.hh
"
44
#include "
G4LundStringFragmentation.hh
"
45
#include "
G4BinaryCascade.hh
"
46
#include "
G4PreCompoundModel.hh
"
47
#include "
G4ExcitationHandler.hh
"
48
49
G4FTFBuilder::G4FTFBuilder
(
const
G4String
& aName,
G4PreCompoundModel
*
p
)
50
:
G4VHadronModelBuilder
(aName),
51
fStringModel(0), fStringDecay(0),
52
fPreCompound(p),fPrecoInterface(0),fLund(0)
53
{}
54
55
G4FTFBuilder::~G4FTFBuilder
()
56
{
57
delete
fStringDecay;
58
delete
fStringModel;
59
delete
fLund;
60
}
61
62
G4HadronicInteraction
*
G4FTFBuilder::BuildModel
()
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
}
G4FTFModel
Definition:
G4FTFModel.hh:63
G4VHadronModelBuilder::GetName
const G4String & GetName() const
Definition:
G4VHadronModelBuilder.hh:70
G4ExcitedStringDecay
Definition:
G4ExcitedStringDecay.hh:38
G4VPartonStringModel::SetFragmentationModel
void SetFragmentationModel(G4VStringFragmentation *aModel)
Definition:
G4VPartonStringModel.hh:82
G4ExcitationHandler.hh
p
const char * p
Definition:
xmltok.h:285
G4FTFBuilder::BuildModel
virtual G4HadronicInteraction * BuildModel()
Definition:
G4FTFBuilder.cc:62
G4VHadronModelBuilder
Definition:
G4VHadronModelBuilder.hh:44
G4FTFBuilder::~G4FTFBuilder
virtual ~G4FTFBuilder()
Definition:
G4FTFBuilder.cc:55
G4HadronicInteraction
Definition:
G4HadronicInteraction.hh:64
G4FTFBuilder.hh
G4TheoFSGenerator::SetHighEnergyGenerator
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
Definition:
G4TheoFSGenerator.hh:103
G4TheoFSGenerator
Definition:
G4TheoFSGenerator.hh:53
G4PreCompoundModel.hh
G4TheoFSGenerator.hh
G4BinaryCascade
Definition:
G4BinaryCascade.hh:70
G4FTFModel.hh
G4PreCompoundModel
Definition:
G4PreCompoundModel.hh:63
G4LundStringFragmentation
Definition:
G4LundStringFragmentation.hh:42
G4ExcitedStringDecay.hh
G4LundStringFragmentation.hh
G4FTFBuilder::G4FTFBuilder
G4FTFBuilder(const G4String &name="FTF", G4PreCompoundModel *p=0)
Definition:
G4FTFBuilder.cc:49
G4GeneratorPrecompoundInterface.hh
G4TheoFSGenerator::SetTransport
void SetTransport(G4VIntraNuclearTransportModel *const value)
Definition:
G4TheoFSGenerator.hh:93
G4GeneratorPrecompoundInterface
Definition:
G4GeneratorPrecompoundInterface.hh:60
G4BinaryCascade.hh
G4String
Definition:
G4String.hh:45
source
geant4.10.03.p02
source
physics_lists
builders
src
G4FTFBuilder.cc
Generated on Tue Nov 28 2017 21:43:26 for Geant4 by
1.8.5