Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HadronPhysicsFTFP_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"
39#include "G4ParticleTable.hh"
40
41#include "G4MesonConstructor.hh"
44
49
50#include "G4PhysListUtil.hh"
51
52// factory
54//
56
58 : G4VPhysicsConstructor("hInelastic FTFP_BERT_HP")
59 , theNeutrons(0)
60 , theBertiniNeutron(0)
61 , theFTFPNeutron(0)
62 , theLEPNeutron(0)
63 , theHPNeutron(0)
64 , thePiK(0)
65 , theBertiniPiK(0)
66 , theFTFPPiK(0)
67 , thePro(0)
68 , theBertiniPro(0)
69 , theFTFPPro(0)
70 , theHyperon(0)
71 , theAntiBaryon(0)
72 , theFTFPAntiBaryon(0)
73 , QuasiElastic(false)
74 , ChipsKaonMinus(0)
75 , ChipsKaonPlus(0)
76 , ChipsKaonZero(0)
77{}
78
81 , theNeutrons(0)
82 , theBertiniNeutron(0)
83 , theFTFPNeutron(0)
84 , theLEPNeutron(0)
85 , theHPNeutron(0)
86 , thePiK(0)
87 , theBertiniPiK(0)
88 , theFTFPPiK(0)
89 , thePro(0)
90 , theBertiniPro(0)
91 , theFTFPPro(0)
92 , theHyperon(0)
93 , theAntiBaryon(0)
94 , theFTFPAntiBaryon(0)
95 , QuasiElastic(quasiElastic)
96 , ChipsKaonMinus(0)
97 , ChipsKaonPlus(0)
98 , ChipsKaonZero(0)
99{}
100
101void HadronPhysicsFTFP_BERT_HP::CreateModels()
102{
103
104 theNeutrons=new G4NeutronBuilder;
105 theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic);
106 theNeutrons->RegisterMe(theFTFPNeutron);
107 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
108 theBertiniNeutron->SetMinEnergy(19.9*MeV);
109 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
110 theLEPNeutron->SetMinEnergy(19.9*MeV);
111 theLEPNeutron->SetMinInelasticEnergy(0.0*eV); // no inelastic from LEP
112 theLEPNeutron->SetMaxInelasticEnergy(0.0*eV);
113 theBertiniNeutron->SetMaxEnergy(5*GeV);
114 theNeutrons->RegisterMe(theHPNeutron=new G4NeutronHPBuilder);
115
116 thePro=new G4ProtonBuilder;
117 theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic);
118 thePro->RegisterMe(theFTFPPro);
119 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
120 theBertiniPro->SetMaxEnergy(5*GeV);
121
122 thePiK=new G4PiKBuilder;
123 theFTFPPiK=new G4FTFPPiKBuilder(QuasiElastic);
124 thePiK->RegisterMe(theFTFPPiK);
125 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
126 theBertiniPiK->SetMaxEnergy(5*GeV);
127
128 theHyperon=new G4HyperonFTFPBuilder;
129
130 theAntiBaryon=new G4AntiBarionBuilder;
131 theAntiBaryon->RegisterMe(theFTFPAntiBaryon=new G4FTFPAntiBarionBuilder(QuasiElastic));
132}
133
135{
136 delete theNeutrons;
137 delete theBertiniNeutron;
138 delete theFTFPNeutron;
139 delete theLEPNeutron;
140 delete theHPNeutron;
141
142 delete thePiK;
143 delete theBertiniPiK;
144 delete theFTFPPiK;
145
146 delete thePro;
147 delete theBertiniPro;
148 delete theFTFPPro;
149
150 delete theHyperon;
151 delete theAntiBaryon;
152 delete theFTFPAntiBaryon;
153}
154
156{
157 G4MesonConstructor pMesonConstructor;
158 pMesonConstructor.ConstructParticle();
159
160 G4BaryonConstructor pBaryonConstructor;
161 pBaryonConstructor.ConstructParticle();
162
163 G4ShortLivedConstructor pShortLivedConstructor;
164 pShortLivedConstructor.ConstructParticle();
165}
166
167#include "G4ProcessManager.hh"
169{
170 CreateModels();
171 theNeutrons->Build();
172 thePro->Build();
173 thePiK->Build();
174
175 // use CHIPS cross sections also for Kaons
179
184
185 theHyperon->Build();
186 theAntiBaryon->Build();
187}
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
void RegisterMe(G4VAntiBarionBuilder *aB)
static void ConstructParticle()
void SetMaxEnergy(G4double aM)
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static G4CrossSectionDataSetRegistry * Instance()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
void SetMaxInelasticEnergy(G4double aM)
void SetMinInelasticEnergy(G4double aM)
void SetMinEnergy(G4double aM)
static void ConstructParticle()
void RegisterMe(G4VNeutronBuilder *aB)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
void RegisterMe(G4VProtonBuilder *aB)