Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronHElasticPhysics.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// ClassName: G4HadronHElasticPhysics
29//
30// Author: 23 November 2006 V. Ivanchenko
31//
32// Modified:
33// 21.03.07 (V.Ivanchenko) Use G4BGGNucleonElasticXS and G4BGGPionElasticXS;
34// Reduce thresholds for HE and Q-models to zero
35// 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
36// 06.06.2014 A.Ribon Use the current best elastic models.
37//
38//----------------------------------------------------------------------------
39//
40
42
43#include "G4SystemOfUnits.hh"
45#include "G4ProcessManager.hh"
46
47#include "G4MesonConstructor.hh"
49#include "G4IonConstructor.hh"
50#include "G4Neutron.hh"
51
53#include "G4HadronElastic.hh"
55#include "G4AntiNuclElastic.hh"
56#include "G4DiffuseElastic.hh"
58
61#include "G4BGGPionElasticXS.hh"
62#include "G4NeutronElasticXS.hh"
69
70#include "G4LMsdGenerator.hh"
71#include "G4DiffElasticRatio.hh"
72
74#include "G4HadronicBuilder.hh"
75#include "G4HadParticles.hh"
76#include "G4HadProcesses.hh"
77#include "G4PhysListUtil.hh"
78
79// factory
81//
83
85 : G4HadronElasticPhysics(ver, "hElastic_BEST"),
86 fDiffraction(diffraction)
87{
88 if (ver > 1) {
89 G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
90 << " low-mass diffraction: " << fDiffraction << G4endl;
91 }
92}
93
95
98 G4bool useFactorXS = param->ApplyFactorXS();
101
102 const G4double elimitDiffuse = 10.0;
103 const G4double elimitAntiNuc = 100.0*MeV;
104 const G4double delta = 0.1*MeV;
105 G4double emax = std::max(param->GetMaxEnergy(), elimitAntiNuc+delta);
106 if (param->GetVerboseLevel() > 1 ) {
107 G4cout << "### HadronHElasticPhysics::ConstructProcess: lower energy limit for DiffuseElastic : "
108 << elimitDiffuse/GeV << " GeV" << G4endl
109 << " transition energy for anti-nuclei : "
110 << elimitAntiNuc/GeV << " GeV" << G4endl;
111 }
112 G4HadronElastic* lhep0 = new G4HadronElastic();
113 G4HadronElastic* lhep1 = new G4HadronElastic();
114 G4HadronElastic* lhep2 = new G4HadronElastic();
115 lhep0->SetMaxEnergy(emax);
116 lhep1->SetMaxEnergy(elimitDiffuse+delta);
117 lhep2->SetMaxEnergy(elimitAntiNuc+delta);
118
120 anuc->SetMinEnergy( elimitAntiNuc );
121 anuc->SetMaxEnergy(emax);
122
123 auto anucxs = G4HadProcesses::ElasticXS("AntiAGlauber");
124 auto xsNN = G4HadProcesses::ElasticXS("Glauber-Gribov Nucl-nucl");
125
126 G4LMsdGenerator* diffGen = nullptr;
127 G4DiffElasticRatio* diffRatio = nullptr;
128 if( fDiffraction ) {
129 diffGen = new G4LMsdGenerator("LMsdDiffraction");
130 diffRatio = new G4DiffElasticRatio();
131 }
132
133 // Use Chips elastic model only for the hydrogen element and above an energy threshold
135 chipsH->SetMinEnergy( elimitDiffuse );
136 const G4ElementTable* theElementTable = G4Element::GetElementTable();
137 for ( size_t i_ele = 0; i_ele < theElementTable->size(); i_ele++ ) {
138 G4Element* element = (*theElementTable)[ i_ele ];
139 if ( element->GetZ() > 1.0 ) chipsH->DeActivateFor( element );
140 }
141
142 // p
145 hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
146 G4DiffuseElastic* protonDiffuseElastic = new G4DiffuseElastic();
147 protonDiffuseElastic->SetMinEnergy( elimitDiffuse );
148 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
149 hel->RegisterMe( protonDiffuseElastic );
150 hel->RegisterMe( lhep1 );
151 if( fDiffraction) hel->SetDiffraction(diffGen, diffRatio);
152 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorNucleonElastic() );
153 ph->RegisterProcess(hel, particle);
154
155 // n
156 particle = G4Neutron::Neutron();
157 hel = new G4HadronElasticProcess();
158 hel->AddDataSet(new G4NeutronElasticXS());
159 G4DiffuseElastic* neutronDiffuseElastic = new G4DiffuseElastic();
160 neutronDiffuseElastic->SetMinEnergy( elimitDiffuse );
161 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
162 hel->RegisterMe( neutronDiffuseElastic );
163 hel->RegisterMe( lhep1 );
164 if( fDiffraction) hel->SetDiffraction(diffGen, diffRatio);
165 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorNucleonElastic() );
166 ph->RegisterProcess(hel, particle);
167
168 // pi+
169 particle = G4PionPlus::PionPlus();
170 hel = new G4HadronElasticProcess();
171 hel->AddDataSet(new G4BGGPionElasticXS(particle));
172 G4DiffuseElastic* dElastic = new G4DiffuseElastic();
173 dElastic->SetMinEnergy( elimitDiffuse );
174 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
175 hel->RegisterMe( dElastic );
176 hel->RegisterMe( lhep1 );
177 if( fDiffraction) hel->SetDiffraction(diffGen, diffRatio);
178 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorPionElastic() );
179 ph->RegisterProcess(hel, particle);
180
181 // pi-
182 particle = G4PionMinus::PionMinus();
183 hel = new G4HadronElasticProcess();
184 hel->AddDataSet(new G4BGGPionElasticXS(particle));
185 dElastic = new G4DiffuseElastic();
186 dElastic->SetMinEnergy( elimitDiffuse );
187 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
188 hel->RegisterMe( dElastic );
189 hel->RegisterMe( lhep1 );
190 if( fDiffraction) hel->SetDiffraction(diffGen, diffRatio);
191 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorPionElastic() );
192 ph->RegisterProcess(hel, particle);
193
194 // kaons
196
197 // d, t, He3, alpha
198 for( auto & pdg : G4HadParticles::GetLightIons() ) {
199 particle = table->FindParticle( pdg );
200 if ( particle == nullptr ) { continue; }
201
202 hel = new G4HadronElasticProcess();
203 hel->AddDataSet(xsNN);
204 hel->RegisterMe(lhep0);
205 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
206 ph->RegisterProcess(hel, particle);
207 }
208
209 // high energy particles
210 if( emax > param->EnergyThresholdForHeavyHadrons() ) {
211
212 // pbar, nbar, anti light ions
213 for( auto & pdg : G4HadParticles::GetLightAntiIons() ) {
214 particle = table->FindParticle( pdg );
215 if ( particle == nullptr ) { continue; }
216
217 hel = new G4HadronElasticProcess();
218 hel->RegisterMe(lhep2);
219 hel->RegisterMe(anuc);
220 hel->AddDataSet(anucxs);
221 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
222 ph->RegisterProcess(hel, particle);
223 }
224
225 // hyperons
228
229 // b-, c- baryons and mesons
230 if( G4HadronicParameters::Instance()->EnableBCParticles() ) {
232 }
233 }
234}
std::vector< G4Element * > G4ElementTable
#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 G4ElementTable * GetElementTable()
Definition G4Element.cc:389
G4double GetZ() const
Definition G4Element.hh:119
static const std::vector< G4int > & GetBCHadrons()
static const std::vector< G4int > & GetAntiHyperons()
static const std::vector< G4int > & GetLightAntiIons()
static const std::vector< G4int > & GetLightIons()
static const std::vector< G4int > & GetKaons()
static const std::vector< G4int > & GetHyperons()
static G4CrossSectionElastic * ElasticXS(const G4String &componentName)
void SetDiffraction(G4HadronicInteraction *, G4VCrossSectionRatio *)
G4HadronHElasticPhysics(G4int ver=1, G4bool diffraction=false)
static void BuildElastic(const std::vector< G4int > &particleList)
void DeActivateFor(const G4Material *aMaterial)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double XSFactorPionElastic() const
static G4HadronicParameters * Instance()
G4double XSFactorNucleonElastic() const
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorHadronElastic() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
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
const G4String & GetPhysicsName() const