Geant4 9.6.0
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=0)
 
 G4HadronElasticPhysics (const G4String &name, G4int ver=0, G4bool hp=false, const G4String &type="")
 
virtual ~G4HadronElasticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
G4HadronElasticGetNeutronModel ()
 
G4HadronicProcessGetNeutronProcess ()
 
- 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 52 of file G4HadronElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4HadronElasticPhysics() [1/2]

G4HadronElasticPhysics::G4HadronElasticPhysics ( G4int  ver = 0)

Definition at line 84 of file G4HadronElasticPhysics.cc.

85 : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver),
86 wasActivated(false)
87{
88 if(verbose > 1) {
89 G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
90 << G4endl;
91 }
92 neutronProcess = 0;
93 neutronModel = 0;
94}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetPhysicsName() const

◆ G4HadronElasticPhysics() [2/2]

G4HadronElasticPhysics::G4HadronElasticPhysics ( const G4String name,
G4int  ver = 0,
G4bool  hp = false,
const G4String type = "" 
)

Definition at line 96 of file G4HadronElasticPhysics.cc.

98 : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver),
99 wasActivated(false)
100{
101 if(verbose > 1) {
102 G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
103 << G4endl;
104 }
105 neutronProcess = 0;
106 neutronModel = 0;
107}

◆ ~G4HadronElasticPhysics()

G4HadronElasticPhysics::~G4HadronElasticPhysics ( )
virtual

Definition at line 109 of file G4HadronElasticPhysics.cc.

110{}

Member Function Documentation

◆ ConstructParticle()

void G4HadronElasticPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 112 of file G4HadronElasticPhysics.cc.

113{
114 // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
115 G4MesonConstructor pMesonConstructor;
116 pMesonConstructor.ConstructParticle();
117
118 G4BaryonConstructor pBaryonConstructor;
119 pBaryonConstructor.ConstructParticle();
120
121 G4IonConstructor pConstructor;
122 pConstructor.ConstructParticle();
123}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

Referenced by G4HadronElasticPhysicsHP::ConstructParticle(), G4HadronElasticPhysicsLEND::ConstructParticle(), and G4HadronElasticPhysicsXS::ConstructParticle().

◆ ConstructProcess()

void G4HadronElasticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 125 of file G4HadronElasticPhysics.cc.

126{
127 if(wasActivated) { return; }
128 wasActivated = true;
129
130 G4double elimitPi = 1.0*GeV;
131 G4double elimitAntiNuc = 100*MeV;
132 if(verbose > 1) {
133 G4cout << "### HadronElasticPhysics Construct Processes with the limit for pi "
134 << elimitPi/GeV << " GeV"
135 << " for anti-neuclei "
136 << elimitAntiNuc/GeV << " GeV" << G4endl;
137 }
138
140 anuc->SetMinEnergy(elimitAntiNuc);
141 G4CrossSectionElastic* anucxs =
143
144 G4HadronElastic* lhep0 = new G4HadronElastic();
145 G4HadronElastic* lhep1 = new G4HadronElastic();
146 G4HadronElastic* lhep2 = new G4HadronElastic();
147 lhep1->SetMaxEnergy(elimitPi);
148 lhep2->SetMaxEnergy(elimitAntiNuc);
149
150 G4CHIPSElastic* chipsp = new G4CHIPSElastic();
151 neutronModel = new G4CHIPSElastic();
152
154 he->SetMinEnergy(elimitPi);
155
157 while( (*theParticleIterator)() )
158 {
160 G4ProcessManager* pmanager = particle->GetProcessManager();
161 G4String pname = particle->GetParticleName();
162 if(pname == "anti_lambda" ||
163 pname == "anti_neutron" ||
164 pname == "anti_omega-" ||
165 pname == "anti_sigma-" ||
166 pname == "anti_sigma+" ||
167 pname == "anti_xi-" ||
168 pname == "anti_xi0" ||
169 pname == "lambda" ||
170 pname == "omega-" ||
171 pname == "sigma-" ||
172 pname == "sigma+" ||
173 pname == "xi-" ||
174 pname == "alpha" ||
175 pname == "deuteron" ||
176 pname == "triton"
177 ) {
178
180 hel->RegisterMe(lhep0);
181 pmanager->AddDiscreteProcess(hel);
182 if(verbose > 1) {
183 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
184 << " added for " << particle->GetParticleName() << G4endl;
185 }
186
187 } else if(pname == "proton") {
188
190 //hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
191
192 // hel->AddDataSet(new G4ChipsProtonElasticXS());
194
195 hel->RegisterMe(chipsp);
196 pmanager->AddDiscreteProcess(hel);
197 if(verbose > 1) {
198 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
199 << " added for " << particle->GetParticleName() << G4endl;
200 }
201
202 } else if(pname == "neutron") {
203
204 neutronProcess = new G4HadronElasticProcess();
205 //neutronProcess->AddDataSet(new G4BGGNucleonElasticXS(particle));
207 neutronProcess->RegisterMe(neutronModel);
208 pmanager->AddDiscreteProcess(neutronProcess);
209 if(verbose > 1) {
210 G4cout << "### HadronElasticPhysics: "
211 << neutronProcess->GetProcessName()
212 << " added for " << particle->GetParticleName() << G4endl;
213 }
214
215 } else if (pname == "pi+" || pname == "pi-") {
216
218 hel->AddDataSet(new G4BGGPionElasticXS(particle));
219 hel->RegisterMe(lhep1);
220 hel->RegisterMe(he);
221 pmanager->AddDiscreteProcess(hel);
222 if(verbose > 1) {
223 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
224 << " added for " << particle->GetParticleName() << G4endl;
225 }
226
227 } else if(pname == "kaon-" ||
228 pname == "kaon+" ||
229 pname == "kaon0S" ||
230 pname == "kaon0L"
231 ) {
232
234 hel->RegisterMe(lhep0);
235 pmanager->AddDiscreteProcess(hel);
236 if(verbose > 1) {
237 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
238 << " added for " << particle->GetParticleName() << G4endl;
239 }
240
241 } else if(
242 pname == "anti_proton" ||
243 pname == "anti_alpha" ||
244 pname == "anti_deuteron" ||
245 pname == "anti_triton" ||
246 pname == "anti_He3" ) {
247
249 hel->AddDataSet(anucxs);
250 hel->RegisterMe(lhep2);
251 hel->RegisterMe(anuc);
252 pmanager->AddDiscreteProcess(hel);
253 }
254 }
255}
double G4double
Definition: G4Types.hh:64
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
static const char * Default_Name()
static const char * Default_Name()
static G4CrossSectionDataSetRegistry * Instance()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ParticleTable::G4PTblDicIterator * theParticleIterator
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379

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

◆ GetNeutronModel()

G4HadronElastic * G4HadronElasticPhysics::GetNeutronModel ( )
inline

Definition at line 92 of file G4HadronElasticPhysics.hh.

93{
94 return neutronModel;
95}

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

◆ GetNeutronProcess()

G4HadronicProcess * G4HadronElasticPhysics::GetNeutronProcess ( )
inline

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