Geant4 10.7.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, G4bool diffraction=false)
 
virtual ~G4HadronHElasticPhysics ()
 
void ConstructParticle () override
 
void ConstructProcess () override
 
void SetDiffraction (G4bool val)
 
- 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
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 

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
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 46 of file G4HadronHElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4HadronHElasticPhysics()

G4HadronHElasticPhysics::G4HadronHElasticPhysics ( G4int  ver = 0,
G4bool  diffraction = false 
)

Definition at line 88 of file G4HadronHElasticPhysics.cc.

89 : G4VPhysicsConstructor( "hElastic_BEST" ), verbose( ver ),
90 fDiffraction(diffraction)
91{
92 if ( verbose > 1 ) {
93 G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
94 << " low-mass diffraction: " << fDiffraction << G4endl;
95 }
96}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const

◆ ~G4HadronHElasticPhysics()

G4HadronHElasticPhysics::~G4HadronHElasticPhysics ( )
virtual

Definition at line 98 of file G4HadronHElasticPhysics.cc.

98{}

Member Function Documentation

◆ ConstructParticle()

void G4HadronHElasticPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 101 of file G4HadronHElasticPhysics.cc.

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

◆ ConstructProcess()

void G4HadronHElasticPhysics::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 114 of file G4HadronHElasticPhysics.cc.

