Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HadronPhysicsINCLXX.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: G4HadronPhysicsINCLXX.cc 66892 2013-01-17 10:57:59Z gunter $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsINCLXX
31 //
32 // Author: 2011 P. Kaitaniemi
33 //
34 // Modified:
35 // 19.03.2013 A.Ribon: Replace LEP with FTFP and BERT
36 // 08.03.2013 D. Mancusi: Fix a problem with overlapping model ranges
37 // 01.03.2013 D. Mancusi: Rename to G4HadronPhysicsINCLXX and introduce
38 // parameters for FTFP and NeutronHP
39 // 31.10.2012 A.Ribon: Use G4MiscBuilder
40 // 23.03.2012 D. Mancusi: Extended INCL++ to incident heavy ions up to 16O
41 // 27.11.2011 P.Kaitaniemi: Created physics list for INCL++ using QGSP_INCL_ABLA as a template
42 //
43 //----------------------------------------------------------------------------
44 //
45 #include <iomanip>
46 
47 #include "G4HadronPhysicsINCLXX.hh"
48 
49 #include "globals.hh"
50 #include "G4ios.hh"
51 #include "G4SystemOfUnits.hh"
52 #include "G4ParticleDefinition.hh"
53 #include "G4ParticleTable.hh"
54 
55 #include "G4MesonConstructor.hh"
56 #include "G4BaryonConstructor.hh"
58 #include "G4IonConstructor.hh"
59 
61 #include "G4NeutronRadCapture.hh"
62 #include "G4NeutronCaptureXS.hh"
64 #include "G4LFission.hh"
65 
66 // factory
68 //
70 
71 G4ThreadLocal G4HadronPhysicsINCLXX::ThreadPrivate*
72 G4HadronPhysicsINCLXX::tpdata = 0;
73 
75  : G4VPhysicsConstructor("hInelastic INCLXX")
76 /* , theNeutrons(0)
77  , theQGSPNeutron(0)
78  , theFTFPNeutron(0)
79  , theBertiniNeutron(0)
80  , theINCLXXNeutron(0)
81  , theNeutronHP(0)
82  , thePiK(0)
83  , theQGSPPiK(0)
84  , theFTFPPiK(0)
85  , theBertiniPiK(0)
86  , theINCLXXPiK(0)
87  , thePro(0)
88  , theQGSPPro(0)
89  , theFTFPPro(0)
90  , theBertiniPro(0)
91  , theINCLXXPro(0)
92  , theHyperon(0)
93  , theAntiBaryon(0)
94  , theFTFPAntiBaryon(0)
95  , xsNeutronCaptureXS(0)*/
96  , QuasiElastic(true)
97  , withNeutronHP(false)
98  , withFTFP(false)
99 {
100 }
101 
102 G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX(const G4String& name, const G4bool quasiElastic, const G4bool neutronHP, const G4bool ftfp)
103  : G4VPhysicsConstructor(name)
104 /* , theNeutrons(0)
105  , theQGSPNeutron(0)
106  , theFTFPNeutron(0)
107  , theBertiniNeutron(0)
108  , theINCLXXNeutron(0)
109  , theNeutronHP(0)
110  , thePiK(0)
111  , theQGSPPiK(0)
112  , theFTFPPiK(0)
113  , theBertiniPiK(0)
114  , theINCLXXPiK(0)
115  , thePro(0)
116  , theQGSPPro(0)
117  , theFTFPPro(0)
118  , theBertiniPro(0)
119  , theINCLXXPro(0)
120  , theHyperon(0)
121  , theAntiBaryon(0)
122  , theFTFPAntiBaryon(0)
123  , xsNeutronCaptureXS(0)*/
124  , QuasiElastic(quasiElastic)
125  , withNeutronHP(neutronHP)
126  , withFTFP(ftfp)
127 {
128 }
129 
130 void G4HadronPhysicsINCLXX::CreateModels()
131 {
132  G4bool quasiElasticFTF= false; // Use built-in quasi-elastic (not add-on)
133  G4bool quasiElasticQGS= true; // For QGS, it must use it.
134 
135 // initialise fields in tpdata where assignment is optional below.
136  tpdata->theQGSPNeutron=0;
137  tpdata->theNeutronHP=0;
138  tpdata->theQGSPPro=0;
139  tpdata->theQGSPPiK=0;
140 
141 
142  tpdata->theNeutrons=new G4NeutronBuilder( withNeutronHP );
143  tpdata->theNeutrons->RegisterMe(tpdata->theFTFPNeutron=new G4FTFPNeutronBuilder(quasiElasticFTF));
144  tpdata->theFTFPNeutron->SetMinEnergy(9.5*GeV);
145  if(!withFTFP) {
146  tpdata->theNeutrons->RegisterMe(tpdata->theQGSPNeutron=new G4QGSPNeutronBuilder(quasiElasticQGS));
147  tpdata->theFTFPNeutron->SetMaxEnergy(25*GeV);
148  }
149  tpdata->theNeutrons->RegisterMe(tpdata->theBertiniNeutron=new G4BertiniNeutronBuilder);
150  tpdata->theBertiniNeutron->SetMinEnergy(2.9*GeV);
151  tpdata->theBertiniNeutron->SetMaxEnergy(9.9*GeV);
152  tpdata->theNeutrons->RegisterMe(tpdata->theINCLXXNeutron=new G4INCLXXNeutronBuilder);
153  tpdata->theINCLXXNeutron->SetMaxEnergy(3.0*GeV);
154  if(withNeutronHP) {
155  tpdata->theINCLXXNeutron->UsePreCompound(false);
156  tpdata->theINCLXXNeutron->SetMinEnergy(19.9*MeV);
157  tpdata->theNeutrons->RegisterMe(tpdata->theNeutronHP=new G4NeutronHPBuilder);
158  } else {
159  tpdata->theINCLXXNeutron->UsePreCompound(true);
160  tpdata->theINCLXXNeutron->SetMinPreCompoundEnergy(0.0*MeV);
161  tpdata->theINCLXXNeutron->SetMaxPreCompoundEnergy(2.0*MeV);
162  tpdata->theINCLXXNeutron->SetMinEnergy(1.0*MeV);
163  }
164 
165  tpdata->thePro=new G4ProtonBuilder;
166  tpdata->thePro->RegisterMe(tpdata->theFTFPPro=new G4FTFPProtonBuilder(quasiElasticFTF));
167  tpdata->theFTFPPro->SetMinEnergy(9.5*GeV);
168  if(!withFTFP) {
169  tpdata->thePro->RegisterMe(tpdata->theQGSPPro=new G4QGSPProtonBuilder(quasiElasticQGS));
170  tpdata->theFTFPPro->SetMaxEnergy(25*GeV);
171  }
172  tpdata->thePro->RegisterMe(tpdata->theBertiniPro=new G4BertiniProtonBuilder);
173  tpdata->theBertiniPro->SetMinEnergy(2.9*GeV);
174  tpdata->theBertiniPro->SetMaxEnergy(9.9*GeV);
175  tpdata->thePro->RegisterMe(tpdata->theINCLXXPro=new G4INCLXXProtonBuilder);
176  tpdata->theINCLXXPro->SetMinEnergy(1.0*MeV);
177  tpdata->theINCLXXPro->SetMaxEnergy(3.0*GeV);
178 
179  tpdata->thePiK=new G4PiKBuilder;
180  tpdata->thePiK->RegisterMe(tpdata->theFTFPPiK=new G4FTFPPiKBuilder(quasiElasticFTF));
181  tpdata->theFTFPPiK->SetMinEnergy(9.5*GeV);
182  if(!withFTFP) {
183  tpdata->thePiK->RegisterMe(tpdata->theQGSPPiK=new G4QGSPPiKBuilder(quasiElasticQGS));
184  tpdata->theFTFPPiK->SetMaxEnergy(25*GeV);
185  }
186  tpdata->thePiK->RegisterMe(tpdata->theBertiniPiK=new G4BertiniPiKBuilder);
187  tpdata->theBertiniPiK->SetMinEnergy(2.9*GeV);
188  tpdata->theBertiniPiK->SetMaxEnergy(9.9*GeV);
189  tpdata->thePiK->RegisterMe(tpdata->theINCLXXPiK=new G4INCLXXPiKBuilder);
190  tpdata->theINCLXXPiK->SetMinEnergy(0.0*GeV);
191  tpdata->theINCLXXPiK->SetMaxEnergy(3.0*GeV);
192 
193  tpdata->theHyperon=new G4HyperonFTFPBuilder;
194 
195  tpdata->theAntiBaryon=new G4AntiBarionBuilder;
196  tpdata->theAntiBaryon->RegisterMe(tpdata->theFTFPAntiBaryon=new G4FTFPAntiBarionBuilder(quasiElasticFTF));
197 }
198 
200 {
201  if(tpdata) {
202  delete tpdata->theFTFPNeutron;
203  delete tpdata->theQGSPNeutron;
204  delete tpdata->theBertiniNeutron;
205  delete tpdata->theINCLXXNeutron;
206  delete tpdata->theNeutronHP;
207  delete tpdata->theFTFPPro;
208  delete tpdata->theQGSPPro;
209  delete tpdata->thePro;
210  delete tpdata->theBertiniPro;
211  delete tpdata->theINCLXXPro;
212  delete tpdata->theFTFPPiK;
213  delete tpdata->theQGSPPiK;
214  delete tpdata->theINCLXXPiK;
215  delete tpdata->theBertiniPiK;
216  delete tpdata->thePiK;
217  delete tpdata->theHyperon;
218  delete tpdata->theAntiBaryon;
219  delete tpdata->theFTFPAntiBaryon;
220  delete tpdata->xsNeutronCaptureXS;
221 
222  delete tpdata; tpdata = 0;
223  }
224 }
225 
227 {
228  G4MesonConstructor pMesonConstructor;
229  pMesonConstructor.ConstructParticle();
230 
231  G4BaryonConstructor pBaryonConstructor;
232  pBaryonConstructor.ConstructParticle();
233 
234  G4ShortLivedConstructor pShortLivedConstructor;
235  pShortLivedConstructor.ConstructParticle();
236 
237  G4IonConstructor pIonConstructor;
238  pIonConstructor.ConstructParticle();
239 }
240 
241 #include "G4ProcessManager.hh"
243 {
244  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
245  CreateModels();
246  tpdata->theNeutrons->Build();
247  tpdata->thePro->Build();
248  tpdata->thePiK->Build();
249  tpdata->theHyperon->Build();
250  tpdata->theAntiBaryon->Build();
251 
252  // --- Neutrons ---
253  G4HadronicProcess* capture = 0;
254  G4HadronicProcess* fission = 0;
256  G4ProcessVector* pv = pmanager->GetProcessList();
257  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
258  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
259  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
260  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
261  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
262  }
263  }
264  if ( ! capture ) {
265  capture = new G4HadronCaptureProcess("nCapture");
266  pmanager->AddDiscreteProcess(capture);
267  }
268  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
269  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
270  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
271  capture->RegisterMe( theNeutronRadCapture );
272  if ( withNeutronHP ) {
273  capture->AddDataSet( new G4NeutronHPCaptureData );
274  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
275  if ( ! fission ) {
276  fission = new G4HadronFissionProcess("nFission");
277  pmanager->AddDiscreteProcess(fission);
278  }
279  G4LFission* theNeutronLEPFission = new G4LFission();
280  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
281  fission->RegisterMe( theNeutronLEPFission );
282  }
283 }
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsINCLXX)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const XML_Char * name
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:52
static void ConstructParticle()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
static void ConstructParticle()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4HadronPhysicsINCLXX(G4int verbose=1)
bool G4bool
Definition: G4Types.hh:79
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
G4ProcessVector * GetProcessList() const