Geant4  10.01.p03
G4HadronPhysicsQGS_BIC.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: G4HadronPhysicsQGS_BIC.cc 83699 2014-09-10 07:18:25Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsQGS_BIC
31 //
32 // Author: 2007 Gunter Folger
33 // created from G4HadronPhysicsQGSP_BIC by H.P.Wellisch
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 
55 #include "G4NeutronRadCapture.hh"
56 #include "G4NeutronInelasticXS.hh"
57 #include "G4NeutronCaptureXS.hh"
58 
59 #include "G4PhysListUtil.hh"
61 
62 // factory
64 //
66 
69 
71  : G4VPhysicsConstructor("hInelastic QGS_BIC")
72 /* , theNeutrons(0)
73  , theFTFBinaryNeutron(0)
74  , theQGSBinaryNeutron(0)
75  , theBinaryNeutron(0)
76  , thePion(0)
77  , theBinaryPion(0)
78  , theBertiniPion(0)
79  , theFTFBinaryPion(0)
80  , theQGSBinaryPion(0)
81  , theKaon(0)
82  , theBertiniKaon(0)
83  , theFTFBinaryKaon(0)
84  , theQGSBinaryKaon(0)
85  , thePro(0)
86  , theFTFBinaryPro(0)
87  , theQGSBinaryPro(0)
88  , theBinaryPro(0)
89  , theHyperon(0)
90  , theAntiBaryon(0)
91  , theFTFPAntiBaryon(0)
92  , xsNeutronInelasticXS(0)
93  , xsNeutronCaptureXS(0)*/
94 // , QuasiElastic(true)
95 {}
96 
98  : G4VPhysicsConstructor(name)
99 /* , theNeutrons(0)
100  , theFTFBinaryNeutron(0)
101  , theQGSBinaryNeutron(0)
102  , theBinaryNeutron(0)
103  , thePion(0)
104  , theBinaryPion(0)
105  , theBertiniPion(0)
106  , theFTFBinaryPion(0)
107  , theQGSBinaryPion(0)
108  , theKaon(0)
109  , theBertiniKaon(0)
110  , theFTFBinaryKaon(0)
111  , theQGSBinaryKaon(0)
112  , thePro(0)
113  , theFTFBinaryPro(0)
114  , theQGSBinaryPro(0)
115  , theBinaryPro(0)
116  , theHyperon(0)
117  , theAntiBaryon(0)
118  , theFTFPAntiBaryon(0)
119  , xsNeutronInelasticXS(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 maxPionBIC = 1.3*GeV;
133  const G4double maxPionBERT = 5.0*GeV;
134  const G4double minPionBERT = 1.2*GeV;
135  const G4double maxKaonBERT = 5.0*GeV;
136 
142 
145 
151 
153  tpdata->theBinaryPro->SetMaxEnergy(maxBIC);
154 
160  tpdata->theBertiniPion->SetMinEnergy(minPionBERT);
161  tpdata->theBertiniPion->SetMaxEnergy(maxPionBERT);
163  tpdata->theBinaryPion->SetMaxEnergy(maxPionBIC);
164 
170  tpdata->theBertiniKaon->SetMaxEnergy(maxKaonBERT);
171 
173 
176 }
177 
179 {
180  if (!tpdata) return;
181 
182  delete tpdata->theBinaryNeutron;
183  delete tpdata->theQGSBinaryNeutron;
184  delete tpdata->theFTFBinaryNeutron;
185  delete tpdata->theNeutrons;
186  delete tpdata->theQGSBinaryPion;
187  delete tpdata->theFTFBinaryPion;
188  delete tpdata->theBertiniPion;
189  delete tpdata->theBinaryPion;
190  delete tpdata->thePion;
191  delete tpdata->theQGSBinaryKaon;
192  delete tpdata->theFTFBinaryKaon;
193  delete tpdata->theBertiniKaon;
194  delete tpdata->theKaon;
195  delete tpdata->theBinaryPro;
196  delete tpdata->theQGSBinaryPro;
197  delete tpdata->theFTFBinaryPro;
198  delete tpdata->thePro;
199  delete tpdata->theFTFPAntiBaryon;
200  delete tpdata->theAntiBaryon;
201  delete tpdata->theHyperon;
202 
203  delete tpdata; tpdata = 0;
204 }
205 
207 {
208  G4MesonConstructor pMesonConstructor;
209  pMesonConstructor.ConstructParticle();
210 
211  G4BaryonConstructor pBaryonConstructor;
212  pBaryonConstructor.ConstructParticle();
213 
214  G4ShortLivedConstructor pShortLivedConstructor;
215  pShortLivedConstructor.ConstructParticle();
216 
217  G4IonConstructor pIonConstructor;
218  pIonConstructor.ConstructParticle();
219 }
220 
221 #include "G4ProcessManager.hh"
223 {
224  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
225  CreateModels();
227  tpdata->thePro->Build();
228  tpdata->thePion->Build();
229  tpdata->theKaon->Build();
230  tpdata->theHyperon->Build();
232 
233  // --- Neutrons ---
236 
237  G4HadronicProcess* capture = 0;
239  G4ProcessVector* pv = pmanager->GetProcessList();
240  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
241  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
242  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
243  }
244  }
245  if ( ! capture ) {
246  capture = new G4HadronCaptureProcess("nCapture");
247  pmanager->AddDiscreteProcess(capture);
248  }
251  capture->RegisterMe(new G4NeutronRadCapture());
252 }
253 
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static G4ThreadLocal ThreadPrivate * tpdata
G4QGSBinaryNeutronBuilder * theQGSBinaryNeutron
void RegisterMe(G4VPionBuilder *aB)
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static const char * Default_Name()
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:89
static void ConstructParticle()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
static void ConstructParticle()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double aM)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGS_BIC)
void SetMaxEnergy(G4double aM)
bool G4bool
Definition: G4Types.hh:79
void SetMaxEnergy(G4double aM)
static G4CrossSectionDataSetRegistry * Instance()
static const double GeV
Definition: G4SIunits.hh:196
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4HadronPhysicsQGS_BIC(G4int verbose=1)
G4int size() const
void SetMaxEnergy(G4double aM)
static const char * Default_Name()
void RegisterMe(G4VAntiBarionBuilder *aB)
void RegisterMe(G4VProtonBuilder *aB)
void SetMaxEnergy(G4double aM)
void RegisterMe(G4VNeutronBuilder *aB)
void RegisterMe(G4VKaonBuilder *aB)
double G4double
Definition: G4Types.hh:76
G4FTFBinaryNeutronBuilder * theFTFBinaryNeutron
G4ProcessVector * GetProcessList() const