114 {
115
116 const G4double elimitDiffuse = 0.0;
117 const G4double elimitAntiNuc = 100.0*MeV;
118 const G4double delta = 0.1*MeV;
119
120 if ( verbose > 1 ) {
121 G4cout << "### HadronHElasticPhysics::ConstructProcess: lower energy limit for DiffuseElastic : "
122 << elimitDiffuse/GeV << " GeV" << G4endl
123 << " transition energy for anti-nuclei : "
124 << elimitAntiNuc/GeV << " GeV" << G4endl;
125 }
126
128 anuc->SetMinEnergy( elimitAntiNuc );
129 G4CrossSectionElastic* anucxs =
131
132 G4HadronElastic* lhep = new G4HadronElastic();
133 lhep->SetMaxEnergy( elimitAntiNuc + delta );
134
135 G4HadronElastic* lhep0 = new G4HadronElastic();
136
137 // Three instances of Chips elastic model: one used everywhere,
138 // one used below a energy threshold, and one used only for the
139 // hydrogen element.
142 chips2->SetMaxEnergy( elimitAntiNuc + delta );
144 const G4ElementTable* theElementTable = G4Element::GetElementTable();
145 for ( size_t i_ele = 0; i_ele < theElementTable->size(); i_ele++ ) {
146 G4Element* element = (*theElementTable)[ i_ele ];
147 if ( element->GetZ() > 1.0 ) chipsH->DeActivateFor( element );
148 }
149
150 G4NuclNuclDiffuseElastic* diffuseNuclNuclElastic = new G4NuclNuclDiffuseElastic();
151 diffuseNuclNuclElastic->SetMinEnergy( elimitDiffuse );
152
153 G4VCrossSectionDataSet* theComponentGGHadronNucleusData =
155
156 G4VCrossSectionDataSet* theComponentGGNuclNuclData =
158
159 G4LMsdGenerator* diffGen = nullptr;
160 if(fDiffraction) {
161 diffGen = new G4LMsdGenerator("LMsdDiffraction");
162 diffRatio = new G4DiffElasticRatio();
163 G4AutoDelete::Register(diffRatio);
164 }
165 G4HadronElasticProcess* hel = nullptr;
166
167 auto myParticleIterator=GetParticleIterator();
168 myParticleIterator->reset();
169 while( (*myParticleIterator)() ) {
170
171 G4ParticleDefinition* particle = myParticleIterator->value();
172 G4ProcessManager* pmanager = particle->GetProcessManager();
173 G4String pname = particle->GetParticleName();
174
175 if ( pname == "anti_lambda" ||
176 pname == "anti_sigma-" ||
177 pname == "anti_sigma0" ||
178 pname == "anti_sigma+" ||
179 pname == "anti_xi-" ||
180 pname == "anti_xi0" ||
181 pname == "anti_omega-" ||
182 pname == "lambda" ||
183 pname == "sigma-" ||
184 pname == "sigma0" ||
185 pname == "sigma+" ||
186 pname == "xi-" ||
187 pname == "xi0" ||
188 pname == "omega-"
189 ) {
190 hel = new G4HadronElasticProcess();
191 hel->AddDataSet( theComponentGGHadronNucleusData );
192 hel->RegisterMe( chips1 );
193 pmanager->AddDiscreteProcess( hel );
194 if ( verbose > 1 ) {
195 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
196 << " added for " << particle->GetParticleName() << G4endl;
197 }
198
199 } else if ( pname == "proton" ) {
200 hel = new G4HadronElasticProcess();
201 hel->AddDataSet( new G4BGGNucleonElasticXS( particle ) );
202 // To preserve reproducibility, a different instance of
203 // G4DiffuseElastic must be used for each particle type.
204 G4DiffuseElastic* protonDiffuseElastic = new G4DiffuseElastic();
205 protonDiffuseElastic->SetMinEnergy( elimitDiffuse );
206 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
207 hel->RegisterMe( protonDiffuseElastic );
208 pmanager->AddDiscreteProcess( hel );
209 if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
210 if ( verbose > 1 ) {
211 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
212 << " added for " << particle->GetParticleName() << G4endl;
213 }
214
215 } else if ( pname == "neutron" ) {
216 hel = new G4HadronElasticProcess();
217 hel->AddDataSet(new G4NeutronElasticXS() );
218 // To preserve reproducibility, a different instance of
219 // G4DiffuseElastic must be used for each particle type.
220 G4DiffuseElastic* neutronDiffuseElastic = new G4DiffuseElastic();
221 neutronDiffuseElastic->SetMinEnergy( elimitDiffuse );
222 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
223 hel->RegisterMe( neutronDiffuseElastic );
224 pmanager->AddDiscreteProcess( hel );
225 if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
226 if ( verbose > 1 ) {
227 G4cout << "### HadronElasticPhysics: "
228 << hel->GetProcessName()
229 << " added for " << particle->GetParticleName() << G4endl;
230 }
231
232 } else if ( pname == "pi-" || pname == "pi+" ) {
233 hel = new G4HadronElasticProcess();
234 hel->AddDataSet( new G4BGGPionElasticXS( particle ) );
235 // To preserve reproducibility, a different instance of
236 // G4DiffuseElastic must be used for each particle type.
237 G4DiffuseElastic* dElastic = new G4DiffuseElastic();
238 dElastic->SetMinEnergy( elimitDiffuse );
239 hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
240 hel->RegisterMe( dElastic );
241 pmanager->AddDiscreteProcess( hel );
242 if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
243 if ( verbose > 1 ) {
244 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
245 << " added for " << particle->GetParticleName() << G4endl;
246 }
247
248 } else if ( pname == "kaon-" ||
249 pname == "kaon+" ||
250 pname == "kaon0S" ||
251 pname == "kaon0L"
252 ) {
253 hel = new G4HadronElasticProcess();
254 //AR-14Aug2017 : Replaced Chips elastic kaon cross sections with
255 // Grichine's Glauber-Gribov ones. In this way, the
256 // total (elastic + inelastic) kaon cross sections
257 // are consistent with the PDG ones.
258 // For the time being, kept Chips elastic as
259 // final-state model.
260 hel->AddDataSet( theComponentGGHadronNucleusData );
261 hel->RegisterMe( chips1 );
262 pmanager->AddDiscreteProcess( hel );
263 if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
264 if ( verbose > 1 ) {
265 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
266 << " added for " << particle->GetParticleName() << G4endl;
267 }
268
269 } else if(pname == "alpha" ||
270 pname == "deuteron" ||
271 pname == "triton" ||
272 pname == "He3"
273 ) {
274 hel = new G4HadronElasticProcess();
275 hel->AddDataSet(theComponentGGNuclNuclData);
276 hel->RegisterMe(lhep0);
277 pmanager->AddDiscreteProcess(hel);
278 if(verbose > 1) {
279 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
280 << " added for " << particle->GetParticleName() << G4endl;
281 }
282
283 } else if ( pname == "anti_proton" || pname == "anti_neutron" ) {
284 hel = new G4HadronElasticProcess();
285 hel->AddDataSet( anucxs );
286 hel->RegisterMe( chips2 );
287 hel->RegisterMe( anuc );
288 pmanager->AddDiscreteProcess( hel );
289 if ( verbose > 1 ) {
290 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
291 << " added for " << particle->GetParticleName() << G4endl;
292 }
293
294 } else if ( pname == "anti_deuteron" ||
295 pname == "anti_triton" ||
296 pname == "anti_He3" ||
297 pname == "anti_alpha"
298 ) {
299 hel = new G4HadronElasticProcess();
300 hel->AddDataSet( anucxs );
301 hel->RegisterMe( lhep );
302 hel->RegisterMe( anuc );
303 pmanager->AddDiscreteProcess( hel );
304 if ( verbose > 1 ) {
305 G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
306 << " added for " << particle->GetParticleName() << G4endl;
307 }
308 }
309 }
310
311 // Charm and bottom hadrons
312 if ( G4HadronicParameters::Instance()->EnableBCParticles() ) {
314 }
315
316}
std::vector< G4Element * > G4ElementTable
double G4double
Definition: G4Types.hh:83
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:397
G4double GetZ() const
Definition: G4Element.hh:130
static const std::vector< G4int > & GetBCHadrons()
void SetDiffraction(G4HadronicInteraction *, G4VCrossSectionRatio *)
static void BuildElastic(const std::vector< G4int > &particleList)
void DeActivateFor(const G4Material *aMaterial)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:382
void Register(T *inst)
Definition: G4AutoDelete.hh:65

◆ SetDiffraction()

void G4HadronHElasticPhysics::SetDiffraction ( G4bool  val)
inline

Definition at line 63 of file G4HadronHElasticPhysics.hh.

63{fDiffraction = val;};

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