Geant4 10.7.0
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 ()
 
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 48 of file G4DecayPhysics.hh.

Constructor & Destructor Documentation

◆ G4DecayPhysics() [1/2]

G4DecayPhysics::G4DecayPhysics ( G4int  ver = 1)

Definition at line 60 of file G4DecayPhysics.cc.

◆ G4DecayPhysics() [2/2]

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

Definition at line 66 of file G4DecayPhysics.cc.

67 : G4VPhysicsConstructor(name), verbose(ver)
68{
70}

◆ ~G4DecayPhysics()

G4DecayPhysics::~G4DecayPhysics ( )
override

Definition at line 72 of file G4DecayPhysics.cc.

73{
74}

Member Function Documentation

◆ ConstructParticle()

void G4DecayPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 76 of file G4DecayPhysics.cc.

77{
78
79// G4cout << "G4DecayPhysics::ConstructParticle" << G4endl;
80 G4BosonConstructor pBosonConstructor;
81 pBosonConstructor.ConstructParticle();
82
83 G4LeptonConstructor pLeptonConstructor;
84 pLeptonConstructor.ConstructParticle();
85
86 G4MesonConstructor pMesonConstructor;
87 pMesonConstructor.ConstructParticle();
88
89 G4BaryonConstructor pBaryonConstructor;
90 pBaryonConstructor.ConstructParticle();
91
92 G4IonConstructor pIonConstructor;
93 pIonConstructor.ConstructParticle();
94
95 G4ShortLivedConstructor pShortLivedConstructor;
96 pShortLivedConstructor.ConstructParticle();
97}
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 99 of file G4DecayPhysics.cc.

100{
102
103 // Add Decay Process
104 G4Decay* fDecayProcess = new G4Decay();
105 auto myParticleIterator=GetParticleIterator();
106 myParticleIterator->reset();
107 G4ParticleDefinition* particle=0;
108
109 while( (*myParticleIterator)() )
110 {
111 particle = myParticleIterator->value();
112 if( fDecayProcess->IsApplicable(*particle) )
113 {
114 if(verbose > 1) {
115 G4cout << "### Decays for " << particle->GetParticleName() << G4endl;
116 }
117 ph->RegisterProcess(fDecayProcess, particle);
118 }
119 }
120}
#define G4endl
Definition: G4ios.hh:57
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: