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

#include <G4IonElasticPhysics.hh>

+ Inheritance diagram for G4IonElasticPhysics:

Public Member Functions

 G4IonElasticPhysics (G4int ver=1)
 
virtual ~G4IonElasticPhysics ()
 
void ConstructParticle () override
 
void ConstructProcess () override
 
 G4IonElasticPhysics (G4IonElasticPhysics &)=delete
 
G4IonElasticPhysicsoperator= (const G4IonElasticPhysics &right)=delete
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
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 44 of file G4IonElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4IonElasticPhysics() [1/2]

G4IonElasticPhysics::G4IonElasticPhysics ( G4int ver = 1)
explicit

Definition at line 57 of file G4IonElasticPhysics.cc.

58 : G4VPhysicsConstructor("IonElasticPhysics")
59{
60 // because it is an addition, the type of this constructor is 0
62 if(ver > 1) {
63 G4cout << "### G4IonElasticPhysics: " << GetPhysicsName()
64 << G4endl;
65 }
66}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)
G4VPhysicsConstructor(const G4String &="")
const G4String & GetPhysicsName() const

◆ ~G4IonElasticPhysics()

G4IonElasticPhysics::~G4IonElasticPhysics ( )
virtual

Definition at line 68 of file G4IonElasticPhysics.cc.

69{}

◆ G4IonElasticPhysics() [2/2]

G4IonElasticPhysics::G4IonElasticPhysics ( G4IonElasticPhysics & )
delete

Member Function Documentation

◆ ConstructParticle()

void G4IonElasticPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 71 of file G4IonElasticPhysics.cc.

72{
74}
static G4GenericIon * GenericIon()

◆ ConstructProcess()

void G4IonElasticPhysics::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 76 of file G4IonElasticPhysics.cc.

77{
78 // Elastic process for other ions
79 G4HadronElasticProcess* ionElasticProcess = new G4HadronElasticProcess("ionElastic");
80
81 //Model
83 ionElastic->SetMinEnergy(0.0);
84 ionElasticProcess->RegisterMe(ionElastic);
85
86 //Cross Section
88 G4VCrossSectionDataSet* ionElasticXSDataSet = new G4CrossSectionElastic(ionElasticXS);
89 ionElasticXSDataSet->SetMinKinEnergy(0.0);
90 ionElasticProcess->AddDataSet(ionElasticXSDataSet);
91
93 ionManager->AddDiscreteProcess( ionElasticProcess );
94
96 G4cout << "### IonElasticPhysics: " << ionElasticProcess->GetProcessName()
97 << " added for " << G4GenericIon::GenericIon()->GetParticleName()
98 << G4endl;
99 }
100}
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetMinKinEnergy(G4double value)
const G4String & GetProcessName() const

◆ operator=()

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

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