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

#include <G4QElasticPhysics.hh>

+ Inheritance diagram for G4QElasticPhysics:

Public Member Functions

 G4QElasticPhysics (const G4String &name="elastic", G4int ver=1)
 
virtual ~G4QElasticPhysics ()
 
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 48 of file G4QElasticPhysics.hh.

Constructor & Destructor Documentation

◆ G4QElasticPhysics()

G4QElasticPhysics::G4QElasticPhysics ( const G4String name = "elastic",
G4int  ver = 1 
)

Definition at line 54 of file G4QElasticPhysics.cc.

55 : G4VPhysicsConstructor(name), process(0), verbose(ver), wasActivated(false)
56{
57 if(verbose > 1) G4cout << "### QElasticPhysics is initialized" << G4endl;
58 model = 0;
59}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ ~G4QElasticPhysics()

virtual G4QElasticPhysics::~G4QElasticPhysics ( )
inlinevirtual

Definition at line 53 of file G4QElasticPhysics.hh.

53{};

Member Function Documentation

◆ ConstructParticle()

void G4QElasticPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 61 of file G4QElasticPhysics.cc.

62{
63 G4MesonConstructor pMesonConstructor;
64 pMesonConstructor.ConstructParticle();
65
66 G4BaryonConstructor pBaryonConstructor;
67 pBaryonConstructor.ConstructParticle();
68
69 // Construct light ions
70 G4IonConstructor pConstructor;
71 pConstructor.ConstructParticle();
72}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4QElasticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 74 of file G4QElasticPhysics.cc.

75{
76 if(wasActivated) return;
77 wasActivated = true;
78
79 process = new G4QElastic();
80
82 while( (*theParticleIterator)() )
83 {
85 G4String pname = particle->GetParticleName();
86 G4ProcessManager* pmanager = particle->GetProcessManager();
87 if(pname == "anti_neutron" ||
88 pname == "anti_proton" ||
89 pname == "anti_lambda" ||
90 pname == "anti_sigma-" ||
91 pname == "anti_sigma0" ||
92 pname == "anti_sigma+" ||
93 pname == "anti_xi-" ||
94 pname == "anti_xi0" ||
95 pname == "anti_omega-" ||
96 pname == "pi-" ||
97 pname == "pi+" ||
98 pname == "kaon-" ||
99 pname == "kaon+" ||
100 pname == "kaon0S" ||
101 pname == "kaon0L" ||
102 pname == "lambda" ||
103 pname == "sigma-" ||
104 pname == "sigma0" ||
105 pname == "sigma+" ||
106 pname == "xi-" ||
107 pname == "xi0" ||
108 pname == "omega-" )
109 {
110 pmanager->AddDiscreteProcess(process);
111 if(verbose>0) G4cout<<"### G4QElastic process is added for particle="<<pname<<G4endl;
112 }
113 }
114}
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: