Geant4  10.01.p02
G4HadronPhysicsQGSP_FTFP_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: G4HadronPhysicsQGSP_FTFP_BERT.cc 83699 2014-09-10 07:18:25Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsQGSP_FTFP_BERT
31 //
32 // Authors: 2 Apr 2009 J.Apostolakis/V.Ivantchenko: created starting from QGSP_BERT
33 //
34 // Modified:
35 //----------------------------------------------------------------------------
36 //
37 #include <iomanip>
38 
40 
41 #include "globals.hh"
42 #include "G4ios.hh"
43 #include "G4SystemOfUnits.hh"
44 #include "G4ParticleDefinition.hh"
45 #include "G4ParticleTable.hh"
46 
47 #include "G4MesonConstructor.hh"
48 #include "G4BaryonConstructor.hh"
50 #include "G4IonConstructor.hh"
51 
53 #include "G4NeutronRadCapture.hh"
54 #include "G4NeutronInelasticXS.hh"
55 #include "G4NeutronCaptureXS.hh"
56 
57 #include "G4PhysListUtil.hh"
59 
60 // factory
62 //
64 
67 
69  : G4VPhysicsConstructor("hInelastic QGSP_FTFP_BERT")
70 /* , theNeutrons(0)
71  , theFTFPNeutron(0)
72  , theQGSPNeutron(0)
73  , theBertiniNeutron(0)
74  , thePiK(0)
75  , theFTFPPiK(0)
76  , theQGSPPiK(0)
77  , theBertiniPiK(0)
78  , thePro(0)
79  , theFTFPPro(0)
80  , theQGSPPro(0)
81  , theBertiniPro(0)
82  , theHyperon(0)
83  , theAntiBaryon(0)
84  , theFTFPAntiBaryon(0)
85  , xsNeutronInelasticXS(0)
86  , xsNeutronCaptureXS(0)*/
87  , QuasiElastic(true)
88 {
89 }
90 
92  G4bool quasiElastic)
93  : G4VPhysicsConstructor("hInelastic QGSP_FTFP_BERT")
94 /* , theNeutrons(0)
95  , theFTFPNeutron(0)
96  , theQGSPNeutron(0)
97  , theBertiniNeutron(0)
98  , thePiK(0)
99  , theFTFPPiK(0)
100  , theQGSPPiK(0)
101  , theBertiniPiK(0)
102  , thePro(0)
103  , theFTFPPro(0)
104  , theQGSPPro(0)
105  , theBertiniPro(0)
106  , theHyperon(0)
107  , theAntiBaryon(0)
108  , theFTFPAntiBaryon(0)
109  , xsNeutronInelasticXS(0)
110  , xsNeutronCaptureXS(0)*/
111  , QuasiElastic(quasiElastic)
112 {
113 }
114 
116 {
117  // First transition, between BERT and FTF/P
118  G4double minFTFP= 6.0 * GeV; // Was 9.5 for LEP (in FTFP_BERT 6.0 * GeV);
119  G4double maxBERT= 8.0 * GeV; // Was 9.9 for LEP (in FTFP_BERT 8.0 * GeV);
120  // Second transition, between FTF/P and QGS/P
121  G4double minQGSP= 12.0 * GeV;
122  G4double maxFTFP= 25.0 * GeV;
123 
124  G4bool quasiElasFTF= false; // Use built-in quasi-elastic (not add-on)
125  G4bool quasiElasQGS= true; // For QGS, it must use it.
126 
127  G4cout << " New QGSP_FTFP_BERT physics list, replaces LEP with FTF/P for p/n/pi (/K?)";
128  G4cout << " Thresholds: " << G4endl;
129  G4cout << " 1) between BERT and FTF/P over the interval "
130  << minFTFP/GeV << " to " << maxBERT/GeV << " GeV. " << G4endl;
131  G4cout << " 2) between FTF/P and QGS/P over the interval "
132  << minQGSP/GeV << " to " << maxFTFP/GeV << " GeV. " << G4endl;
133  G4cout << " -- quasiElastic was asked to be " << QuasiElastic << G4endl
134  << " Changed to " << quasiElasQGS << " for QGS "
135  << " and to " << quasiElasFTF << " (must be false) for FTF" << G4endl;
136 
139  tpdata->theQGSPNeutron->SetMinEnergy(minQGSP);
141  tpdata->theFTFPNeutron->SetMinEnergy(minFTFP); // was (9.5*GeV);
142  tpdata->theFTFPNeutron->SetMaxEnergy(maxFTFP); // was (25*GeV);
143 
146  tpdata->theBertiniNeutron->SetMaxEnergy(maxBERT); // was (9.9*GeV);
147 
150  tpdata->theQGSPPro->SetMinEnergy(minQGSP);
152  tpdata->theFTFPPro->SetMinEnergy(minFTFP); // was (9.5*GeV);
153  tpdata->theFTFPPro->SetMaxEnergy(maxFTFP); // was (25*GeV);
155  tpdata->theBertiniPro->SetMaxEnergy(maxBERT); // was (9.9*GeV);
156 
159  tpdata->theQGSPPiK->SetMinEnergy(minQGSP);
161  tpdata->theFTFPPiK->SetMaxEnergy(maxFTFP); // was (25*GeV);
162  tpdata->theFTFPPiK->SetMinEnergy(minFTFP); // was (9.5*GeV);
164  tpdata->theBertiniPiK->SetMaxEnergy(maxBERT); // was (9.9*GeV);
165 
166  // Hyperons use FTF
168 
171 }
172 
174 {
175  if (!tpdata) return;
176 
177  delete tpdata->theQGSPNeutron;
178  delete tpdata->theFTFPNeutron;
179  delete tpdata->theBertiniNeutron;
180  delete tpdata->theNeutrons;
181 
182  delete tpdata->theQGSPPro;
183  delete tpdata->theFTFPPro;
184  delete tpdata->thePro;
185  delete tpdata->theBertiniPro;
186 
187  delete tpdata->theQGSPPiK;
188  delete tpdata->theFTFPPiK;
189  delete tpdata->theBertiniPiK;
190  delete tpdata->thePiK;
191 
192  delete tpdata->theHyperon;
193  delete tpdata->theAntiBaryon;
194  delete tpdata->theFTFPAntiBaryon;
195 
196  delete tpdata; tpdata = 0;
197 }
198 
200 {
201  G4MesonConstructor pMesonConstructor;
202  pMesonConstructor.ConstructParticle();
203 
204  G4BaryonConstructor pBaryonConstructor;
205  pBaryonConstructor.ConstructParticle();
206 
207  G4ShortLivedConstructor pShortLivedConstructor;
208  pShortLivedConstructor.ConstructParticle();
209 
210  G4IonConstructor pIonConstructor;
211  pIonConstructor.ConstructParticle();
212 }
213 
214 #include "G4ProcessManager.hh"
216 {
217  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
218  CreateModels();
220  tpdata->thePro->Build();
221  tpdata->thePiK->Build();
222  tpdata->theHyperon->Build();
224 
225  // --- Neutrons ---
228 
229  G4HadronicProcess* capture = 0;
231  G4ProcessVector* pv = pmanager->GetProcessList();
232  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
233  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
234  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
235  }
236  }
237  if ( ! capture ) {
238  capture = new G4HadronCaptureProcess("nCapture");
239  pmanager->AddDiscreteProcess(capture);
240  }
243  capture->RegisterMe(new G4NeutronRadCapture());
244 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_FTFP_BERT)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetMinEnergy(G4double aM)
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
void SetMaxEnergy(G4double aM)
static void ConstructParticle()
void RegisterMe(G4HadronicInteraction *a)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
void SetMinEnergy(G4double aM)
bool G4bool
Definition: G4Types.hh:79
static G4CrossSectionDataSetRegistry * Instance()
void SetMaxEnergy(G4double aM)
static const double GeV
Definition: G4SIunits.hh:196
void SetMinEnergy(G4double aM)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(G4double aM)
void SetMinEnergy(G4double aM)
G4int size() const
static G4ThreadLocal ThreadPrivate * tpdata
static const char * Default_Name()
void RegisterMe(G4VAntiBarionBuilder *aB)
void RegisterMe(G4VPiKBuilder *aB)
Definition: G4PiKBuilder.hh:58
void RegisterMe(G4VProtonBuilder *aB)
#define G4endl
Definition: G4ios.hh:61
void SetMinEnergy(G4double aM)
void RegisterMe(G4VNeutronBuilder *aB)
double G4double
Definition: G4Types.hh:76
G4ProcessVector * GetProcessList() const
void SetMinEnergy(G4double aM)
void SetMaxEnergy(G4double aM)