Geant4 9.6.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)
 
virtual ~G4DecayPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
virtual G4DecayGetDecayProcess ()
 
- 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 49 of file G4DecayPhysics.hh.

Constructor & Destructor Documentation

◆ G4DecayPhysics() [1/2]

G4DecayPhysics::G4DecayPhysics ( G4int  ver = 1)

Definition at line 60 of file G4DecayPhysics.cc.

61 : G4VPhysicsConstructor("Decay"), verbose(ver), wasActivated(false)
62{
63 fDecayProcess = 0;
64}

◆ G4DecayPhysics() [2/2]

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

Definition at line 66 of file G4DecayPhysics.cc.

67 : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
68{
69 fDecayProcess = 0;
70}

◆ ~G4DecayPhysics()

G4DecayPhysics::~G4DecayPhysics ( )
virtual

Definition at line 72 of file G4DecayPhysics.cc.

73{
74 delete fDecayProcess;
75}

Member Function Documentation

◆ ConstructParticle()

void G4DecayPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 77 of file G4DecayPhysics.cc.

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

◆ ConstructProcess()

void G4DecayPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 100 of file G4DecayPhysics.cc.

101{
102 if(wasActivated) { return; }
103 wasActivated = true;
104
106
107 // Add Decay Process
108 fDecayProcess = new G4Decay();
110 G4ParticleDefinition* particle=0;
111
112 while( (*theParticleIterator)() )
113 {
114 particle = theParticleIterator->value();
115 if( fDecayProcess->IsApplicable(*particle) )
116 {
117 if(verbose > 1) {
118 G4cout << "### Decays for " << particle->GetParticleName() << G4endl;
119 }
120 ph->RegisterProcess(fDecayProcess, particle);
121 }
122 }
123}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition: G4Decay.cc:89
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
G4ParticleTable::G4PTblDicIterator * theParticleIterator

◆ GetDecayProcess()

virtual G4Decay * G4DecayPhysics::GetDecayProcess ( )
inlinevirtual

Definition at line 66 of file G4DecayPhysics.hh.

66{ return fDecayProcess; }

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