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

#include <G4HadronElasticPhysicsLHEP.hh>

+ Inheritance diagram for G4HadronElasticPhysicsLHEP:

Public Member Functions

 G4HadronElasticPhysicsLHEP (G4int ver=1)
 
virtual ~G4HadronElasticPhysicsLHEP ()
 
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 47 of file G4HadronElasticPhysicsLHEP.hh.

Constructor & Destructor Documentation

◆ G4HadronElasticPhysicsLHEP()

G4HadronElasticPhysicsLHEP::G4HadronElasticPhysicsLHEP ( G4int  ver = 1)

Definition at line 61 of file G4HadronElasticPhysicsLHEP.cc.

62 : G4VPhysicsConstructor("hElasticLHEP"), verbose(ver),
63 wasActivated(false)
64{
65 if(verbose > 1) {
66 G4cout << "### G4HadronElasticPhysicsLHEP: " << GetPhysicsName()
67 << G4endl;
68 }
69}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetPhysicsName() const

◆ ~G4HadronElasticPhysicsLHEP()

G4HadronElasticPhysicsLHEP::~G4HadronElasticPhysicsLHEP ( )
virtual

Definition at line 71 of file G4HadronElasticPhysicsLHEP.cc.

72{}

Member Function Documentation

◆ ConstructParticle()

void G4HadronElasticPhysicsLHEP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 74 of file G4HadronElasticPhysicsLHEP.cc.

75{
76// G4cout << "G4HadronElasticPhysicsLHEP::ConstructParticle" << G4endl;
77 G4MesonConstructor pMesonConstructor;
78 pMesonConstructor.ConstructParticle();
79
80 G4BaryonConstructor pBaryonConstructor;
81 pBaryonConstructor.ConstructParticle();
82
83 // Construct light ions
84 G4IonConstructor pConstructor;
85 pConstructor.ConstructParticle();
86}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4HadronElasticPhysicsLHEP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 88 of file G4HadronElasticPhysicsLHEP.cc.

89{
90 if(wasActivated) return;
91 wasActivated = true;
92
93 if(verbose > 1) {
94 G4cout << "### HadronElasticPhysicsLHEP Construct Processes"
95 << G4endl;
96 }
97 G4HadronicProcess* hel = 0;
98 G4HadronicInteraction* model = new G4LElastic();
99
101 while( (*theParticleIterator)() )
102 {
104 G4ProcessManager* pmanager = particle->GetProcessManager();
105 G4String pname = particle->GetParticleName();
106 if(pname == "anti_lambda" ||
107 pname == "anti_neutron" ||
108 pname == "anti_omega-" ||
109 pname == "anti_proton" ||
110 pname == "anti_sigma-" ||
111 pname == "anti_sigma+" ||
112 pname == "anti_xi-" ||
113 pname == "anti_xi0" ||
114 pname == "kaon-" ||
115 pname == "kaon+" ||
116 pname == "kaon0S" ||
117 pname == "kaon0L" ||
118 pname == "lambda" ||
119 pname == "omega-" ||
120 pname == "sigma-" ||
121 pname == "sigma+" ||
122 pname == "xi-" ||
123 pname == "neutron" ||
124 pname == "proton" ||
125 pname == "pi+" ||
126 pname == "pi-" ||
127 pname == "alpha" ||
128 pname == "deuteron" ||
129 pname == "triton") {
130
131 hel = new G4HadronElasticProcess();
132 hel->RegisterMe(model);
133 pmanager->AddDiscreteProcess(hel);
134 if(verbose > 1) {
135 G4cout << "### HadronElasticPhysicsLHEP added for "
136 << particle->GetParticleName() << G4endl;
137 }
138 }
139 }
140}
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: