Geant4  10.01.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 
59 #include "G4NeutronRadCapture.hh"
60 #include "G4NeutronCaptureXS.hh"
62 #include "G4LFission.hh"
63 
64 // factory
66 //
68 
71 
73  : G4VPhysicsConstructor("hInelastic QGSP_BIC_HP")
74 /* , theNeutrons(0)
75  , theFTFPNeutron(0)
76  , theQGSPNeutron(0)
77  , theBinaryNeutron(0)
78  , theHPNeutron(0)
79  , thePiKB(0)
80  , theFTFPPiK(0)
81  , theQGSPPiK(0)
82  , theBertiniPiK(0)
83  , thePro(0)
84  , theFTFPPro(0)
85  , theQGSPPro(0)
86  , theBinaryPro(0)
87  , theHyperon(0)
88  , theAntiBaryon(0)
89  , theFTFPAntiBaryon(0)
90  , xsNeutronCaptureXS(0)*/
91 // , QuasiElastic(true)
92 {}
93 
95  : G4VPhysicsConstructor(name)
96 /* , theNeutrons(0)
97  , theFTFPNeutron(0)
98  , theQGSPNeutron(0)
99  , theBinaryNeutron(0)
100  , theHPNeutron(0)
101  , thePiKB(0)
102  , theFTFPPiK(0)
103  , theQGSPPiK(0)
104  , theBertiniPiK(0)
105  , thePro(0)
106  , theFTFPPro(0)
107  , theQGSPPro(0)
108  , theBinaryPro(0)
109  , theHyperon(0)
110  , theAntiBaryon(0)
111  , theFTFPAntiBaryon(0)
112  , xsNeutronCaptureXS(0)*/
113 // , QuasiElastic(quasiElastic)
114 {}
115 
117 {
118  G4bool quasiElasticFTF= false; // Use built-in quasi-elastic (not add-on)
119  G4bool quasiElasticQGS= true; // For QGS, it must use it.
120 
121  const G4double maxFTFP = 25.0*GeV;
122  const G4double minFTFP = 9.5*GeV;
123  const G4double maxBIC = 9.9*GeV;
124  const G4double maxBERT = 5.0*GeV;
125  const G4double maxHP = 19.9*MeV;
126 
127  tpdata->theNeutronB=new G4NeutronBuilder( true ); // Fission on
132 
136 
137  //ParticleHP
139 
143  tpdata->theFTFPProton->SetMinEnergy(minFTFP);
144  tpdata->theFTFPProton->SetMaxEnergy(maxFTFP);
147 
148  //ParticleHP
154 
155  //ParticleHP
162 
163 
164  //ParticleHP
171 
172  //ParticleHP
178  tpdata->theBinaryHe3->SetMaxEnergy(maxBIC);
179 
180  //ParticleHP
187 
188 
190  tpdata->thePiKB->RegisterMe(tpdata->theQGSPPiK=new G4QGSPPiKBuilder(quasiElasticQGS));
191  tpdata->thePiKB->RegisterMe(tpdata->theFTFPPiK=new G4FTFPPiKBuilder(quasiElasticFTF));
192  tpdata->theFTFPPiK->SetMaxEnergy(maxFTFP);
194  tpdata->theBertiniPiK->SetMaxEnergy(maxBERT);
195 
197 
200 }
201 
203 {
204  //ParticleHP
205  delete tpdata->thePHPNeutron;
206  delete tpdata->thePHPProton;
207  delete tpdata->thePHPDeuteron;
208  delete tpdata->thePHPTriton;
209  delete tpdata->thePHPHe3;
210  delete tpdata->thePHPAlpha;
211  delete tpdata->theBinaryNeutron;
212  delete tpdata->theQGSPNeutron;
213  delete tpdata->theFTFPNeutron;
214  delete tpdata->theBertiniPiK;
215  delete tpdata->theQGSPPiK;
216  delete tpdata->theFTFPPiK;
217  delete tpdata->thePiKB;
218  delete tpdata->theBinaryProton;
219  delete tpdata->theQGSPProton;
220  delete tpdata->theFTFPProton;
221  delete tpdata->theProtonB;
222  delete tpdata->theFTFPAntiBaryon;
223  delete tpdata->theAntiBaryon;
224  delete tpdata->theHyperon;
225  delete tpdata->xsNeutronCaptureXS;
226 
227  delete tpdata; tpdata = 0;
228 }
229 
231 {
232  G4MesonConstructor pMesonConstructor;
233  pMesonConstructor.ConstructParticle();
234 
235  G4BaryonConstructor pBaryonConstructor;
236  pBaryonConstructor.ConstructParticle();
237 
238  G4ShortLivedConstructor pShortLivedConstructor;
239  pShortLivedConstructor.ConstructParticle();
240 
241  G4IonConstructor pIonConstructor;
242  pIonConstructor.ConstructParticle();
243 }
244 
245 #include "G4ProcessManager.hh"
247 {
248  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
249  CreateModels();
251  tpdata->theProtonB->Build();
252  tpdata->thePiKB->Build();
253  tpdata->theHyperon->Build();
255 
256  // --- Neutrons ---
257  G4HadronicProcess* capture = 0;
258  G4HadronicProcess* fission = 0;
260  G4ProcessVector* pv = pmanager->GetProcessList();
261  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
262  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
263  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
264  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
265  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
266  }
267  }
268  if ( ! capture ) {
269  capture = new G4HadronCaptureProcess("nCapture");
270  pmanager->AddDiscreteProcess(capture);
271  }
274  capture->AddDataSet( new G4NeutronHPCaptureData );
275  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
276  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
277  capture->RegisterMe( theNeutronRadCapture );
278  if ( ! fission ) {
279  fission = new G4HadronFissionProcess("nFission");
280  pmanager->AddDiscreteProcess(fission);
281  }
282  G4LFission* theNeutronLEPFission = new G4LFission();
283  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
284  fission->RegisterMe( theNeutronLEPFission );
285 }
286 
void SetMaxEnergy(G4double aM)
static const double MeV
Definition: G4SIunits.hh:193
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)
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
void SetMaxEnergy(G4double aM)
void SetMinEnergy(G4double aM)
static void ConstructParticle()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4VDeuteronBuilder *aB)
void SetMaxEnergy(G4double aM)
bool G4bool
Definition: G4Types.hh:79
void SetMaxEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
static const double GeV
Definition: G4SIunits.hh:196
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
void SetMaxEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
G4ProcessVector * GetProcessList() const
void SetMaxEnergy(G4double aM)