Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4HadronPhysicsShieldingLEND.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: G4HadronPhysicsShieldingLEND.cc 107250 2017-11-07 01:37:11Z tkoi $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName:
31 //
32 // Author: 7 Nov 2017 Tatsumi Koi
33 // created from G4HadronPhysicsShielding
34 //
35 // Modified:
36 //
37 //----------------------------------------------------------------------------
38 //
39 #include <iomanip>
40 
42 
43 #include "globals.hh"
44 #include "G4ios.hh"
45 #include "G4SystemOfUnits.hh"
46 #include "G4ParticleDefinition.hh"
47 #include "G4ParticleTable.hh"
48 
49 #include "G4MesonConstructor.hh"
50 #include "G4BaryonConstructor.hh"
52 #include "G4IonConstructor.hh"
53 
57 
60 #include "G4PhysListUtil.hh"
61 
65 #include "G4NeutronRadCapture.hh"
66 #include "G4NeutronCaptureXS.hh"
68 #include "G4LFission.hh"
69 
71 
72 #include "G4PhysListUtil.hh"
73 
74 // factory
76 //
78 
81 
83  : G4VPhysicsConstructor("hInelastic Shielding")
84  , useLEND_(false)
85  , evaluation_()
86  , minFTFPEnergy_(9.5*GeV)
87  , maxBertiniEnergy_(9.9*GeV)
88  , minNonHPNeutronEnergy_(19.9*MeV)
89 {}
90 
92  : G4VPhysicsConstructor(name)
93  , useLEND_(false)
94  , evaluation_()
95  , minFTFPEnergy_(9.5*GeV)
96  , maxBertiniEnergy_(9.9*GeV)
97  , minNonHPNeutronEnergy_(19.9*MeV)
98 {}
99 
101  G4int /*verbose*/, G4double minFTFPEnergy, G4double maxBertiniEnergy)
102  : G4VPhysicsConstructor(name)
103  , useLEND_(false)
104  , evaluation_()
105  , minFTFPEnergy_(minFTFPEnergy)
106  , maxBertiniEnergy_(maxBertiniEnergy)
107  , minNonHPNeutronEnergy_(19.9*MeV)
108 {}
109 
110 #include "G4NeutronLENDBuilder.hh"
112 {
113  G4bool quasiElasticFTF= false; // Use built-in quasi-elastic (not add-on)
114 
115  tpdata->theNeutrons=new G4NeutronBuilder( true ); // Fission on
116  tpdata->theFTFPNeutron=new G4FTFPNeutronBuilder(quasiElasticFTF);
123 
125  tpdata->theFTFPPro=new G4FTFPProtonBuilder(quasiElasticFTF);
130 
132  tpdata->theFTFPPiK=new G4FTFPPiKBuilder(quasiElasticFTF);
137 
139 
142 }
143 
145 {
146  if (!tpdata) return;
147 
148  delete tpdata->theNeutrons;
149  delete tpdata->theBertiniNeutron;
150  delete tpdata->theFTFPNeutron;
151  //delete tpdata->theHPNeutron;
152  delete tpdata->theLENeutron;
153 
154  delete tpdata->thePiK;
155  delete tpdata->theBertiniPiK;
156  delete tpdata->theFTFPPiK;
157 
158  delete tpdata->thePro;
159  delete tpdata->theBertiniPro;
160  delete tpdata->theFTFPPro;
161 
162  delete tpdata->theHyperon;
163  delete tpdata->theAntiBaryon;
164  delete tpdata->theFTFPAntiBaryon;
165 
166  delete tpdata->theBGGxsNeutron;
168  delete tpdata->theBGGxsProton;
169 
170  delete tpdata; tpdata=0;
171 }
172 
174 {
175  G4MesonConstructor pMesonConstructor;
176  pMesonConstructor.ConstructParticle();
177 
178  G4BaryonConstructor pBaryonConstructor;
179  pBaryonConstructor.ConstructParticle();
180 
181  G4ShortLivedConstructor pShortLivedConstructor;
182  pShortLivedConstructor.ConstructParticle();
183 
184  G4IonConstructor pIonConstructor;
185  pIonConstructor.ConstructParticle();
186 }
187 
188 #include "G4ProcessManager.hh"
190 {
191  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
192  CreateModels();
193 
194  tpdata->thePro->Build();
196 
197  tpdata->theBGGxsNeutron = 0; //set explictly to zero or destructor may fail
199  //Register the G4ParticleHPJENDLHEInelasticData as the 2nd priority.
201 
203 
204  tpdata->thePiK->Build();
205 
206  // --- Kaons ---
213 
214  tpdata->theHyperon->Build();
216 
217  // --- Neutrons ---
218  G4HadronicProcess* capture = 0;
219  G4HadronicProcess* fission = 0;
221  G4ProcessVector* pv = pmanager->GetProcessList();
222  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
223  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
224  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
225  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
226  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
227  }
228  }
229  if ( ! capture ) {
230  capture = new G4HadronCaptureProcess("nCapture");
231  pmanager->AddDiscreteProcess(capture);
232  }
234  //Register the G4NeutronCaptureXS data as the 2nd priority.
236  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
237  theNeutronRadCapture->SetMinEnergy( minNonHPNeutronEnergy_ );
238  capture->RegisterMe( theNeutronRadCapture );
239  if ( ! fission ) {
240  fission = new G4HadronFissionProcess("nFission");
241  pmanager->AddDiscreteProcess(fission);
242  }
243  G4LFission* theNeutronLEPFission = new G4LFission();
244  theNeutronLEPFission->SetMinEnergy( minNonHPNeutronEnergy_ );
245  fission->RegisterMe( theNeutronLEPFission );
246 }
virtual void SetMaxEnergy(G4double aM) finaloverride
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
const XML_Char * name
Definition: expat.h:151
void SetMinEnergy(G4double anEnergy)
static constexpr double MeV
Definition: G4SIunits.hh:214
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
virtual void SetMaxEnergy(G4double aM) finaloverride
static G4ThreadLocal ThreadPrivate * tpdata
void RegisterMe(G4HadronicInteraction *a)
static void ConstructParticle()
static void ConstructParticle()
virtual void Build() finaloverride
Definition: G4PiKBuilder.cc:58
static G4CrossSectionDataSetRegistry * Instance()
virtual void Build() finaloverride
G4ProcessVector * GetProcessList() const
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
#define G4ThreadLocal
Definition: tls.hh:69
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
virtual void SetMinEnergy(G4double aM) finaloverride
virtual void SetMinEnergy(G4double aM) finaloverride
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static G4KaonZeroLong * KaonZeroLong()
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
virtual void Build() finaloverride
virtual void Build() finaloverride
virtual void SetMinEnergy(G4double aM) finaloverride
void AddDataSet(G4VCrossSectionDataSet *)
virtual void SetMinEnergy(G4double aM) finaloverride
static void ConstructParticle()
virtual void RegisterMe(G4PhysicsBuilderInterface *aB) finaloverride
static G4KaonZeroShort * KaonZeroShort()
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4CrossSectionDataStore * GetCrossSectionDataStore()
int G4int
Definition: G4Types.hh:78
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const
static const char * Default_Name()
G4int size() const
virtual void RegisterMe(G4PhysicsBuilderInterface *aB) finaloverride
virtual void RegisterMe(G4PhysicsBuilderInterface *aB) finaloverride
virtual void RegisterMe(G4PhysicsBuilderInterface *aB) finaloverride
Definition: G4PiKBuilder.cc:92
static constexpr double GeV
Definition: G4SIunits.hh:217
virtual void SetMaxEnergy(G4double aM) finaloverride
virtual void Build() finaloverride