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

#include <G4HadronHElasticPhysics.hh>

+ Inheritance diagram for G4HadronHElasticPhysics:

Public Member Functions

 G4HadronHElasticPhysics (G4int ver=0)
 
 G4HadronHElasticPhysics (G4int ver, G4bool hp, const G4String &type="")
 
virtual ~G4HadronHElasticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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 45 of file G4HadronHElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4HadronHElasticPhysics() [1/2]

G4HadronHElasticPhysics::G4HadronHElasticPhysics ( G4int  ver = 0)

Definition at line 78 of file G4HadronHElasticPhysics.cc.

79 : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver),
80 wasActivated(false)
81{
82 // if(verbose > 1) {
83 G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
84 << " is obsolete and soon will be removed" << G4endl;
85}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetPhysicsName() const

◆ G4HadronHElasticPhysics() [2/2]

G4HadronHElasticPhysics::G4HadronHElasticPhysics ( G4int  ver,
G4bool  hp,
const G4String type = "" 
)

Definition at line 87 of file G4HadronHElasticPhysics.cc.

89 : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver),
90 wasActivated(false)
91{
92 if(verbose > 1) {
93 G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
94 << G4endl;
95 }
96}

◆ ~G4HadronHElasticPhysics()

G4HadronHElasticPhysics::~G4HadronHElasticPhysics ( )
virtual

Definition at line 98 of file G4HadronHElasticPhysics.cc.

99{}

Member Function Documentation

◆ ConstructParticle()

void G4HadronHElasticPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 101 of file G4HadronHElasticPhysics.cc.

102{
103 // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
104 G4MesonConstructor pMesonConstructor;
105 pMesonConstructor.ConstructParticle();
106
107 G4BaryonConstructor pBaryonConstructor;
108 pBaryonConstructor.ConstructParticle();
109
110 // Construct light ions
111 G4IonConstructor pConstructor;
112 pConstructor.ConstructParticle();
113}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4HadronHElasticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 115 of file G4HadronHElasticPhysics.cc.

116{
117 if(wasActivated) { return; }
118 wasActivated = true;
119
120 G4double elimitPi = 1.0*GeV;
121 G4double elimitAntiNuc = 100*MeV;
122 if(verbose > 1) {
123 G4cout << "### HadronElasticPhysics Construct Processes with the limit for pi "
124 << elimitPi/GeV << " GeV"
125 << " for anti-neuclei "
126 << elimitAntiNuc/GeV << " GeV" << G4endl;
127 }
128
130 anuc->SetMinEnergy(elimitAntiNuc);
131 G4CrossSectionElastic* anucxs =
133
134 G4HadronElastic* lhep0 = new G4HadronElastic();
135 G4HadronElastic* lhep1 = new G4HadronElastic();
136 G4HadronElastic* lhep2 = new G4HadronElastic();
137 lhep1->SetMaxEnergy(elimitPi);
138 lhep2->SetMaxEnergy(elimitAntiNuc);
139
140 G4CHIPSElastic* chipsp = new G4CHIPSElastic();
141 G4HadronElastic* neutronModel = new G4CHIPSElastic();
142
144 he->SetMinEnergy(elimitPi);
145
147 while( (*theParticleIterator)() )
148 {
150 G4ProcessManager* pmanager = particle->GetProcessManager();
151 G4String pname = particle->GetParticleName();
152 if(pname == "anti_lambda" ||
153 pname == "anti_neutron" ||
154 pname == "anti_omega-" ||
155 pname == "anti_sigma-" ||
156 pname == "anti_sigma+" ||
157 pname == "anti_xi-" ||
158 pname == "anti_xi0" ||
159 pname == "lambda" ||
160 pname == "omega-" ||
161 pname == "sigma-" ||
162 pname == "sigma+" ||
163 pname == "xi-" ||
164 pname == "alpha" ||
165 pname == "deuteron" ||
166 pname == "triton"
167 ) {
168
170 hel->RegisterMe(lhep0);
171 pmanager->AddDiscreteProcess(hel);
172 if(verbose > 1) {
173 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
174 << " added for " << particle->GetParticleName() << G4endl;
175 }
176
177 } else if(pname == "proton") {
178
180 //hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
181 hel->AddDataSet(new G4CHIPSElasticXS());
182 hel->RegisterMe(chipsp);
183 pmanager->AddDiscreteProcess(hel);
184 if(verbose > 1) {
185 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
186 << " added for " << particle->GetParticleName() << G4endl;
187 }
188
189 } else if(pname == "neutron") {
190
192 //hel->AddDataSet(new G4NeutronElasticXS());
193 //hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
194 hel->AddDataSet(new G4CHIPSElasticXS());
195 hel->RegisterMe(neutronModel);
196 pmanager->AddDiscreteProcess(hel);
197 if(verbose > 1) {
198 G4cout << "### HadronElasticPhysics: "
199 << hel->GetProcessName()
200 << " added for " << particle->GetParticleName() << G4endl;
201 }
202
203 } else if (pname == "pi+" || pname == "pi-") {
204
206 hel->AddDataSet(new G4CHIPSElasticXS());
207 //hel->AddDataSet(new G4BGGPionElasticXS(particle));
208 hel->RegisterMe(lhep1);
209 hel->RegisterMe(he);
210 pmanager->AddDiscreteProcess(hel);
211 if(verbose > 1) {
212 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
213 << " added for " << particle->GetParticleName() << G4endl;
214 }
215
216 } else if(pname == "kaon-" ||
217 pname == "kaon+" ||
218 pname == "kaon0S" ||
219 pname == "kaon0L"
220 ) {
221
223 hel->RegisterMe(lhep0);
224 hel->AddDataSet(new G4CHIPSElasticXS());
225 pmanager->AddDiscreteProcess(hel);
226 if(verbose > 1) {
227 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
228 << " added for " << particle->GetParticleName() << G4endl;
229 }
230
231 } else if(
232 pname == "anti_proton" ||
233 pname == "anti_alpha" ||
234 pname == "anti_deuteron" ||
235 pname == "anti_triton" ||
236 pname == "anti_He3" ) {
237
239 hel->AddDataSet(anucxs);
240 hel->RegisterMe(lhep2);
241 hel->RegisterMe(anuc);
242 pmanager->AddDiscreteProcess(hel);
243 }
244 }
245}
double G4double
Definition: G4Types.hh:64
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
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

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