Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronPhysicsFTFQGSP_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//
27//---------------------------------------------------------------------------
28// Author: Alberto Ribon
29// Date: October 2017
30//
31// Hadron physics for the new, experimental physics list FTFQGSP_BERT,
32// with QGS fragmentation of strings, instead of the Lund string
33// fragmentation. Note that the string excitation is still done with FTF,
34// exactly as for FTFP_BERT.
35// Given that it is an experimental, and perhaps temporary, new type of
36// hadron physics, corresponding builders are not created and everything
37// is implemented directly in this class.
38//----------------------------------------------------------------------------
39//
40#include <iomanip>
41
43
44#include "globals.hh"
45#include "G4ios.hh"
46#include "G4SystemOfUnits.hh"
48#include "G4ParticleTable.hh"
49
54#include "G4NeutronCaptureXS.hh"
56
60
61#include "G4TheoFSGenerator.hh"
62#include "G4FTFModel.hh"
65#include "G4CascadeInterface.hh"
67
68#include "G4PhysListUtil.hh"
69#include "G4HadParticles.hh"
70#include "G4HadProcesses.hh"
71
73#include "G4HadronicBuilder.hh"
75
76// factory
78//
80
86
90
93
95{
97 G4cout << " QGS string fragmentation instead of Lund string fragmentation."
98 << G4endl;
99}
100
102{
104 DumpBanner();
105 }
107 G4bool useFactorXS = param->ApplyFactorXS();
108 G4double emax = param->GetMaxEnergy();
110
111 auto theModel = new G4TheoFSGenerator("FTFQGSP");
112 auto theStringModel = new G4FTFModel();
113 theStringModel->SetFragmentationModel(new G4ExcitedStringDecay( new G4QGSMFragmentation() ) );
114 theModel->SetHighEnergyGenerator( theStringModel );
115 theModel->SetTransport( new G4GeneratorPrecompoundInterface() );
116 theModel->SetMinEnergy( param->GetMinEnergyTransitionFTF_Cascade() );
117 theModel->SetMaxEnergy( emax );
118
119 auto theCascade = new G4CascadeInterface();
120 theCascade->SetMaxEnergy( param->GetMaxEnergyTransitionFTF_Cascade() );
121
122 // p
124 G4HadronicProcess* proc =
125 new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
126 proc->AddDataSet(new G4ParticleInelasticXS(particle));
127 proc->RegisterMe(theModel);
128 proc->RegisterMe(theCascade);
129 ph->RegisterProcess(proc, particle);
130 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
131
132 // n
133 particle = G4Neutron::Neutron();
134 proc = new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
135 proc->AddDataSet(new G4NeutronInelasticXS());
136 proc->RegisterMe(theModel);
137 proc->RegisterMe(theCascade);
138 ph->RegisterProcess(proc, particle);
139 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
140
141 proc = new G4NeutronCaptureProcess("nCapture");
142 proc->RegisterMe(new G4NeutronRadCapture());
143 ph->RegisterProcess(proc, particle);
144
145 // pi+
146 particle = G4PionPlus::PionPlus();
147 proc = new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
148 proc->AddDataSet(new G4BGGPionInelasticXS(particle));
149 proc->RegisterMe(theModel);
150 proc->RegisterMe(theCascade);
151 ph->RegisterProcess(proc, particle);
152 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
153
154 // pi-
155 particle = G4PionMinus::PionMinus();
156 proc = new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
157 proc->AddDataSet(new G4BGGPionInelasticXS(particle));
158 proc->RegisterMe(theModel);
159 proc->RegisterMe(theCascade);
160 ph->RegisterProcess(proc, particle);
161 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
162
163 // kaons
165
166 // high energy particles
167 if( emax > param->EnergyThresholdForHeavyHadrons() ) {
168
169 // pbar, nbar, anti light ions
171
172 // hyperons
174
175 // b-, c- baryons and mesons
176 if( param->EnableBCParticles() ) {
178 }
179 }
180}
181
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
static void BuildKaonsFTFQGSP_BERT()
static void BuildBCHadronsFTFQGSP_BERT()
static void BuildHyperonsFTFQGSP_BERT()
static void BuildAntiLightIonsFTFP()
static G4HadronicParameters * Instance()
G4double GetMinEnergyTransitionFTF_Cascade() const
G4double GetMaxEnergyTransitionFTF_Cascade() const
void SetVerboseLevel(const G4int val)
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorPionInelastic() const
G4double XSFactorNucleonInelastic() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
Definition G4PionPlus.cc:93
static G4Proton * Proton()
Definition G4Proton.cc:90
G4bool IsMasterThread()