Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronElasticPhysics Class Reference

#include <G4HadronElasticPhysics.hh>

+ Inheritance diagram for G4HadronElasticPhysics:

Public Member Functions

 G4HadronElasticPhysics (G4int ver=1, const G4String &nam="hElasticWEL_CHIPS_XS")
 
virtual ~G4HadronElasticPhysics ()
 
void ConstructParticle () override
 
void ConstructProcess () override
 
G4HadronicProcessGetElasticProcess (const G4ParticleDefinition *part) const
 
G4HadronElasticGetElasticModel (const G4ParticleDefinition *part) const
 
G4HadronicProcessGetNeutronProcess () const
 
G4HadronElasticGetNeutronModel () const
 
void AddXSection (const G4ParticleDefinition *, G4VCrossSectionDataSet *) const
 
 G4HadronElasticPhysics (G4HadronElasticPhysics &)=delete
 
G4HadronElasticPhysicsoperator= (const G4HadronElasticPhysics &right)=delete
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
PhysicsBuilder_V GetBuilders () const
 
void AddBuilder (G4PhysicsBuilderInterface *bld)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
 
G4String namePhysics = ""
 
G4int typePhysics = 0
 
G4ParticleTabletheParticleTable = nullptr
 
G4int g4vpcInstanceID = 0
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 54 of file G4HadronElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4HadronElasticPhysics() [1/2]

G4HadronElasticPhysics::G4HadronElasticPhysics ( G4int  ver = 1,
const G4String nam = "hElasticWEL_CHIPS_XS" 
)
explicit

Definition at line 79 of file G4HadronElasticPhysics.cc.

81{
83 if(ver > 1) {
84 G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
85 << G4endl;
86 }
88}
@ bHadronElastic
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)
const G4String & GetPhysicsName() const

◆ ~G4HadronElasticPhysics()

G4HadronElasticPhysics::~G4HadronElasticPhysics ( )
virtual

Definition at line 90 of file G4HadronElasticPhysics.cc.

91{}

◆ G4HadronElasticPhysics() [2/2]

G4HadronElasticPhysics::G4HadronElasticPhysics ( G4HadronElasticPhysics )
delete

Member Function Documentation

◆ AddXSection()

void G4HadronElasticPhysics::AddXSection ( const G4ParticleDefinition part,
G4VCrossSectionDataSet cross 
) const

Definition at line 253 of file G4HadronElasticPhysics.cc.

255{
257 if(hel) { hel->AddDataSet(cross); }
258}
G4HadronicProcess * GetElasticProcess(const G4ParticleDefinition *part) const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)

◆ ConstructParticle()

void G4HadronElasticPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 93 of file G4HadronElasticPhysics.cc.

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}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4HadronElasticPhysics::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Reimplemented in G4HadronElasticPhysicsHP, G4HadronElasticPhysicsLEND, G4HadronElasticPhysicsPHP, G4HadronElasticPhysicsXS, and G4HadronHElasticPhysics.

