Geant4  10.01.p02
G4HadronPhysicsQGSP_BIC_HP.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_HP.cc 83699 2014-09-10 07:18:25Z 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 
59 #include "G4NeutronRadCapture.hh"
60 #include "G4NeutronCaptureXS.hh"
62 #include "G4LFission.hh"
63 
65 
66 // factory
68 //
70 
73 
75  : G4VPhysicsConstructor("hInelastic QGSP_BIC_HP")
76 /* , theNeutrons(0)
77  , theFTFPNeutron(0)
78  , theQGSPNeutron(0)
79  , theBinaryNeutron(0)
80  , theHPNeutron(0)
81  , thePiK(0)
82  , theFTFPPiK(0)
83  , theQGSPPiK(0)
84  , theBertiniPiK(0)
85  , thePro(0)
86  , theFTFPPro(0)
87  , theQGSPPro(0)
88  , theBinaryPro(0)
89  , theHyperon(0)
90  , theAntiBaryon(0)
91  , theFTFPAntiBaryon(0)
92  , xsNeutronCaptureXS(0)*/
93 // , QuasiElastic(true)
94 {}
95 
97  : G4VPhysicsConstructor(name)
98 /* , theNeutrons(0)
99  , theFTFPNeutron(0)
100  , theQGSPNeutron(0)
101  , theBinaryNeutron(0)
102  , theHPNeutron(0)
103  , thePiK(0)
104  , theFTFPPiK(0)
105  , theQGSPPiK(0)
106  , theBertiniPiK(0)
107  , thePro(0)
108  , theFTFPPro(0)
109  , theQGSPPro(0)
110  , theBinaryPro(0)
111  , theHyperon(0)
112  , theAntiBaryon(0)
113  , theFTFPAntiBaryon(0)
114  , xsNeutronCaptureXS(0)*/
115 // , QuasiElastic(quasiElastic)
116 {}
117 
119 {
120  G4bool quasiElasticFTF= false; // Use built-in quasi-elastic (not add-on)
121  G4bool quasiElasticQGS= true; // For QGS, it must use it.
122 
123  const G4double maxFTFP = 25.0*GeV;
124  const G4double minFTFP = 9.5*GeV;
125  const G4double maxBIC = 9.9*GeV;
126  const G4double maxBERT = 5.0*GeV;
127  const G4double maxHP = 19.9*MeV;
128 
129  tpdata->theNeutrons=new G4NeutronBuilder( true ); // Fission on
134 
138 
140 
142  tpdata->thePro->RegisterMe(tpdata->theQGSPPro=new G4QGSPProtonBuilder(quasiElasticQGS));
143  tpdata->thePro->RegisterMe(tpdata->theFTFPPro=new G4FTFPProtonBuilder(quasiElasticFTF));
144  tpdata->theFTFPPro->SetMinEnergy(minFTFP);
145  tpdata->theFTFPPro->SetMaxEnergy(maxFTFP);
147  tpdata->theBinaryPro->SetMaxEnergy(maxBIC);
148 
150  tpdata->thePiK->RegisterMe(tpdata->theQGSPPiK=new G4QGSPPiKBuilder(quasiElasticQGS));
151  tpdata->thePiK->RegisterMe(tpdata->theFTFPPiK=new G4FTFPPiKBuilder(quasiElasticFTF));
152  tpdata->theFTFPPiK->SetMaxEnergy(maxFTFP);
154  tpdata->theBertiniPiK->SetMaxEnergy(maxBERT);
155 
157 
160 }
161 
163 {
164  if (!tpdata) return;
165 
166  delete tpdata->theHPNeutron;
167  delete tpdata->theBinaryNeutron;
168  delete tpdata->theQGSPNeutron;
169  delete tpdata->theFTFPNeutron;
170  delete tpdata->theBertiniPiK;
171  delete tpdata->theQGSPPiK;
172  delete tpdata->theFTFPPiK;
173  delete tpdata->thePiK;
174  delete tpdata->theBinaryPro;
175  delete tpdata->theQGSPPro;
176  delete tpdata->theFTFPPro;
177  delete tpdata->thePro;
178  delete tpdata->theFTFPAntiBaryon;
179  delete tpdata->theAntiBaryon;
180  delete tpdata->theHyperon;
181 
182  delete tpdata; tpdata = 0;
183 }
184 
186 {
187  G4MesonConstructor pMesonConstructor;
188  pMesonConstructor.ConstructParticle();
189 
190  G4BaryonConstructor pBaryonConstructor;
191  pBaryonConstructor.ConstructParticle();
192 
193  G4ShortLivedConstructor pShortLivedConstructor;
194  pShortLivedConstructor.ConstructParticle();
195 
196  G4IonConstructor pIonConstructor;
197  pIonConstructor.ConstructParticle();
198 }
199 
200 #include "G4ProcessManager.hh"
202 {
203  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
204  CreateModels();
206  tpdata->thePro->Build();
207  tpdata->thePiK->Build();
208  tpdata->theHyperon->Build();
210 
211  // --- Neutrons ---
212  G4HadronicProcess* capture = 0;
213  G4HadronicProcess* fission = 0;
215  G4ProcessVector* pv = pmanager->GetProcessList();
216  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
217  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
218  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
219  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
220  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
221  }
222  }
223  if ( ! capture ) {
224  capture = new G4HadronCaptureProcess("nCapture");
225  pmanager->AddDiscreteProcess(capture);
226  }
229  capture->AddDataSet( new G4NeutronHPCaptureData );
230  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
231  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
232  capture->RegisterMe( theNeutronRadCapture );
233  if ( ! fission ) {
234  fission = new G4HadronFissionProcess("nFission");
235  pmanager->AddDiscreteProcess(fission);
236  }
237  G4LFission* theNeutronLEPFission = new G4LFission();
238  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
239  fission->RegisterMe( theNeutronLEPFission );
240 }
241 
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static const double MeV
Definition: G4SIunits.hh:193
static G4ThreadLocal ThreadPrivate * tpdata
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetMinEnergy(G4double aM)
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:89
static void ConstructParticle()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double aM)
static void ConstructParticle()
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_BIC_HP)
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
bool G4bool
Definition: G4Types.hh:79
static G4CrossSectionDataSetRegistry * Instance()
void SetMaxEnergy(G4double aM)
static const double GeV
Definition: G4SIunits.hh:196
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(G4double aM)
void SetMinEnergy(G4double aM)
G4int size() const
void SetMaxEnergy(G4double aM)
static const char * Default_Name()
void RegisterMe(G4VAntiBarionBuilder *aB)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
void RegisterMe(G4VProtonBuilder *aB)
void RegisterMe(G4VNeutronBuilder *aB)
double G4double
Definition: G4Types.hh:76
G4ProcessVector * GetProcessList() const
void SetMaxEnergy(G4double aM)