Geant4  10.01.p02
G4HadronPhysicsFTF_BIC.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: G4HadronPhysicsFTF_BIC.cc 83699 2014-09-10 07:18:25Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsFTF_BIC
31 //
32 // Author: 2007 Gunter Folger
33 //
34 // Modified:
35 //
36 //----------------------------------------------------------------------------
37 //
38 #include <iomanip>
39 
41 
42 #include "globals.hh"
43 #include "G4ios.hh"
44 #include "G4SystemOfUnits.hh"
45 #include "G4ParticleDefinition.hh"
46 #include "G4ParticleTable.hh"
47 
48 #include "G4MesonConstructor.hh"
49 #include "G4BaryonConstructor.hh"
51 
52 #include "G4ProcessManager.hh"
53 #include "G4ProcessVector.hh"
55 #include "G4NeutronRadCapture.hh"
56 #include "G4NeutronInelasticXS.hh"
57 #include "G4NeutronCaptureXS.hh"
58 
60 
61 // factory
63 //
65 
68 
70  : G4VPhysicsConstructor("hInelastic FTF_BIC")
71 /* , theNeutrons(0)
72  , theFTFBinaryNeutron(0)
73  , theBinaryNeutron(0)
74  , thePion(0)
75  , theKaon(0)
76  , theBICPion(0)
77  , theBertiniKaon(0)
78  , theFTFBinaryPion(0)
79  , theFTFBinaryKaon(0)
80  , thePro(0)
81  , theFTFBinaryPro(0)
82  , theBinaryPro(0)
83  , theHyperon(0)
84  , theAntiBaryon(0)
85  , theFTFPAntiBaryon(0)
86  , xsNeutronInelasticXS(0)
87  , xsNeutronCaptureXS(0)*/
88  , QuasiElastic(false)
89 {}
90 
92  : G4VPhysicsConstructor(name)
93 /* , theNeutrons(0)
94  , theFTFBinaryNeutron(0)
95  , theBinaryNeutron(0)
96  , thePion(0)
97  , theKaon(0)
98  , theBICPion(0)
99  , theBertiniKaon(0)
100  , theFTFBinaryPion(0)
101  , theFTFBinaryKaon(0)
102  , thePro(0)
103  , theFTFBinaryPro(0)
104  , theBinaryPro(0)
105  , theHyperon(0)
106  , theAntiBaryon(0)
107  , theFTFPAntiBaryon(0)
108  , xsNeutronInelasticXS(0)
109  , xsNeutronCaptureXS(0)*/
110  , QuasiElastic(quasiElastic)
111 {}
112 
114 {
116 
118 
121 
124 
127 
131  tpdata->theBICPion->SetMaxEnergy(5*GeV); // use Binary up to 5GeV for pion
132 
137 
139 
142 }
143 
145 {
146  if (!tpdata) return;
147 
148  delete tpdata->theFTFBinaryNeutron;
149  delete tpdata->theBinaryNeutron;
150  delete tpdata->theNeutrons;
151 
152  delete tpdata->theFTFBinaryPro;
153  delete tpdata->theBinaryPro;
154  delete tpdata->thePro;
155 
156  delete tpdata->theFTFBinaryPion;
157  delete tpdata->theBICPion;
158  delete tpdata->thePion;
159 
160  delete tpdata->theFTFBinaryKaon;
161  delete tpdata->theBertiniKaon;
162  delete tpdata->theKaon;
163 
164  delete tpdata->theHyperon;
165  delete tpdata->theAntiBaryon;
166  delete tpdata->theFTFPAntiBaryon;
167 
168  delete tpdata; tpdata = 0;
169 }
170 
172 {
173  G4MesonConstructor pMesonConstructor;
174  pMesonConstructor.ConstructParticle();
175 
176  G4BaryonConstructor pBaryonConstructor;
177  pBaryonConstructor.ConstructParticle();
178 
179  G4ShortLivedConstructor pShortLivedConstructor;
180  pShortLivedConstructor.ConstructParticle();
181 }
182 
183 //#include "G4ProcessManager.hh"
184 #include "G4PhysListUtil.hh"
186 {
187  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
188  CreateModels();
190  tpdata->thePro->Build();
191  tpdata->thePion->Build();
192  tpdata->theKaon->Build();
193 
194  tpdata->theHyperon->Build();
196 
197  // --- Neutrons ---
200 
201  G4HadronicProcess* capture = 0;
203  G4ProcessVector* pv = pmanager->GetProcessList();
204  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
205  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
206  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
207  }
208  }
209  if ( ! capture ) {
210  capture = new G4HadronCaptureProcess("nCapture");
211  pmanager->AddDiscreteProcess(capture);
212  }
215  capture->RegisterMe(new G4NeutronRadCapture());
216 }
217 
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
void RegisterMe(G4VPionBuilder *aB)
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
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
G4FTFBinaryNeutronBuilder * theFTFBinaryNeutron
void RegisterMe(G4HadronicInteraction *a)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(G4double aM)
bool G4bool
Definition: G4Types.hh:79
void SetMaxEnergy(G4double aM)
static G4CrossSectionDataSetRegistry * Instance()
static const double GeV
Definition: G4SIunits.hh:196
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTF_BIC)
G4HadronPhysicsFTF_BIC(G4int verbose=1)
G4int size() const
void SetMaxEnergy(G4double aM)
static const char * Default_Name()
void RegisterMe(G4VAntiBarionBuilder *aB)
void RegisterMe(G4VProtonBuilder *aB)
void RegisterMe(G4VNeutronBuilder *aB)
void RegisterMe(G4VKaonBuilder *aB)
static G4ThreadLocal ThreadPrivate * tpdata
G4ProcessVector * GetProcessList() const