Geant4-11
G4HadronElasticPhysics.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//
29// ClassName: G4HadronElasticPhysics
30//
31// Author: 23 November 2006 V. Ivanchenko
32//
33// Modified:
34// 21.03.2007 V.Ivanchenko Use G4BGGNucleonElasticXS and G4BGGPionElasticXS;
35// Reduce thresholds for HE and Q-models to zero
36// 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
37// 29.07.2010 V.Ivanchenko rename this class from G4HadronHElasticPhysics to
38// G4HadronElasticPhysics, old version of the class
39// is renamed to G4HadronElasticPhysics93
40//
41//----------------------------------------------------------------------------
42//
44
45#include "G4SystemOfUnits.hh"
47#include "G4ProcessManager.hh"
48
49#include "G4MesonConstructor.hh"
51#include "G4IonConstructor.hh"
52
54#include "G4HadronElastic.hh"
57#include "G4AntiNuclElastic.hh"
58
60#include "G4BGGPionElasticXS.hh"
61
63
64#include "G4NeutronElasticXS.hh"
65
67#include "G4HadronicBuilder.hh"
68#include "G4HadParticles.hh"
69#include "G4HadProcesses.hh"
70#include "G4PhysListUtil.hh"
71#include "G4BuilderType.hh"
72
73// factory
75//
77//
78
81{
83 if(ver > 1) {
84 G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
85 << G4endl;
86 }
88}
89
91{}
92
94{
95 // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
96 G4MesonConstructor pMesonConstructor;
97 pMesonConstructor.ConstructParticle();
98
99 G4BaryonConstructor pBaryonConstructor;
100 pBaryonConstructor.ConstructParticle();
101
102 G4IonConstructor pConstructor;
103 pConstructor.ConstructParticle();
104}
105
107{
109 G4bool useFactorXS = param->ApplyFactorXS();
112
113 const G4double elimitAntiNuc = 100.*MeV;
114 const G4double delta = 0.1*MeV;
115 G4double emax = std::max(param->GetMaxEnergy(), elimitAntiNuc+delta);
116 if(param->GetVerboseLevel() > 1) {
117 G4cout << "### HadronElasticPhysics::ConstructProcess: "
118 << "Elimit for for anti-neuclei " << elimitAntiNuc/CLHEP::GeV << " GeV"
119 << " for all hadrons Emax(GeV)= " << emax/CLHEP::GeV
120 << G4endl;
121 }
122
123 G4HadronElastic* lhep0 = new G4HadronElastic();
124 G4HadronElastic* lhep2 = new G4HadronElastic();
125 lhep0->SetMaxEnergy(emax);
126 lhep2->SetMaxEnergy(elimitAntiNuc+delta);
127
129 he->SetMaxEnergy(emax);
130
132 anuc->SetMinEnergy(elimitAntiNuc);
133 anuc->SetMaxEnergy(emax);
134
135 auto anucxs = G4HadProcesses::ElasticXS("AntiAGlauber");
136 auto xsNN = G4HadProcesses::ElasticXS("Glauber-Gribov Nucl-nucl");
137
138 // p
141 hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
143 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorNucleonElastic() );
144 ph->RegisterProcess(hel, particle);
145
146 // n
147 particle = G4Neutron::Neutron();
148 hel = new G4HadronElasticProcess();
149 hel->AddDataSet(new G4NeutronElasticXS());
151 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorNucleonElastic() );
152 ph->RegisterProcess(hel, particle);
153
154 // pi+
155 particle = G4PionPlus::PionPlus();
156 hel = new G4HadronElasticProcess();
157 hel->AddDataSet(new G4BGGPionElasticXS(particle));
158 hel->RegisterMe(he);
159 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorPionElastic() );
160 ph->RegisterProcess(hel, particle);
161
162 // pi-
163 particle = G4PionMinus::PionMinus();
164 hel = new G4HadronElasticProcess();
165 hel->AddDataSet(new G4BGGPionElasticXS(particle));
166 hel->RegisterMe(he);
167 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorPionElastic() );
168 ph->RegisterProcess(hel, particle);
169
170 // kaons
172
173 // d, t, He3, alpha
174 for( auto & pdg : G4HadParticles::GetLightIons() ) {
175 particle = table->FindParticle( pdg );
176 if ( particle == nullptr ) { continue; }
177
178 hel = new G4HadronElasticProcess();
179 hel->AddDataSet(xsNN);
180 hel->RegisterMe(lhep0);
181 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
182 ph->RegisterProcess(hel, particle);
183 }
184
185 // high energy particles
186 if( emax > param->EnergyThresholdForHeavyHadrons() ) {
187
188 // pbar, nbar, anti light ions
189 for( auto & pdg : G4HadParticles::GetLightAntiIons() ) {
190 particle = table->FindParticle( pdg );
191 if ( particle == nullptr ) { continue; }
192
193 hel = new G4HadronElasticProcess();
194 hel->RegisterMe(lhep2);
195 hel->RegisterMe(anuc);
196 hel->AddDataSet(anucxs);
197 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
198 ph->RegisterProcess(hel, particle);
199 }
200
201 // hyperons
204
205 // b-, c- baryons and mesons
206 if( G4HadronicParameters::Instance()->EnableBCParticles() ) {
208 }
209 }
210}
211
214{
216}
217
220{
221 G4HadronElastic* mod = nullptr;
223 if(hel) {
224 std::vector<G4HadronicInteraction*>& hi = hel->GetHadronicInteractionList();
225 if( !hi.empty() ) { mod = static_cast<G4HadronElastic*>(hi[0]); }
226 }
227 return mod;
228}
229
231{
233}
234
236{
238}
239
241 G4VCrossSectionDataSet* cross) const
242{
244 if(hel) { hel->AddDataSet(cross); }
245}
246
247
@ bHadronElastic
static const G4double emax
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronElasticPhysics)
static constexpr double MeV
Definition: G4SIunits.hh:200
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static void ConstructParticle()
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)
G4HadronElastic * GetElasticModel(const G4ParticleDefinition *part) const
G4HadronElastic * GetNeutronModel() const
G4HadronicProcess * GetNeutronProcess() const
G4HadronElasticPhysics(G4int ver=1, const G4String &nam="hElasticWEL_CHIPS_XS")
G4HadronicProcess * GetElasticProcess(const G4ParticleDefinition *part) const
void AddXSection(const G4ParticleDefinition *, G4VCrossSectionDataSet *) const
static void BuildElastic(const std::vector< G4int > &particleList)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double XSFactorPionElastic() const
static G4HadronicParameters * Instance()
G4double XSFactorNucleonElastic() const
void SetVerboseLevel(const G4int val)
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorHadronElastic() const
G4double GetMaxEnergy() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
std::vector< G4HadronicInteraction * > & GetHadronicInteractionList()
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static void ConstructParticle()
static void ConstructParticle()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
static G4HadronicProcess * FindElasticProcess(const G4ParticleDefinition *)
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97
static G4Proton * Proton()
Definition: G4Proton.cc:92
const G4String & GetPhysicsName() const
static constexpr double GeV
T max(const T t1, const T t2)
brief Return the largest of the two arguments