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

#include <G4HadronQElasticPhysics.hh>

+ Inheritance diagram for G4HadronQElasticPhysics:

Public Member Functions

 G4HadronQElasticPhysics (G4int ver=1)
 
 G4HadronQElasticPhysics (const G4String &name, G4int ver)
 
virtual ~G4HadronQElasticPhysics ()
 
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 G4HadronQElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4HadronQElasticPhysics() [1/2]

G4HadronQElasticPhysics::G4HadronQElasticPhysics ( G4int  ver = 1)

Definition at line 69 of file G4HadronQElasticPhysics.cc.

70 : G4VPhysicsConstructor("hElasticCHIPS_LHEP"), verbose(ver),
71 wasActivated(false)
72{
73 if(verbose > 1) {
74 G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName()
75 << G4endl;
76 }
77}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetPhysicsName() const

◆ G4HadronQElasticPhysics() [2/2]

G4HadronQElasticPhysics::G4HadronQElasticPhysics ( const G4String name,
G4int  ver 
)

Definition at line 79 of file G4HadronQElasticPhysics.cc.

80 : G4VPhysicsConstructor("hElasticCHIPS_LHEP"), verbose(ver),
81 wasActivated(false)
82{
83 if(verbose > 1) {
84 G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName()
85 << G4endl;
86 }
87}

◆ ~G4HadronQElasticPhysics()

G4HadronQElasticPhysics::~G4HadronQElasticPhysics ( )
virtual

Definition at line 89 of file G4HadronQElasticPhysics.cc.

90{}

Member Function Documentation

◆ ConstructParticle()

void G4HadronQElasticPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 92 of file G4HadronQElasticPhysics.cc.

93{
94 G4MesonConstructor pMesonConstructor;
95 pMesonConstructor.ConstructParticle();
96
97 G4BaryonConstructor pBaryonConstructor;
98 pBaryonConstructor.ConstructParticle();
99
100 // Construct light ions
101 G4IonConstructor pConstructor;
102 pConstructor.ConstructParticle();
103}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4HadronQElasticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 105 of file G4HadronQElasticPhysics.cc.

106{
107 if(wasActivated) { return; }
108 wasActivated = true;
109
110 if(verbose > 1) {
111 G4cout << "### HadronQElasticPhysics::ConstructProcess" << G4endl;
112 }
113
114 G4HadronElastic* lhep0 = new G4HadronElastic();
115 G4HadronElastic* lhep1 = new G4HadronElastic();
116 G4double elimitAntiNuc = 100*CLHEP::MeV;
117 lhep1->SetMaxEnergy(elimitAntiNuc);
119 anuc->SetMinEnergy(elimitAntiNuc);
120 G4CrossSectionElastic* anucxs =
122
124 while( (*theParticleIterator)() )
125 {
127 G4ProcessManager* pmanager = particle->GetProcessManager();
128 G4String pname = particle->GetParticleName();
129 if(pname == "anti_lambda" ||
130 pname == "anti_neutron" ||
131 pname == "anti_omega-" ||
132 pname == "anti_sigma-" ||
133 pname == "anti_sigma+" ||
134 pname == "anti_xi-" ||
135 pname == "anti_xi0" ||
136 pname == "kaon-" ||
137 pname == "kaon+" ||
138 pname == "kaon0S" ||
139 pname == "kaon0L" ||
140 pname == "lambda" ||
141 pname == "omega-" ||
142 pname == "pi-" ||
143 pname == "pi+" ||
144 pname == "sigma-" ||
145 pname == "sigma+" ||
146 pname == "xi-" ||
147 pname == "alpha" ||
148 pname == "deuteron" ||
149 pname == "triton"
150 ) {
151
153 hel->RegisterMe(lhep0);
154 pmanager->AddDiscreteProcess(hel);
155
156 } else if(pname == "neutron" || pname == "proton") {
157
158 G4QElastic* process = new G4QElastic();
159 pmanager->AddDiscreteProcess(process);
160
161 if(verbose > 0)
162 G4cout << "### QElastic added for "
163 << particle->GetParticleName() << G4endl;
164
165 } else if(
166 pname == "anti_proton" ||
167 pname == "anti_alpha" ||
168 pname == "anti_deuteron" ||
169 pname == "anti_triton" ||
170 pname == "anti_He3"
171 ) {
172
174 hel->AddDataSet(anucxs);
175 hel->RegisterMe(lhep1);
176 hel->RegisterMe(anuc);
177 pmanager->AddDiscreteProcess(hel);
178
179 }
180
181 }
182}
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

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