Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HadronPhysicsFTFP_BERT_TRV.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$
27//
28//---------------------------------------------------------------------------
29//
30// ClassName:
31//
32// Author: 2007 Gunter Folger
33// created from HadronPhysicsFTFP
34//
35// Modified:
36//
37//----------------------------------------------------------------------------
38//
39#include <iomanip>
40
42
43#include "globals.hh"
44#include "G4ios.hh"
45#include "G4SystemOfUnits.hh"
47#include "G4ParticleTable.hh"
48
49#include "G4MesonConstructor.hh"
55#include "G4LFission.hh"
61#include "G4NeutronCaptureXS.hh"
62
63#include "G4PhysListUtil.hh"
64
65// factory
67//
69
71 : G4VPhysicsConstructor("hInelastic FTFP_BERT_TRV")
72 , theNeutrons(0)
73 , theBertiniNeutron(0)
74 , theFTFPNeutron(0)
75 , thePiK(0)
76 , theBertiniPiK(0)
77 , theFTFPPiK(0)
78 , thePro(0)
79 , theBertiniPro(0)
80 , theFTFPPro(0)
81 , theHyperon(0)
82 , theAntiBaryon(0)
83 , theFTFPAntiBaryon(0)
84 , QuasiElastic(false)
85 , ChipsKaonMinus(0)
86 , ChipsKaonPlus(0)
87 , ChipsKaonZero(0)
88 , xsNeutronInelasticXS(0)
89 , xsNeutronCaptureXS(0)
90{}
91
94 , theNeutrons(0)
95 , theBertiniNeutron(0)
96 , theFTFPNeutron(0)
97 , thePiK(0)
98 , theBertiniPiK(0)
99 , theFTFPPiK(0)
100 , thePro(0)
101 , theBertiniPro(0)
102 , theFTFPPro(0)
103 , theHyperon(0)
104 , theAntiBaryon(0)
105 , theFTFPAntiBaryon(0)
106 , QuasiElastic(quasiElastic)
107 , ChipsKaonMinus(0)
108 , ChipsKaonPlus(0)
109 , ChipsKaonZero(0)
110 , xsNeutronInelasticXS(0)
111 , xsNeutronCaptureXS(0)
112{}
113
114
115void HadronPhysicsFTFP_BERT_TRV::CreateModels()
116{
117 G4double minFTFP= 3.0 * GeV;
118 G4double maxBERT= 12.0 * GeV;
119 // G4double minFTFP= 5.0 * GeV; G4double maxBERT= 7.0 * GeV;
120 G4cout << " Revised FTFTP_BERT_TRV - new threshold between BERT and FTFP "
121 << " is over the interval " << minFTFP/GeV << " to " << maxBERT/GeV
122 << " GeV. " << G4endl;
123 G4cout << " -- quasiElastic was asked to be " << QuasiElastic
124 << " and it is reset to " << false << G4endl;
125 QuasiElastic= false;
126
127 theNeutrons=new G4NeutronBuilder;
128 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
129 theBertiniNeutron->SetMinEnergy(0.0*GeV);
130 theBertiniNeutron->SetMaxEnergy(maxBERT);
131 theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic);
132 theNeutrons->RegisterMe(theFTFPNeutron);
133 theFTFPNeutron->SetMinEnergy(minFTFP);
134
135 thePro=new G4ProtonBuilder;
136 theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic);
137 thePro->RegisterMe(theFTFPPro);
138 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
139 theFTFPPro->SetMinEnergy(minFTFP);
140 theBertiniPro->SetMaxEnergy(maxBERT);
141
142 thePiK=new G4PiKBuilder;
143 theFTFPPiK=new G4FTFPPiKBuilder(QuasiElastic);
144 thePiK->RegisterMe(theFTFPPiK);
145 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
146 theFTFPPiK->SetMinEnergy(minFTFP);
147 theBertiniPiK->SetMaxEnergy(maxBERT);
148
149 theHyperon=new G4HyperonFTFPBuilder;
150
151 theAntiBaryon=new G4AntiBarionBuilder;
152 theAntiBaryon->RegisterMe(theFTFPAntiBaryon=new G4FTFPAntiBarionBuilder(QuasiElastic));
153}
154
156{
157 delete theNeutrons;
158 delete theBertiniNeutron;
159 delete theFTFPNeutron;
160
161 delete thePiK;
162 delete theBertiniPiK;
163 delete theFTFPPiK;
164
165 delete thePro;
166 delete theBertiniPro;
167 delete theFTFPPro;
168
169 delete theHyperon;
170 delete theAntiBaryon;
171 delete theFTFPAntiBaryon;
172
173 delete xsNeutronInelasticXS;
174 delete xsNeutronCaptureXS;
175}
176
178{
179 G4MesonConstructor pMesonConstructor;
180 pMesonConstructor.ConstructParticle();
181
182 G4BaryonConstructor pBaryonConstructor;
183 pBaryonConstructor.ConstructParticle();
184
185 G4ShortLivedConstructor pShortLivedConstructor;
186 pShortLivedConstructor.ConstructParticle();
187}
188
189#include "G4ProcessManager.hh"
191{
192 CreateModels();
193 theNeutrons->Build();
194 thePro->Build();
195 thePiK->Build();
196
197 theHyperon->Build();
198 theAntiBaryon->Build();
199
200 // --- Kaons ---
201 // Use Chips cross sections
205
210
211 // --- Neutrons ---
212 // Use the same cross sections and neutron capture as in QBBC.
213 // Need also to assigned a model (Gheisha) to fission.
214 xsNeutronInelasticXS = new G4NeutronInelasticXS();
216
217 G4HadronicProcess* capture = 0;
218 G4HadronicProcess* fission = 0;
220 G4ProcessVector* pv = pmanager->GetProcessList();
221 for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
222 if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
223 capture = static_cast<G4HadronicProcess*>((*pv)[i]);
224 } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
225 fission = static_cast<G4HadronicProcess*>((*pv)[i]);
226 }
227 }
228 if ( ! capture ) {
229 capture = new G4HadronCaptureProcess("nCapture");
230 pmanager->AddDiscreteProcess(capture);
231 }
232 xsNeutronCaptureXS = new G4NeutronCaptureXS();
233 capture->AddDataSet(xsNeutronCaptureXS);
234 capture->RegisterMe(new G4NeutronRadCapture());
235 if ( ! fission ) {
236 fission = new G4HadronFissionProcess("nFission");
237 pmanager->AddDiscreteProcess(fission);
238 }
239 fission->RegisterMe(new G4LFission());
240
241}
242
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void RegisterMe(G4VAntiBarionBuilder *aB)
static void ConstructParticle()
void SetMaxEnergy(G4double aM)
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static G4CrossSectionDataSetRegistry * Instance()
void SetMinEnergy(G4double aM)
void SetMinEnergy(G4double aM)
void SetMinEnergy(G4double aM)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
static void ConstructParticle()
void RegisterMe(G4VNeutronBuilder *aB)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessVector * GetProcessList() const
G4int size() const
void RegisterMe(G4VProtonBuilder *aB)