Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronPhysicsFTFP_BERT_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 //------------------------------------------------------------------------
27 //
28 // Modified:
29 //
30 //------------------------------------------------------------------------
31 //
33 
34 #include <iomanip>
35 #include "globals.hh"
36 #include "G4ios.hh"
37 #include "G4SystemOfUnits.hh"
38 #include "G4ParticleDefinition.hh"
39 #include "G4ParticleTable.hh"
40 
41 #include "G4MesonConstructor.hh"
42 #include "G4BaryonConstructor.hh"
44 
48 #include "G4NeutronRadCapture.hh"
49 #include "G4NeutronCaptureXS.hh"
51 #include "G4LFission.hh"
52 
54 
55 #include "G4PhysListUtil.hh"
56 #include "G4Threading.hh"
57 
58 // factory
60 //
62 
63 G4ThreadLocal G4HadronPhysicsFTFP_BERT_HP::ThreadPrivate*
64 G4HadronPhysicsFTFP_BERT_HP::tpdata=0;
65 
67  : G4VPhysicsConstructor("hInelastic FTFP_BERT_HP")
68 /* , theNeutrons(0)
69  , theBertiniNeutron(0)
70  , theFTFPNeutron(0)
71  , theHPNeutron(0)
72  , thePion(0)
73  , theBertiniPion(0)
74  , theFTFPPion(0)
75  , theKaon(0)
76  , theBertiniKaon(0)
77  , theFTFPKaon(0)
78  , thePro(0)
79  , theBertiniPro(0)
80  , theFTFPPro(0)
81  , theHyperon(0)
82  , theAntiBaryon(0)
83  , theFTFPAntiBaryon(0)*/
84  , QuasiElastic(false)
85  /*, xsKaon(0)
86  , xsNeutronCaptureXS(0)*/
87 {}
88 
90  : G4VPhysicsConstructor(name)
91 /* , theNeutrons(0)
92  , theBertiniNeutron(0)
93  , theFTFPNeutron(0)
94  , theHPNeutron(0)
95  , thePion(0)
96  , theBertiniPion(0)
97  , theFTFPPion(0)
98  , theKaon(0)
99  , theBertiniKaon(0)
100  , theFTFPKaon(0)
101  , thePro(0)
102  , theBertiniPro(0)
103  , theFTFPPro(0)
104  , theHyperon(0)
105  , theAntiBaryon(0)
106  , theFTFPAntiBaryon(0)*/
107  , QuasiElastic(quasiElastic)
108  /*, xsKaon(0)
109  , xsNeutronCaptureXS(0)*/
110 {}
111 
112 void G4HadronPhysicsFTFP_BERT_HP::CreateModels()
113 {
114 
115  G4double minFTFP_pion = 3.0 * GeV;
116  G4double maxBERT_pion = 12.0 * GeV;
117  G4double minFTFP_kaon = 3.0 * GeV;
118  G4double maxBERT_kaon = 12.0 * GeV;
119  G4double minFTFP_proton = 3.0 * GeV;
120  G4double maxBERT_proton = 12.0 * GeV;
121  G4double minFTFP_neutron = 3.0 * GeV;
122  G4double maxBERT_neutron = 12.0 * GeV;
123 
125  G4cout << G4endl
126  << " FTFP_BERT_HP : new threshold between BERT and FTFP is over the interval " << G4endl
127  << " for pions : " << minFTFP_pion/GeV << " to " << maxBERT_pion/GeV << " GeV" << G4endl
128  << " for kaons : " << minFTFP_kaon/GeV << " to " << maxBERT_kaon/GeV << " GeV" << G4endl
129  << " for proton : " << minFTFP_proton/GeV << " to " << maxBERT_proton/GeV << " GeV" << G4endl
130  << " for neutron : " << minFTFP_neutron/GeV << " to " << maxBERT_neutron/GeV << " GeV" << G4endl
131  << G4endl;
132  }
133 
134  tpdata->theNeutrons=new G4NeutronBuilder( true ); // Fission on
135  tpdata->theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic);
136  tpdata->theNeutrons->RegisterMe(tpdata->theFTFPNeutron);
137  tpdata->theFTFPNeutron->SetMinEnergy(minFTFP_neutron);
138  tpdata->theNeutrons->RegisterMe(tpdata->theBertiniNeutron=new G4BertiniNeutronBuilder);
139  tpdata->theBertiniNeutron->SetMinEnergy(19.9*MeV);
140  tpdata->theBertiniNeutron->SetMaxEnergy(maxBERT_neutron);
141  tpdata->theNeutrons->RegisterMe(tpdata->theHPNeutron=new G4NeutronPHPBuilder);
142 
143  tpdata->thePro=new G4ProtonBuilder;
144  tpdata->theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic);
145  tpdata->thePro->RegisterMe(tpdata->theFTFPPro);
146  tpdata->theFTFPPro->SetMinEnergy(minFTFP_proton);
147  tpdata->thePro->RegisterMe(tpdata->theBertiniPro=new G4BertiniProtonBuilder);
148  tpdata->theBertiniPro->SetMaxEnergy(maxBERT_proton);
149 
150  tpdata->thePion=new G4PionBuilder;
151  tpdata->theFTFPPion=new G4FTFPPionBuilder(QuasiElastic);
152  tpdata->thePion->RegisterMe(tpdata->theFTFPPion);
153  tpdata->theFTFPPion->SetMinEnergy(minFTFP_pion);
154  tpdata->thePion->RegisterMe(tpdata->theBertiniPion=new G4BertiniPionBuilder);
155  tpdata->theBertiniPion->SetMaxEnergy(maxBERT_pion);
156 
157  tpdata->theKaon=new G4KaonBuilder;
158  tpdata->theFTFPKaon=new G4FTFPKaonBuilder(QuasiElastic);
159  tpdata->theKaon->RegisterMe(tpdata->theFTFPKaon);
160  tpdata->theFTFPKaon->SetMinEnergy(minFTFP_kaon);
161  tpdata->theKaon->RegisterMe(tpdata->theBertiniKaon=new G4BertiniKaonBuilder);
162  tpdata->theBertiniKaon->SetMaxEnergy(maxBERT_kaon);
163 
164  tpdata->theHyperon=new G4HyperonFTFPBuilder;
165 
166  tpdata->theAntiBaryon=new G4AntiBarionBuilder;
167  tpdata->theAntiBaryon->RegisterMe(tpdata->theFTFPAntiBaryon=new G4FTFPAntiBarionBuilder(QuasiElastic));
168 }
169 
171 {
172  if (!tpdata) return;
173 
174  delete tpdata->theNeutrons;
175  delete tpdata->theBertiniNeutron;
176  delete tpdata->theFTFPNeutron;
177  delete tpdata->theHPNeutron;
178 
179  delete tpdata->thePion;
180  delete tpdata->theBertiniPion;
181  delete tpdata->theFTFPPion;
182 
183  delete tpdata->theKaon;
184  delete tpdata->theBertiniKaon;
185  delete tpdata->theFTFPKaon;
186 
187  delete tpdata->thePro;
188  delete tpdata->theBertiniPro;
189  delete tpdata->theFTFPPro;
190 
191  delete tpdata->theHyperon;
192  delete tpdata->theAntiBaryon;
193  delete tpdata->theFTFPAntiBaryon;
194 
195  delete tpdata; tpdata = 0;
196 }
197 
199 {
200  G4MesonConstructor pMesonConstructor;
201  pMesonConstructor.ConstructParticle();
202 
203  G4BaryonConstructor pBaryonConstructor;
204  pBaryonConstructor.ConstructParticle();
205 
206  G4ShortLivedConstructor pShortLivedConstructor;
207  pShortLivedConstructor.ConstructParticle();
208 }
209 
210 #include "G4ProcessManager.hh"
212 {
213  if (tpdata == 0 ) tpdata = new ThreadPrivate;
214  CreateModels();
215  tpdata->theNeutrons->Build();
216  tpdata->thePro->Build();
217  tpdata->thePion->Build();
218  tpdata->theKaon->Build();
219 
220  // --- Kaons ---
221  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
222  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
227 
228  tpdata->theHyperon->Build();
229  tpdata->theAntiBaryon->Build();
230 
231  // --- Neutrons ---
232  G4HadronicProcess* capture = 0;
233  G4HadronicProcess* fission = 0;
235  G4ProcessVector* pv = pmanager->GetProcessList();
236  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
237  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
238  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
239  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
240  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
241  }
242  }
243  if ( ! capture ) {
244  capture = new G4HadronCaptureProcess("nCapture");
245  pmanager->AddDiscreteProcess(capture);
246  }
248  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
249  capture->AddDataSet( new G4ParticleHPCaptureData );
250  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
251  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
252  capture->RegisterMe( theNeutronRadCapture );
253  if ( ! fission ) {
254  fission = new G4HadronFissionProcess("nFission");
255  pmanager->AddDiscreteProcess(fission);
256  }
257  G4LFission* theNeutronLEPFission = new G4LFission();
258  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
259  fission->RegisterMe( theNeutronLEPFission );
260 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
const XML_Char * name
Definition: expat.h:151
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:89
static void ConstructParticle()
int G4int
Definition: G4Types.hh:78
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
static G4KaonZeroShort * KaonZeroShort()
bool G4bool
Definition: G4Types.hh:79
static G4CrossSectionDataSetRegistry * Instance()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
static const char * Default_Name()
G4ProcessManager * GetProcessManager() const
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
G4bool IsMasterThread()
Definition: G4Threading.cc:146
double G4double
Definition: G4Types.hh:76
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)