source: trunk/source/physics_lists/lists/src/G4HadronInelasticQBBC.cc@ 1329

Last change on this file since 1329 was 1315, checked in by garnier, 15 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 8.0 KB
Line 
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: G4HadronInelasticQBBC.cc,v 1.28 2010/06/04 13:48:51 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: G4HadronInelasticQBBC
32//
33// Author: 2 October 2009 V. Ivanchenko
34//
35// Modified:
36//
37//----------------------------------------------------------------------------
38//
39
40#include "G4HadronInelasticQBBC.hh"
41
42#include "G4HadronInelasticProcess.hh"
43#include "G4HadronicInteraction.hh"
44
45#include "G4ParticleDefinition.hh"
46#include "G4ProcessManager.hh"
47
48#include "G4BGGNucleonInelasticXS.hh"
49#include "G4BGGPionInelasticXS.hh"
50
51#include "G4NeutronInelasticXS.hh"
52#include "G4NeutronCaptureXS.hh"
53
54#include "G4QInelastic.hh"
55#include "G4HadronicProcessStore.hh"
56
57#include "G4ProtonInelasticCrossSection.hh"
58#include "G4NeutronInelasticCrossSection.hh"
59#include "G4PiNuclearCrossSection.hh"
60
61#include "G4QGSBuilder.hh"
62#include "G4FTFBuilder.hh"
63
64#include "G4QStringChipsParticleLevelInterface.hh"
65#include "G4CascadeInterface.hh"
66#include "G4BinaryCascade.hh"
67#include "G4LCapture.hh"
68#include "G4NeutronRadCapture.hh"
69
70#include "G4PreCompoundModel.hh"
71#include "G4ExcitationHandler.hh"
72#include "G4Evaporation.hh"
73
74enum QBBCType
75{
76 fQBBC = 0, // default QBBC
77 fQBBC_XGG, // neutron x-sections from BGG
78 fQBBC_XGGSN // n, p, pi+- x-sections from QGSP_BERT
79};
80
81G4HadronInelasticQBBC::G4HadronInelasticQBBC(G4int ver)
82 : G4VHadronPhysics("hInelastic"),verbose(ver),wasActivated(false)
83{
84 htype = "QBBC";
85 theHandler = 0;
86 theEvaporation = 0;
87}
88
89G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String& name, G4int ver,
90 G4bool, G4bool,G4bool, G4bool, G4bool)
91 : G4VHadronPhysics("hInelastic"),verbose(ver),wasActivated(false)
92{
93 htype = name;
94 theHandler = 0;
95 theEvaporation = 0;
96}
97
98G4HadronInelasticQBBC::~G4HadronInelasticQBBC()
99{
100 delete theHandler;
101 delete theEvaporation;
102}
103
104void G4HadronInelasticQBBC::ConstructProcess()
105{
106 if(wasActivated) return;
107 wasActivated = true;
108
109 // select type
110 QBBCType fType = fQBBC;
111 if("QBBC_XGG" == htype) { fType = fQBBC_XGG; }
112 else if("QBBC_XGGSN" == htype) { fType = fQBBC_XGGSN; }
113
114 if(verbose > 1) {
115 G4cout << "### HadronInelasticQBBC Construct Process with type <"
116 << htype << ">" << G4endl;
117 }
118
119 // PreCompound and Evaporation models are instantiated here
120 theEvaporation = new G4Evaporation();
121 theEvaporation->SetCombinedChannel();
122 theHandler = new G4ExcitationHandler();
123 theHandler->SetEvaporation(theEvaporation);
124 theHandler->SetMinEForMultiFrag(3.0*GeV);
125 theHandler->SetMaxAandZForFermiBreakUp(17,9);
126 G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(theHandler);
127
128 // configure models
129 G4HadronicInteraction* theQGSP =
130 BuildModel(new G4QGSBuilder("QGSP",thePreCompound,true,false),12.5*GeV,100.*TeV);
131 G4HadronicInteraction* theFTFP =
132 BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,25.*GeV);
133 G4HadronicInteraction* theFTFP1 =
134 BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,100.*TeV);
135
136 G4HadronicInteraction* theBERT =
137 NewModel(new G4CascadeInterface(),1.0*GeV,5.0*GeV);
138 G4HadronicInteraction* theBERT1 =
139 NewModel(new G4CascadeInterface(),0.0*GeV,5.0*GeV);
140
141 G4BinaryCascade* bic = new G4BinaryCascade();
142 bic->SetDeExcitation(thePreCompound);
143 G4HadronicInteraction* theBIC = NewModel(bic,0.0,1.5*GeV);
144
145 G4QInelastic* theCHIPS = new G4QInelastic();
146 G4HadronicProcessStore* store = G4HadronicProcessStore::Instance();
147 store->RegisterExtraProcess(theCHIPS);
148
149 // loop over particles
150 theParticleIterator->reset();
151 while( (*theParticleIterator)() ) {
152 G4ParticleDefinition* particle = theParticleIterator->value();
153 G4String pname = particle->GetParticleName();
154 G4ProcessManager* pmanager = particle->GetProcessManager();
155 if(verbose > 1) {
156 G4cout << "### HadronInelasticQBBC: " << pname << G4endl;
157 }
158
159 //
160 // model and X-section configuration per particle type
161 //
162 if(pname == "proton") {
163 G4HadronicProcess* hp = FindInelasticProcess(particle);
164 if(fType == fQBBC_XGGSN) {
165 hp->AddDataSet(new G4ProtonInelasticCrossSection());
166 } else {
167 hp->AddDataSet(new G4BGGNucleonInelasticXS(particle));
168 }
169 hp->RegisterMe(theQGSP);
170 hp->RegisterMe(theFTFP);
171 hp->RegisterMe(theBERT);
172 hp->RegisterMe(theBIC);
173
174 } else if(pname == "neutron") {
175 G4HadronicProcess* hp = FindInelasticProcess(particle);
176 if(fType == fQBBC) {
177 hp->AddDataSet(new G4NeutronInelasticXS());
178 } else if(fType == fQBBC_XGG) {
179 hp->AddDataSet(new G4BGGNucleonInelasticXS(particle));
180 } else {
181 hp->AddDataSet(new G4NeutronInelasticCrossSection());
182 }
183
184 hp->RegisterMe(theQGSP);
185 hp->RegisterMe(theFTFP);
186
187 G4HadronicProcess* capture = FindCaptureProcess();
188
189 hp->RegisterMe(theBERT);
190 hp->RegisterMe(theBIC);
191 capture->RegisterMe(new G4NeutronRadCapture());
192 //capture->RegisterMe(new G4LCapture());
193 if(fType == fQBBC) {
194 capture->AddDataSet(new G4NeutronCaptureXS());
195 }
196
197 } else if(pname == "pi-" || pname == "pi+") {
198 G4HadronicProcess* hp = FindInelasticProcess(particle);
199 if(fType == fQBBC_XGGSN) {
200 hp->AddDataSet(new G4PiNuclearCrossSection());
201 } else {
202 hp->AddDataSet(new G4BGGPionInelasticXS(particle));
203 }
204 hp->RegisterMe(theQGSP);
205 hp->RegisterMe(theFTFP);
206 hp->RegisterMe(theBERT1);
207
208 } else if(pname == "kaon-" ||
209 pname == "kaon+" ||
210 pname == "kaon0S" ||
211 pname == "kaon0L" ||
212 pname == "lambda" ||
213 pname == "sigma-" ||
214 pname == "sigma+" ||
215 pname == "sigma0" ||
216 pname == "xi-" ||
217 pname == "xi0") {
218 G4HadronicProcess* hp = FindInelasticProcess(particle);
219 hp->RegisterMe(theFTFP1);
220 hp->RegisterMe(theBERT1);
221
222 } else if(pname == "anti_lambda" ||
223 pname == "anti_neutron" ||
224 pname == "anti_omega-" ||
225 pname == "anti_proton" ||
226 pname == "anti_sigma-" ||
227 pname == "anti_sigma+" ||
228 pname == "anti_xi-" ||
229 pname == "anti_xi0" ||
230 pname == "omega-") {
231 //G4HadronicProcess* hp = FindInelasticProcess(particle);
232 //hp->RegisterMe(theFTFP1);
233 //hp->RegisterMe(theCHIPS);
234 pmanager->AddDiscreteProcess(theCHIPS);
235 store->RegisterParticleForExtraProcess(theCHIPS,particle);
236 }
237 }
238}
Note: See TracBrowser for help on using the repository browser.