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

#include <G4DecayPhysics.hh>

+ Inheritance diagram for G4DecayPhysics:

Public Member Functions

 G4DecayPhysics (G4int ver=1)
 
 G4DecayPhysics (const G4String &name, G4int ver=1)
 
 ~G4DecayPhysics () override
 
void ConstructParticle () override
 
void ConstructProcess () override
 
- 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 48 of file G4DecayPhysics.hh.

Constructor & Destructor Documentation

◆ G4DecayPhysics() [1/2]

G4DecayPhysics::G4DecayPhysics ( G4int ver = 1)

Definition at line 68 of file G4DecayPhysics.cc.

69 : G4DecayPhysics("Decay", ver)
70{}
G4DecayPhysics(G4int ver=1)

◆ G4DecayPhysics() [2/2]

G4DecayPhysics::G4DecayPhysics ( const G4String & name,
G4int ver = 1 )

Definition at line 61 of file G4DecayPhysics.cc.

62 : G4VPhysicsConstructor(name), verbose(ver)
63{
66}
@ bDecay
static void InitialiseParameters()
G4VPhysicsConstructor(const G4String &="")

◆ ~G4DecayPhysics()

G4DecayPhysics::~G4DecayPhysics ( )
override

Definition at line 72 of file G4DecayPhysics.cc.

73{}

Member Function Documentation

◆ ConstructParticle()

void G4DecayPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 75 of file G4DecayPhysics.cc.

76{
77
78// G4cout << "G4DecayPhysics::ConstructParticle" << G4endl;
79 G4BosonConstructor pBosonConstructor;
80 pBosonConstructor.ConstructParticle();
81
82 G4LeptonConstructor pLeptonConstructor;
83 pLeptonConstructor.ConstructParticle();
84
85 G4MesonConstructor pMesonConstructor;
86 pMesonConstructor.ConstructParticle();
87
88 G4BaryonConstructor pBaryonConstructor;
89 pBaryonConstructor.ConstructParticle();
90
91 G4IonConstructor pIonConstructor;
92 pIonConstructor.ConstructParticle();
93
94 G4ShortLivedConstructor pShortLivedConstructor;
95 pShortLivedConstructor.ConstructParticle();
96}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4DecayPhysics::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 98 of file G4DecayPhysics.cc.

99{
101
102 // Add Decay Process
103 G4Decay* fDecayProcess = new G4Decay();
104 auto myParticleIterator=GetParticleIterator();
105 myParticleIterator->reset();
106 G4ParticleDefinition* particle=0;
107
108 while( (*myParticleIterator)() )
109 {
110 particle = myParticleIterator->value();
111 if( fDecayProcess->IsApplicable(*particle) )
112 {
113 if(verbose > 1) {
114 G4cout << "### Decays for " << particle->GetParticleName() << G4endl;
115 }
116 ph->RegisterProcess(fDecayProcess, particle);
117 }
118 }
119}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
virtual G4bool IsApplicable(const G4ParticleDefinition &) override
Definition G4Decay.cc:88
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const

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