Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4HadronPhysicsQGSP_BIC_HP.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: G4HadronPhysicsQGSP_BIC_HP.cc 93878 2015-11-03 08:18:00Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsQGSP_BIC_HP
31 //
32 // Author: 2006 G.Folger
33 //
34 // Based on G4HadronPhysicsQGSP_BIC
35 //
36 // Modified:
37 // 25.04.2007 G.Folger: Add code for quasielastic
38 // 31.10.2012 A.Ribon: Use G4MiscBuilder
39 // 19.03.2013 A.Ribon: Replace LEP with FTFP and BERT
40 //
41 //----------------------------------------------------------------------------
42 //
43 #include <iomanip>
44 
46 
47 #include "globals.hh"
48 #include "G4ios.hh"
49 #include "G4SystemOfUnits.hh"
50 #include "G4ParticleDefinition.hh"
51 #include "G4ParticleTable.hh"
52 
53 #include "G4MesonConstructor.hh"
54 #include "G4BaryonConstructor.hh"
56 #include "G4IonConstructor.hh"
57 
61 #include "G4NeutronRadCapture.hh"
62 #include "G4NeutronCaptureXS.hh"
64 #include "G4LFission.hh"
65 
67 
68 #include "G4PhysListUtil.hh"
69 
70 // factory
72 //
74 
77 
79  : G4VPhysicsConstructor("hInelastic QGSP_BIC_HP")
80 /* , theNeutrons(0)
81  , theFTFPNeutron(0)
82  , theQGSPNeutron(0)
83  , theBinaryNeutron(0)
84  , theHPNeutron(0)
85  , thePiK(0)
86  , theFTFPPiK(0)
87  , theQGSPPiK(0)
88  , theBertiniPiK(0)
89  , thePro(0)
90  , theFTFPPro(0)
91  , theQGSPPro(0)
92  , theBinaryPro(0)
93  , theHyperon(0)
94  , theAntiBaryon(0)
95  , theFTFPAntiBaryon(0)
96  , xsKaon(0)
97  , xsNeutronCaptureXS(0)*/
98 // , QuasiElastic(true)
99 {}
100 
102  : G4VPhysicsConstructor(name)
103 /* , theNeutrons(0)
104  , theFTFPNeutron(0)
105  , theQGSPNeutron(0)
106  , theBinaryNeutron(0)
107  , theHPNeutron(0)
108  , thePiK(0)
109  , theFTFPPiK(0)
110  , theQGSPPiK(0)
111  , theBertiniPiK(0)
112  , thePro(0)
113  , theFTFPPro(0)
114  , theQGSPPro(0)
115  , theBinaryPro(0)
116  , theHyperon(0)
117  , theAntiBaryon(0)
118  , theFTFPAntiBaryon(0)
119  , xsKaon(0)
120  , xsNeutronCaptureXS(0)*/
121 // , QuasiElastic(quasiElastic)
122 {}
123 
125 {
126  G4bool quasiElasticFTF= false; // Use built-in quasi-elastic (not add-on)
127  G4bool quasiElasticQGS= true; // For QGS, it must use it.
128 
129  const G4double maxFTFP = 25.0*GeV;
130  const G4double minFTFP = 9.5*GeV;
131  const G4double maxBIC = 9.9*GeV;
132  const G4double maxBERT = 5.0*GeV;
133  const G4double maxHP = 19.9*MeV;
134 
135  tpdata->theNeutrons=new G4NeutronBuilder( true ); // Fission on
140 
144 
146 
148  tpdata->thePro->RegisterMe(tpdata->theQGSPPro=new G4QGSPProtonBuilder(quasiElasticQGS));
149  tpdata->thePro->RegisterMe(tpdata->theFTFPPro=new G4FTFPProtonBuilder(quasiElasticFTF));
150  tpdata->theFTFPPro->SetMinEnergy(minFTFP);
151  tpdata->theFTFPPro->SetMaxEnergy(maxFTFP);
153  tpdata->theBinaryPro->SetMaxEnergy(maxBIC);
154 
156  tpdata->thePiK->RegisterMe(tpdata->theQGSPPiK=new G4QGSPPiKBuilder(quasiElasticQGS));
157  tpdata->thePiK->RegisterMe(tpdata->theFTFPPiK=new G4FTFPPiKBuilder(quasiElasticFTF));
158  tpdata->theFTFPPiK->SetMaxEnergy(maxFTFP);
160  tpdata->theBertiniPiK->SetMaxEnergy(maxBERT);
161 
163 
166 }
167 
169 {
170  if (!tpdata) return;
171 
172  delete tpdata->theHPNeutron;
173  delete tpdata->theBinaryNeutron;
174  delete tpdata->theQGSPNeutron;
175  delete tpdata->theFTFPNeutron;
176  delete tpdata->theBertiniPiK;
177  delete tpdata->theQGSPPiK;
178  delete tpdata->theFTFPPiK;
179  delete tpdata->thePiK;
180  delete tpdata->theBinaryPro;
181  delete tpdata->theQGSPPro;
182  delete tpdata->theFTFPPro;
183  delete tpdata->thePro;
184  delete tpdata->theFTFPAntiBaryon;
185  delete tpdata->theAntiBaryon;
186  delete tpdata->theHyperon;
187 
188  delete tpdata; tpdata = 0;
189 }
190 
192 {
193  G4MesonConstructor pMesonConstructor;
194  pMesonConstructor.ConstructParticle();
195 
196  G4BaryonConstructor pBaryonConstructor;
197  pBaryonConstructor.ConstructParticle();
198 
199  G4ShortLivedConstructor pShortLivedConstructor;
200  pShortLivedConstructor.ConstructParticle();
201 
202  G4IonConstructor pIonConstructor;
203  pIonConstructor.ConstructParticle();
204 }
205 
206 #include "G4ProcessManager.hh"
208 {
209  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
210  CreateModels();
212  tpdata->thePro->Build();
213  tpdata->thePiK->Build();
214 
215  // --- Kaons ---
222 
223  tpdata->theHyperon->Build();
225 
226  // --- Neutrons ---
227  G4HadronicProcess* capture = 0;
228  G4HadronicProcess* fission = 0;
230  G4ProcessVector* pv = pmanager->GetProcessList();
231  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
232  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
233  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
234  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
235  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
236  }
237  }
238  if ( ! capture ) {
239  capture = new G4HadronCaptureProcess("nCapture");
240  pmanager->AddDiscreteProcess(capture);
241  }
244  capture->AddDataSet( new G4ParticleHPCaptureData );
245  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
246  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
247  capture->RegisterMe( theNeutronRadCapture );
248  if ( ! fission ) {
249  fission = new G4HadronFissionProcess("nFission");
250  pmanager->AddDiscreteProcess(fission);
251  }
252  G4LFission* theNeutronLEPFission = new G4LFission();
253  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
254  fission->RegisterMe( theNeutronLEPFission );
255 }
256 
virtual void SetMaxEnergy(G4double aM) finaloverride
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
const XML_Char * name
Definition: expat.h:151
virtual void SetMinEnergy(G4double aM) finaloverride
virtual void SetMaxEnergy(G4double aM) finaloverride
void SetMinEnergy(G4double anEnergy)
static constexpr double MeV
Definition: G4SIunits.hh:214
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
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
virtual void SetMaxEnergy(G4double aM) 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
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 SetMaxEnergy(G4double aM) finaloverride
static G4ThreadLocal ThreadPrivate * tpdata
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)
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
virtual void SetMaxEnergy(G4double aM) finaloverride
virtual void SetMaxEnergy(G4double aM) finaloverride
static constexpr double GeV
Definition: G4SIunits.hh:217
virtual void Build() finaloverride