Definition at line 106 of file G4HadronElasticPhysics.cc.

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 hel = new G4HadronElasticProcess();
150
151 // pi+
152 particle = G4PionPlus::PionPlus();
153 hel = new G4HadronElasticProcess();
154 hel->AddDataSet(new G4BGGPionElasticXS(particle));
155 hel->RegisterMe(he);
156 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorPionElastic() );
157 ph->RegisterProcess(hel, particle);
158
159 // pi-
160 particle = G4PionMinus::PionMinus();
161 hel = new G4HadronElasticProcess();
162 hel->AddDataSet(new G4BGGPionElasticXS(particle));
163 hel->RegisterMe(he);
164 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorPionElastic() );
165 ph->RegisterProcess(hel, particle);
166
167 // kaons
169
170 // d, t, He3, alpha
171 for( auto & pdg : G4HadParticles::GetLightIons() ) {
172 particle = table->FindParticle( pdg );
173 if ( particle == nullptr ) { continue; }
174
175 hel = new G4HadronElasticProcess();
176 hel->AddDataSet(xsNN);
177 hel->RegisterMe(lhep0);
178 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
179 ph->RegisterProcess(hel, particle);
180 }
181
182 // high energy particles
183 if( emax > param->EnergyThresholdForHeavyHadrons() ) {
184
185 // pbar, nbar, anti light ions
186 for( auto & pdg : G4HadParticles::GetLightAntiIons() ) {
187 particle = table->FindParticle( pdg );
188 if ( particle == nullptr ) { continue; }
189
190 hel = new G4HadronElasticProcess();
191 hel->RegisterMe(lhep2);
192 hel->RegisterMe(anuc);
193 hel->AddDataSet(anucxs);
194 if( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
195 ph->RegisterProcess(hel, particle);
196 }
197
198 // hyperons
201
202 // b-, c- baryons and mesons
203 if( G4HadronicParameters::Instance()->EnableBCParticles() ) {
205 }
206
207 // light hypernuclei and anti-hypernuclei
208 if ( G4HadronicParameters::Instance()->EnableHyperNuclei() ) {
209 // for light hypernuclei, we can use directly the following method:
211 // but not for light anti-hypernuclei, because they need a different cross section:
212 for ( auto & pdg : G4HadParticles::GetHyperAntiNuclei() ) {
213 particle = table->FindParticle( pdg );
214 if ( particle == nullptr ) continue;
215 hel = new G4HadronElasticProcess;
216 hel->AddDataSet( anucxs );
217 hel->RegisterMe( lhep0 );
218 if ( useFactorXS ) hel->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
219 ph->RegisterProcess( hel, particle );
220 }
221 }
222 }
223}
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
static const std::vector< G4int > & GetBCHadrons()
static const std::vector< G4int > & GetAntiHyperons()
static const std::vector< G4int > & GetLightAntiIons()
static const std::vector< G4int > & GetHyperNuclei()
static const std::vector< G4int > & GetLightIons()
static const std::vector< G4int > & GetKaons()
static const std::vector< G4int > & GetHyperons()
static const std::vector< G4int > & GetHyperAntiNuclei()
static G4CrossSectionElastic * ElasticXS(const G4String &componentName)
static void BuildNeutronElastic(G4HadronicProcess *)
static void BuildElastic(const std::vector< G4int > &particleList)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double XSFactorPionElastic() const
G4double XSFactorNucleonElastic() const
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorHadronElastic() const
G4double GetMaxEnergy() const
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
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

Referenced by G4HadronElasticPhysicsHP::ConstructProcess(), G4HadronElasticPhysicsLEND::ConstructProcess(), G4HadronElasticPhysicsPHP::ConstructProcess(), and G4HadronElasticPhysicsXS::ConstructProcess().

◆ GetElasticModel()

G4HadronElastic * G4HadronElasticPhysics::GetElasticModel ( const G4ParticleDefinition part) const

Definition at line 232 of file G4HadronElasticPhysics.cc.

233{
234 G4HadronElastic* mod = nullptr;
236 if(hel) {
237 std::vector<G4HadronicInteraction*>& hi = hel->GetHadronicInteractionList();
238 if( !hi.empty() ) { mod = static_cast<G4HadronElastic*>(hi[0]); }
239 }
240 return mod;
241}
std::vector< G4HadronicInteraction * > & GetHadronicInteractionList()

Referenced by G4HadronElasticPhysicsHP::ConstructProcess(), G4HadronElasticPhysicsLEND::ConstructProcess(), G4HadronElasticPhysicsPHP::ConstructProcess(), and GetNeutronModel().

◆ GetElasticProcess()

G4HadronicProcess * G4HadronElasticPhysics::GetElasticProcess ( const G4ParticleDefinition part) const

◆ GetNeutronModel()

G4HadronElastic * G4HadronElasticPhysics::GetNeutronModel ( ) const

Definition at line 248 of file G4HadronElasticPhysics.cc.

249{
251}
G4HadronElastic * GetElasticModel(const G4ParticleDefinition *part) const
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103

◆ GetNeutronProcess()

G4HadronicProcess * G4HadronElasticPhysics::GetNeutronProcess ( ) const

Definition at line 243 of file G4HadronElasticPhysics.cc.

244{
246}

◆ operator=()

G4HadronElasticPhysics & G4HadronElasticPhysics::operator= ( const G4HadronElasticPhysics right)
delete

The documentation for this class was generated from the following files: