Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HadronPhysicsQGSP_BERT.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: HadronPhysicsQGSP_BERT
31//
32// Author: 2002 J.P. Wellisch
33//
34// Modified:
35// 23.11.2005 G.Folger: migration to non static particles
36// 08.06.2006 V.Ivanchenko: remove stopping
37// 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
38// 25.04.2007 G.Folger: Add code for quasielastic
39// 10.12.2007 G.Folger: Add projectilediffrative option for proton/neutron, off by default
40// 31.10.2012 A.Ribon: Use G4MiscBuilder
41//
42//----------------------------------------------------------------------------
43//
44#include <iomanip>
45
47
48#include "globals.hh"
49#include "G4ios.hh"
50#include "G4SystemOfUnits.hh"
52#include "G4ParticleTable.hh"
53
54#include "G4MesonConstructor.hh"
57
58// factory
60//
62
63
65 : G4VPhysicsConstructor("hInelastic QGSP_BERT")
66 , theNeutrons(0)
67 , theLEPNeutron(0)
68 , theQGSPNeutron(0)
69 , theBertiniNeutron(0)
70 , thePiK(0)
71 , theLEPPiK(0)
72 , theQGSPPiK(0)
73 , theBertiniPiK(0)
74 , thePro(0)
75 , theLEPPro(0)
76 , theQGSPPro(0)
77 , theBertiniPro(0)
78 , theMisc(0)
79 , QuasiElastic(true)
80 , ProjectileDiffraction(false)
81{
82}
83
86 , theNeutrons(0)
87 , theLEPNeutron(0)
88 , theQGSPNeutron(0)
89 , theBertiniNeutron(0)
90 , thePiK(0)
91 , theLEPPiK(0)
92 , theQGSPPiK(0)
93 , theBertiniPiK(0)
94 , thePro(0)
95 , theLEPPro(0)
96 , theQGSPPro(0)
97 , theBertiniPro(0)
98 , theMisc(0)
99 , QuasiElastic(quasiElastic)
100 , ProjectileDiffraction(false)
101{
102}
103
104void HadronPhysicsQGSP_BERT::CreateModels()
105{
106 theNeutrons=new G4NeutronBuilder;
107 theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
108 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
109 theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
110 theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
111
112 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
113 theBertiniNeutron->SetMinEnergy(0.0*GeV);
114 theBertiniNeutron->SetMaxEnergy(9.9*GeV);
115
116 thePro=new G4ProtonBuilder;
117 thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction));
118 thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
119 theLEPPro->SetMinEnergy(9.5*GeV);
120 theLEPPro->SetMaxEnergy(25*GeV);
121
122 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
123 theBertiniPro->SetMaxEnergy(9.9*GeV);
124
125 thePiK=new G4PiKBuilder;
126 thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
127 thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
128 theLEPPiK->SetMaxEnergy(25*GeV);
129 theLEPPiK->SetMinEnergy(9.5*GeV);
130
131 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
132 theBertiniPiK->SetMaxEnergy(9.9*GeV);
133
134 theMisc=new G4MiscBuilder;
135}
136
138{
139 delete theMisc;
140 delete theQGSPNeutron;
141 delete theLEPNeutron;
142 delete theNeutrons;
143 delete theBertiniNeutron;
144 delete theQGSPPro;
145 delete theLEPPro;
146 delete thePro;
147 delete theBertiniPro;
148 delete theQGSPPiK;
149 delete theLEPPiK;
150 delete theBertiniPiK;
151 delete thePiK;
152}
153
155{
156 G4MesonConstructor pMesonConstructor;
157 pMesonConstructor.ConstructParticle();
158
159 G4BaryonConstructor pBaryonConstructor;
160 pBaryonConstructor.ConstructParticle();
161
162 G4ShortLivedConstructor pShortLivedConstructor;
163 pShortLivedConstructor.ConstructParticle();
164}
165
166#include "G4ProcessManager.hh"
168{
169 CreateModels();
170 theNeutrons->Build();
171 thePro->Build();
172 thePiK->Build();
173 theMisc->Build();
174}
175
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
static void ConstructParticle()
void SetMaxEnergy(G4double aM)
void SetMaxInelasticEnergy(G4double aM)
void SetMinInelasticEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
void SetMinEnergy(G4double aM)
void SetMinEnergy(G4double aM)
void SetMaxEnergy(G4double aM)
static void ConstructParticle()
void RegisterMe(G4VNeutronBuilder *aB)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
void RegisterMe(G4VProtonBuilder *aB)
HadronPhysicsQGSP_BERT(G4int verbose=1)