Geant4  10.03
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 
57 // factory
59 //
61 
64 
66  : G4VPhysicsConstructor("hInelastic FTFP_BERT_HP")
67 /* , theNeutrons(0)
68  , theBertiniNeutron(0)
69  , theFTFPNeutron(0)
70  , theHPNeutron(0)
71  , thePion(0)
72  , theBertiniPion(0)
73  , theFTFPPion(0)
74  , theKaon(0)
75  , theBertiniKaon(0)
76  , theFTFPKaon(0)
77  , thePro(0)
78  , theBertiniPro(0)
79  , theFTFPPro(0)
80  , theHyperon(0)
81  , theAntiBaryon(0)
82  , theFTFPAntiBaryon(0)*/
83  , QuasiElastic(false)
84  /*, xsKaon(0)
85  , xsNeutronCaptureXS(0)*/
86 {}
87 
89  : G4VPhysicsConstructor(name)
90 /* , theNeutrons(0)
91  , theBertiniNeutron(0)
92  , theFTFPNeutron(0)
93  , theHPNeutron(0)
94  , thePion(0)
95  , theBertiniPion(0)
96  , theFTFPPion(0)
97  , theKaon(0)
98  , theBertiniKaon(0)
99  , theFTFPKaon(0)
100  , thePro(0)
101  , theBertiniPro(0)
102  , theFTFPPro(0)
103  , theHyperon(0)
104  , theAntiBaryon(0)
105  , theFTFPAntiBaryon(0)*/
106  , QuasiElastic(quasiElastic)
107  /*, xsKaon(0)
108  , xsNeutronCaptureXS(0)*/
109 {}
110 
112 {
113 
114  G4double minFTFP_pion = 3.0 * GeV;
115  G4double maxBERT_pion = 12.0 * GeV;
116  G4double minFTFP_kaon = 3.0 * GeV;
117  G4double maxBERT_kaon = 12.0 * GeV;
118  G4double minFTFP_proton = 3.0 * GeV;
119  G4double maxBERT_proton = 12.0 * GeV;
120  G4double minFTFP_neutron = 3.0 * GeV;
121  G4double maxBERT_neutron = 12.0 * GeV;
122 
123  G4cout << G4endl
124  << " FTFP_BERT_HP : new threshold between BERT and FTFP is over the interval " << G4endl
125  << " for pions : " << minFTFP_pion/GeV << " to " << maxBERT_pion/GeV << " GeV" << G4endl
126  << " for kaons : " << minFTFP_kaon/GeV << " to " << maxBERT_kaon/GeV << " GeV" << G4endl
127  << " for proton : " << minFTFP_proton/GeV << " to " << maxBERT_proton/GeV << " GeV" << G4endl
128  << " for neutron : " << minFTFP_neutron/GeV << " to " << maxBERT_neutron/GeV << " GeV" << G4endl
129  << G4endl;
130 
131  tpdata->theNeutrons=new G4NeutronBuilder( true ); // Fission on
134  tpdata->theFTFPNeutron->SetMinEnergy(minFTFP_neutron);
137  tpdata->theBertiniNeutron->SetMaxEnergy(maxBERT_neutron);
139 
143  tpdata->theFTFPPro->SetMinEnergy(minFTFP_proton);
145  tpdata->theBertiniPro->SetMaxEnergy(maxBERT_proton);
146 
150  tpdata->theFTFPPion->SetMinEnergy(minFTFP_pion);
152  tpdata->theBertiniPion->SetMaxEnergy(maxBERT_pion);
153 
157  tpdata->theFTFPKaon->SetMinEnergy(minFTFP_kaon);
159  tpdata->theBertiniKaon->SetMaxEnergy(maxBERT_kaon);
160 
162 
165 }
166 
168 {
169  if (!tpdata) return;
170 
171  delete tpdata->theNeutrons;
172  delete tpdata->theBertiniNeutron;
173  delete tpdata->theFTFPNeutron;
174  delete tpdata->theHPNeutron;
175 
176  delete tpdata->thePion;
177  delete tpdata->theBertiniPion;
178  delete tpdata->theFTFPPion;
179 
180  delete tpdata->theKaon;
181  delete tpdata->theBertiniKaon;
182  delete tpdata->theFTFPKaon;
183 
184  delete tpdata->thePro;
185  delete tpdata->theBertiniPro;
186  delete tpdata->theFTFPPro;
187 
188  delete tpdata->theHyperon;
189  delete tpdata->theAntiBaryon;
190  delete tpdata->theFTFPAntiBaryon;
191 
192  delete tpdata; tpdata = 0;
193 }
194 
196 {
197  G4MesonConstructor pMesonConstructor;
198  pMesonConstructor.ConstructParticle();
199 
200  G4BaryonConstructor pBaryonConstructor;
201  pBaryonConstructor.ConstructParticle();
202 
203  G4ShortLivedConstructor pShortLivedConstructor;
204  pShortLivedConstructor.ConstructParticle();
205 }
206 
207 #include "G4ProcessManager.hh"
209 {
210  if (tpdata == 0 ) tpdata = new ThreadPrivate;
211  CreateModels();
213  tpdata->thePro->Build();
214  tpdata->thePion->Build();
215  tpdata->theKaon->Build();
216 
217  // --- Kaons ---
224 
225  tpdata->theHyperon->Build();
227 
228  // --- Neutrons ---
229  G4HadronicProcess* capture = 0;
230  G4HadronicProcess* fission = 0;
232  G4ProcessVector* pv = pmanager->GetProcessList();
233  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
234  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
235  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
236  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
237  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
238  }
239  }
240  if ( ! capture ) {
241  capture = new G4HadronCaptureProcess("nCapture");
242  pmanager->AddDiscreteProcess(capture);
243  }
246  capture->AddDataSet( new G4ParticleHPCaptureData );
247  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
248  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
249  capture->RegisterMe( theNeutronRadCapture );
250  if ( ! fission ) {
251  fission = new G4HadronFissionProcess("nFission");
252  pmanager->AddDiscreteProcess(fission);
253  }
254  G4LFission* theNeutronLEPFission = new G4LFission();
255  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
256  fission->RegisterMe( theNeutronLEPFission );
257 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
void RegisterMe(G4VPionBuilder *aB)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
void SetMinEnergy(G4double aM)
const char * name(G4int ptype)
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
void SetMinEnergy(G4double aM)
static G4KaonZeroShort * KaonZeroShort()
bool G4bool
Definition: G4Types.hh:79
void SetMaxEnergy(G4double aM)
static G4CrossSectionDataSetRegistry * Instance()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMinEnergy(G4double aM)
G4int size() const
static const char * Default_Name()
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4VAntiBarionBuilder *aB)
static constexpr double GeV
Definition: G4SIunits.hh:217
void RegisterMe(G4VProtonBuilder *aB)
void SetMaxEnergy(G4double aM)
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTFP_BERT_HP)
#define G4endl
Definition: G4ios.hh:61
void RegisterMe(G4VNeutronBuilder *aB)
static constexpr double MeV
Definition: G4SIunits.hh:214
void RegisterMe(G4VKaonBuilder *aB)
double G4double
Definition: G4Types.hh:76
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
static G4ThreadLocal ThreadPrivate * tpdata
void SetMinEnergy(G4double aM)
G4ProcessVector * GetProcessList() const