Geant4  10.02
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"
45 #include "G4BinaryCascade.hh"
46 #include "G4PreCompoundModel.hh"
47 #include "G4ExcitationHandler.hh"
48 
50  : G4VHadronModelBuilder(aName),
51  fStringModel(0), fStringDecay(0),
52  fPreCompound(p),fPrecoInterface(0),fLund(0)
53 {}
54 
56 {
57  delete fStringDecay;
58  delete fStringModel;
59  delete fLund;
60 }
61 
63 {
64  G4TheoFSGenerator* theFTFModel = new G4TheoFSGenerator(GetName());
65  fStringModel = new G4FTFModel();
70 
71  if(!fPreCompound) {
73  }
74 
75  if(GetName() == "FTFB") {
77  theFTFModel->SetTransport(bic);
78 
79  } else {
81  theFTFModel->SetTransport(fPrecoInterface);
82  }
83 
84  return theFTFModel;
85 }
const G4String & GetName() const
G4FTFModel * fStringModel
Definition: G4FTFBuilder.hh:69
G4GeneratorPrecompoundInterface * fPrecoInterface
Definition: G4FTFBuilder.hh:73
void SetFragmentationModel(G4VStringFragmentation *aModel)
G4PreCompoundModel * fPreCompound
Definition: G4FTFBuilder.hh:71
virtual G4HadronicInteraction * BuildModel()
Definition: G4FTFBuilder.cc:62
virtual ~G4FTFBuilder()
Definition: G4FTFBuilder.cc:55
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
G4LundStringFragmentation * fLund
Definition: G4FTFBuilder.hh:74
G4FTFBuilder(const G4String &name="FTF", G4PreCompoundModel *p=0)
Definition: G4FTFBuilder.cc:49
void SetTransport(G4VIntraNuclearTransportModel *const value)
G4ExcitedStringDecay * fStringDecay
Definition: G4FTFBuilder.hh:70