Geant4  10.02.p01
G4HadronPhysicsQGSP_BIC_AllHP.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: G4HadronPhysicsQGSP_BIC_AllHP.cc 73040 2013-08-15 09:36:57Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsQGSP_BIC_AllHP
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  , thePiKB(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  , thePiKB(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->theNeutronB=new G4NeutronBuilder( true ); // Fission on
140 
144 
145  //ParticleHP
147 
151  tpdata->theFTFPProton->SetMinEnergy(minFTFP);
152  tpdata->theFTFPProton->SetMaxEnergy(maxFTFP);
155 
156  //ParticleHP
162 
163  //ParticleHP
170 
171 
172  //ParticleHP
179 
180  //ParticleHP
186  tpdata->theBinaryHe3->SetMaxEnergy(maxBIC);
187 
188  //ParticleHP
195 
196 
198  tpdata->thePiKB->RegisterMe(tpdata->theQGSPPiK=new G4QGSPPiKBuilder(quasiElasticQGS));
199  tpdata->thePiKB->RegisterMe(tpdata->theFTFPPiK=new G4FTFPPiKBuilder(quasiElasticFTF));
200  tpdata->theFTFPPiK->SetMaxEnergy(maxFTFP);
202  tpdata->theBertiniPiK->SetMaxEnergy(maxBERT);
203 
205 
208 }
209 
211 {
212  if (!tpdata) return;
213 
214  //ParticleHP
215  delete tpdata->thePHPNeutron;
216  delete tpdata->thePHPProton;
217  delete tpdata->thePHPDeuteron;
218  delete tpdata->thePHPTriton;
219  delete tpdata->thePHPHe3;
220  delete tpdata->thePHPAlpha;
221  delete tpdata->theBinaryNeutron;
222  delete tpdata->theQGSPNeutron;
223  delete tpdata->theFTFPNeutron;
224  delete tpdata->theBertiniPiK;
225  delete tpdata->theQGSPPiK;
226  delete tpdata->theFTFPPiK;
227  delete tpdata->thePiKB;
228  delete tpdata->theBinaryProton;
229  delete tpdata->theQGSPProton;
230  delete tpdata->theFTFPProton;
231  delete tpdata->theProtonB;
232  delete tpdata->theFTFPAntiBaryon;
233  delete tpdata->theAntiBaryon;
234  delete tpdata->theHyperon;
235  delete tpdata->xsNeutronCaptureXS;
236 
237  delete tpdata; tpdata = 0;
238 }
239 
241 {
242  G4MesonConstructor pMesonConstructor;
243  pMesonConstructor.ConstructParticle();
244 
245  G4BaryonConstructor pBaryonConstructor;
246  pBaryonConstructor.ConstructParticle();
247 
248  G4ShortLivedConstructor pShortLivedConstructor;
249  pShortLivedConstructor.ConstructParticle();
250 
251  G4IonConstructor pIonConstructor;
252  pIonConstructor.ConstructParticle();
253 }
254 
255 #include "G4ProcessManager.hh"
257 {
258  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
259  CreateModels();
261  tpdata->theProtonB->Build();
262  tpdata->thePiKB->Build();
263 
264  // --- Kaons ---
271 
272  tpdata->theHyperon->Build();
274 
275  // --- Neutrons ---
276  G4HadronicProcess* capture = 0;
277  G4HadronicProcess* fission = 0;
279  G4ProcessVector* pv = pmanager->GetProcessList();
280  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
281  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
282  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
283  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
284  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
285  }
286  }
287  if ( ! capture ) {
288  capture = new G4HadronCaptureProcess("nCapture");
289  pmanager->AddDiscreteProcess(capture);
290  }
293  capture->AddDataSet( new G4ParticleHPCaptureData );
294  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
295  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
296  capture->RegisterMe( theNeutronRadCapture );
297  if ( ! fission ) {
298  fission = new G4HadronFissionProcess("nFission");
299  pmanager->AddDiscreteProcess(fission);
300  }
301  G4LFission* theNeutronLEPFission = new G4LFission();
302  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
303  fission->RegisterMe( theNeutronLEPFission );
304 }
305 
void SetMaxEnergy(G4double aM)
static const double MeV
Definition: G4SIunits.hh:211
void RegisterMe(G4VHe3Builder *aB)
Definition: G4He3Builder.hh:54
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_BIC_AllHP)
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
void SetMinEnergy(G4double aM)
static void ConstructParticle()
void RegisterMe(G4VAlphaBuilder *aB)
#define G4ThreadLocal
Definition: tls.hh:89
static void ConstructParticle()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void SetMaxEnergy(G4double aM)
void SetMinEnergy(G4double aM)
static void ConstructParticle()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4VDeuteronBuilder *aB)
void SetMaxEnergy(G4double aM)
static G4KaonZeroShort * KaonZeroShort()
bool G4bool
Definition: G4Types.hh:79
void SetMaxEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
static const double GeV
Definition: G4SIunits.hh:214
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMinEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
void SetMinEnergy(G4double aM)
G4int size() const
void SetMaxEnergy(G4double aM)
void RegisterMe(G4VTritonBuilder *aB)
void SetMaxEnergy(G4double aM)
void RegisterMe(G4VAntiBarionBuilder *aB)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
void RegisterMe(G4VProtonBuilder *aB)
void SetMaxEnergy(G4double aM)
void RegisterMe(G4VNeutronBuilder *aB)
static G4ThreadLocal ThreadPrivate * tpdata
double G4double
Definition: G4Types.hh:76
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
void SetMaxEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
G4ProcessVector * GetProcessList() const
void SetMaxEnergy(G4double aM)