Geant4_10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
source
source
physics_lists
builders
src
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 66892 2013-01-17 10:57:59Z gunter $
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 fPrecoInterface;
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
//G4ExcitationHandler* handler = new G4ExcitationHandler();
73
fPreCompound =
new
G4PreCompoundModel
();
74
}
75
76
if
(
GetName
() ==
"FTFB"
) {
77
G4BinaryCascade
* bic =
new
G4BinaryCascade
(fPreCompound);
78
theFTFModel->
SetTransport
(bic);
79
80
}
else
{
81
fPrecoInterface =
new
G4GeneratorPrecompoundInterface
(fPreCompound);
82
theFTFModel->
SetTransport
(fPrecoInterface);
83
}
84
85
return
theFTFModel;
86
}
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:86
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:63
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:64
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
Generated on Sat Dec 14 2013 14:34:25 for Geant4_10 by
1.8.5