Geant4  10.01.p02
G4HadronPhysicsNuBeam.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 // $Id$
28 //
29 //---------------------------------------------------------------------------
30 //
31 // ClassName: HadronPhysicsNuBeam
32 //
33 // Author: Julia Yarba, FNAL/CD (2013)
34 // created from (molded after) HadronPhysicsFTFP_BERT
35 //
36 // Modified:
37 //
38 //----------------------------------------------------------------------------
39 //
40 #include <iomanip>
41 
42 #include "G4HadronPhysicsNuBeam.hh"
43 
44 #include "globals.hh"
45 #include "G4ios.hh"
46 #include "G4SystemOfUnits.hh"
47 #include "G4ParticleDefinition.hh"
48 #include "G4ParticleTable.hh"
49 
50 #include "G4MesonConstructor.hh"
51 #include "G4BaryonConstructor.hh"
53 
58 
60 #include "G4NeutronRadCapture.hh"
61 #include "G4NeutronInelasticXS.hh"
62 #include "G4NeutronCaptureXS.hh"
63 
64 #include "G4PhysListUtil.hh"
65 
66 // factory
68 //
70 
72 
74  : G4VPhysicsConstructor("hInelasticNuBeam")
75 /* , theNeutrons(0)
76  , theBertiniNeutron(0)
77  , theFTFPNeutron(0)
78  , thePiK(0)
79  , theBertiniPiK(0)
80  , theFTFPPiK(0)
81  , thePro(0)
82  , theBertiniPro(0)
83  , theFTFPPro(0)
84  , theQGSPPro(0)
85  , theHyperon(0)
86  , theAntiBaryon(0)
87  , theFTFPAntiBaryon(0) */
88  , QuasiElastic(false)
89 /* , ChipsKaonMinus(0)
90  , ChipsKaonPlus(0)
91  , ChipsKaonZero(0)
92  , xsNeutronInelasticXS(0)
93  , xsNeutronCaptureXS(0) */
94 {}
95 
97  : G4VPhysicsConstructor(name)
98 /* , theNeutrons(0)
99  , theBertiniNeutron(0)
100  , theFTFPNeutron(0)
101  , thePiK(0)
102  , theBertiniPiK(0)
103  , theFTFPPiK(0)
104  , thePro(0)
105  , theBertiniPro(0)
106  , theFTFPPro(0)
107  , theQGSPPro(0)
108  , theHyperon(0)
109  , theAntiBaryon(0)
110  , theFTFPAntiBaryon(0) */
111  , QuasiElastic(quasiElastic)
112 /* , ChipsKaonMinus(0)
113  , ChipsKaonPlus(0)
114  , ChipsKaonZero(0)
115  , xsNeutronInelasticXS(0)
116  , xsNeutronCaptureXS(0) */
117 {}
118 
120 {
121 
122  // this is fairly "standard", and is the same in FTFP_BERT
123  //
130 
131  // this block has quite a few modifications,
132  // incl. energy ranges that are different from FTFP_BERT
133  //
135  //
136  // this is the new "custom" proton builder, tentatively for NuBeam
137  //
138  // no need to set the min energy because it's set in the ProBuilder (at 100GeV)
139  // ... and theMax will be set 100TeV via Build()
140  //
141  // also explicitly set quasi-elastic key ON for QGS
142  // (it should be OFF for FTF, controlled by QuasiElastic)
143  //
146  //
147  // standard FTFP builder, but energy range is adjusted
148  //
153  //
154  // standard Bertini builder, but the validity limit in energy has been moved higher
155  //
158 
159  // this one has energy ranges different from FTFP_BERT,
160  // namely, Bertini is extended up to 10GeV, and FTFP starts at 7GeV
161  //
168 
169  // this is "standard" and is the same as in FTFP_BERT
170  //
174 
175  return;
176 
177 }
178 
180 {
181  if (!tpdata) return;
182 
183  delete tpdata->theNeutrons;
184  delete tpdata->theBertiniNeutron;
185  delete tpdata->theFTFPNeutron;
186 
187  delete tpdata->thePiK;
188  delete tpdata->theBertiniPiK;
189  delete tpdata->theFTFPPiK;
190 
191  delete tpdata->thePro;
192  delete tpdata->theBertiniPro;
193  delete tpdata->theFTFPPro;
194  delete tpdata->theQGSPPro;
195 
196  delete tpdata->theHyperon;
197  delete tpdata->theAntiBaryon;
198  delete tpdata->theFTFPAntiBaryon;
199 
200 }
201 
203 {
204 
205  G4MesonConstructor pMesonConstructor;
206  pMesonConstructor.ConstructParticle();
207 
208  G4BaryonConstructor pBaryonConstructor;
209  pBaryonConstructor.ConstructParticle();
210 
211  G4ShortLivedConstructor pShortLivedConstructor;
212  pShortLivedConstructor.ConstructParticle();
213 
214  return;
215 
216 }
217 
218 #include "G4ProcessManager.hh"
220 {
221 
222  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
223 
224  CreateModels();
225 
227  tpdata->thePro->Build();
228  tpdata->thePiK->Build();
229 
230  // use CHIPS cross sections also for Kaons
234  //
235 
240 
241  tpdata->theHyperon->Build();
243 
244  // --- Neutrons ---
245  //
248 
249  G4HadronicProcess* capture = 0;
251  G4ProcessVector* pv = pmanager->GetProcessList();
252  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i )
253  {
254  if ( fCapture == ((*pv)[i])->GetProcessSubType() )
255  {
256  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
257  }
258  }
259  if ( ! capture ) {
260  capture = new G4HadronCaptureProcess("nCapture");
261  pmanager->AddDiscreteProcess(capture);
262  }
265  capture->RegisterMe(new G4NeutronRadCapture());
266 
267  return;
268 
269 }
270 
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsNuBeam)
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static G4ThreadLocal ThreadPrivate * tpdata
static const char * Default_Name()
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:89
static void ConstructParticle()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
G4BertiniNeutronBuilder * theBertiniNeutron
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMinEnergy(G4double aM)
static G4KaonZeroShort * KaonZeroShort()
bool G4bool
Definition: G4Types.hh:79
static G4CrossSectionDataSetRegistry * Instance()
void SetMaxEnergy(G4double aM)
G4HadronPhysicsNuBeam(G4int verbose=1)
static const double GeV
Definition: G4SIunits.hh:196
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMinEnergy(G4double aM)
G4int size() const
static const char * Default_Name()
void RegisterMe(G4VAntiBarionBuilder *aB)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
G4QGSPLundStrFragmProtonBuilder * theQGSPPro
void RegisterMe(G4VProtonBuilder *aB)
void RegisterMe(G4VNeutronBuilder *aB)
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const
void SetMaxEnergy(G4double aM)