Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4FTFBuilder.cc
이 파일의 문서화 페이지로 가기
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 }
G4LundStringFragmentation * fLund
Definition: G4FTFBuilder.hh:74
const char * p
Definition: xmltok.h:285
G4PreCompoundModel * fPreCompound
Definition: G4FTFBuilder.hh:71
const G4String & GetName() const
void SetTransport(G4VIntraNuclearTransportModel *const value)
virtual ~G4FTFBuilder()
Definition: G4FTFBuilder.cc:55
G4GeneratorPrecompoundInterface * fPrecoInterface
Definition: G4FTFBuilder.hh:73
virtual G4HadronicInteraction * BuildModel()
Definition: G4FTFBuilder.cc:62
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
G4FTFBuilder(const G4String &name="FTF", G4PreCompoundModel *p=0)
Definition: G4FTFBuilder.cc:49
void SetFragmentationModel(G4VStringFragmentation *aModel)
G4FTFModel * fStringModel
Definition: G4FTFBuilder.hh:69
G4ExcitedStringDecay * fStringDecay
Definition: G4FTFBuilder.hh:70