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.26 2010/05/19 18:14:16 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: phys-lists-V09-03-03 $ |
---|
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 | //#include "G4UInelasticCrossSection.hh" |
---|
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 | |
---|
74 | enum QBBCType |
---|
75 | { |
---|
76 | fQBBC = 0, |
---|
77 | fQBBC_XGG, |
---|
78 | fQBBC_XGGSN |
---|
79 | }; |
---|
80 | |
---|
81 | G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String& name, G4int ver, |
---|
82 | G4bool, G4bool,G4bool, G4bool, G4bool) |
---|
83 | : G4VHadronPhysics("hInelastic"),verbose(ver),wasActivated(false) |
---|
84 | { |
---|
85 | htype = name; |
---|
86 | theHandler = 0; |
---|
87 | theEvaporation = 0; |
---|
88 | } |
---|
89 | |
---|
90 | G4HadronInelasticQBBC::~G4HadronInelasticQBBC() |
---|
91 | { |
---|
92 | delete theHandler; |
---|
93 | delete theEvaporation; |
---|
94 | } |
---|
95 | |
---|
96 | void G4HadronInelasticQBBC::ConstructProcess() |
---|
97 | { |
---|
98 | if(wasActivated) return; |
---|
99 | wasActivated = true; |
---|
100 | |
---|
101 | // select type |
---|
102 | QBBCType fType = fQBBC; |
---|
103 | if("QBBC_XGG" == htype) { fType = fQBBC_XGG; } |
---|
104 | else if("QBBC_XGGSN" == htype) { fType = fQBBC_XGGSN; } |
---|
105 | |
---|
106 | if(verbose > 1) { |
---|
107 | G4cout << "### HadronInelasticQBBC Construct Process with type <" |
---|
108 | << htype << ">" << G4endl; |
---|
109 | } |
---|
110 | |
---|
111 | // PreCompound and Evaporation models |
---|
112 | theEvaporation = new G4Evaporation(); |
---|
113 | theEvaporation->SetCombinedChannel(); |
---|
114 | theHandler = new G4ExcitationHandler(); |
---|
115 | theHandler->SetEvaporation(theEvaporation); |
---|
116 | theHandler->SetMinEForMultiFrag(3.0*GeV); |
---|
117 | theHandler->SetMaxAandZForFermiBreakUp(17,9); |
---|
118 | G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(theHandler); |
---|
119 | |
---|
120 | // configure models |
---|
121 | G4HadronicInteraction* theQGSP = |
---|
122 | BuildModel(new G4QGSBuilder("QGSP",thePreCompound,true,false),12.5*GeV,100.*TeV); |
---|
123 | G4HadronicInteraction* theFTFP = |
---|
124 | BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,25.*GeV); |
---|
125 | G4HadronicInteraction* theFTFP1 = |
---|
126 | BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,100.*TeV); |
---|
127 | |
---|
128 | G4HadronicInteraction* theBERT = |
---|
129 | NewModel(new G4CascadeInterface(),1.0*GeV,5.0*GeV); |
---|
130 | G4HadronicInteraction* theBERT1 = |
---|
131 | NewModel(new G4CascadeInterface(),0.0*GeV,5.0*GeV); |
---|
132 | |
---|
133 | G4BinaryCascade* bic = new G4BinaryCascade(); |
---|
134 | bic->SetDeExcitation(thePreCompound); |
---|
135 | G4HadronicInteraction* theBIC = NewModel(bic,0.0,1.5*GeV); |
---|
136 | |
---|
137 | // G4HadronicInteraction* theCHIPS = |
---|
138 | // NewModel(new G4QStringChipsParticleLevelInterface(),0.0,7.5*GeV); |
---|
139 | |
---|
140 | G4QInelastic* theCHIPS = new G4QInelastic(); |
---|
141 | G4HadronicProcessStore* store = G4HadronicProcessStore::Instance(); |
---|
142 | store->RegisterExtraProcess(theCHIPS); |
---|
143 | |
---|
144 | // loop over particles |
---|
145 | theParticleIterator->reset(); |
---|
146 | while( (*theParticleIterator)() ) { |
---|
147 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
148 | G4String pname = particle->GetParticleName(); |
---|
149 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
150 | if(verbose > 1) { G4cout << "### HadronInelasticQBBC: " << pname << G4endl; } |
---|
151 | |
---|
152 | // |
---|
153 | // model and X-section configuration per particle type |
---|
154 | // |
---|
155 | if(pname == "proton") { |
---|
156 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
157 | if(fType == fQBBC) { |
---|
158 | hp->AddDataSet(new G4ProtonInelasticCrossSection()); |
---|
159 | } else { |
---|
160 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle)); |
---|
161 | } |
---|
162 | hp->RegisterMe(theQGSP); |
---|
163 | hp->RegisterMe(theFTFP); |
---|
164 | hp->RegisterMe(theBERT); |
---|
165 | hp->RegisterMe(theBIC); |
---|
166 | |
---|
167 | } else if(pname == "neutron") { |
---|
168 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
169 | if(fType == fQBBC) { |
---|
170 | hp->AddDataSet(new G4NeutronInelasticCrossSection()); |
---|
171 | } else if(fType == fQBBC_XGG) { |
---|
172 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle)); |
---|
173 | } else { |
---|
174 | hp->AddDataSet(new G4NeutronInelasticXS()); |
---|
175 | } |
---|
176 | |
---|
177 | hp->RegisterMe(theQGSP); |
---|
178 | hp->RegisterMe(theFTFP); |
---|
179 | |
---|
180 | G4HadronicProcess* capture = FindCaptureProcess(); |
---|
181 | |
---|
182 | hp->RegisterMe(theBERT); |
---|
183 | hp->RegisterMe(theBIC); |
---|
184 | capture->RegisterMe(new G4NeutronRadCapture()); |
---|
185 | //capture->RegisterMe(new G4LCapture()); |
---|
186 | if(fType == fQBBC_XGGSN) { |
---|
187 | capture->AddDataSet(new G4NeutronCaptureXS()); |
---|
188 | } |
---|
189 | |
---|
190 | } else if(pname == "pi-" || pname == "pi+") { |
---|
191 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
192 | if(fType == fQBBC) { |
---|
193 | hp->AddDataSet(new G4PiNuclearCrossSection()); |
---|
194 | } else { |
---|
195 | hp->AddDataSet(new G4BGGPionInelasticXS(particle)); |
---|
196 | } |
---|
197 | hp->RegisterMe(theQGSP); |
---|
198 | hp->RegisterMe(theFTFP); |
---|
199 | hp->RegisterMe(theBERT1); |
---|
200 | |
---|
201 | } else if(pname == "kaon-" || |
---|
202 | pname == "kaon+" || |
---|
203 | pname == "kaon0S" || |
---|
204 | pname == "kaon0L" || |
---|
205 | pname == "lambda" || |
---|
206 | pname == "sigma-" || |
---|
207 | pname == "sigma+" || |
---|
208 | pname == "sigma0" || |
---|
209 | pname == "xi-" || |
---|
210 | pname == "xi0") { |
---|
211 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
212 | hp->RegisterMe(theFTFP1); |
---|
213 | hp->RegisterMe(theBERT1); |
---|
214 | |
---|
215 | } else if(pname == "anti_lambda" || |
---|
216 | pname == "anti_neutron" || |
---|
217 | pname == "anti_omega-" || |
---|
218 | pname == "anti_proton" || |
---|
219 | pname == "anti_sigma-" || |
---|
220 | pname == "anti_sigma+" || |
---|
221 | pname == "anti_xi-" || |
---|
222 | pname == "anti_xi0" || |
---|
223 | pname == "omega-") { |
---|
224 | //G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
225 | //hp->RegisterMe(theFTFP1); |
---|
226 | //hp->RegisterMe(theCHIPS); |
---|
227 | pmanager->AddDiscreteProcess(theCHIPS); |
---|
228 | store->RegisterParticleForExtraProcess(theCHIPS,particle); |
---|
229 | } |
---|
230 | } |
---|
231 | } |
---|