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

#include <G4UnknownDecayPhysics.hh>

+ Inheritance diagram for G4UnknownDecayPhysics:

Public Member Functions

 G4UnknownDecayPhysics (G4int ver=1)
 
 G4UnknownDecayPhysics (const G4String &name, G4int ver=1)
 
 ~G4UnknownDecayPhysics () 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
 
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 42 of file G4UnknownDecayPhysics.hh.

Constructor & Destructor Documentation

◆ G4UnknownDecayPhysics() [1/2]

G4UnknownDecayPhysics::G4UnknownDecayPhysics ( G4int  ver = 1)

Definition at line 47 of file G4UnknownDecayPhysics.cc.

48 : G4VPhysicsConstructor("UnknownDecay"), verbose(ver)
49{
50}

◆ G4UnknownDecayPhysics() [2/2]

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

Definition at line 52 of file G4UnknownDecayPhysics.cc.

53 : G4VPhysicsConstructor(name), verbose(ver)
54{
55}

◆ ~G4UnknownDecayPhysics()

G4UnknownDecayPhysics::~G4UnknownDecayPhysics ( )
override

Definition at line 57 of file G4UnknownDecayPhysics.cc.

58{
59}

Member Function Documentation

◆ ConstructParticle()

void G4UnknownDecayPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 61 of file G4UnknownDecayPhysics.cc.

62{
64}
static G4UnknownParticle * UnknownParticleDefinition()

◆ ConstructProcess()

void G4UnknownDecayPhysics::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 66 of file G4UnknownDecayPhysics.cc.

67{
69
70 // Add Decay Process
71 G4UnknownDecay* fDecayProcess = new G4UnknownDecay();
72 auto myParticleIterator=GetParticleIterator();
73 myParticleIterator->reset();
74 G4ParticleDefinition* particle=0;
75
76 while( (*myParticleIterator)() )
77 {
78 particle = myParticleIterator->value();
79 if( fDecayProcess->IsApplicable(*particle) )
80 {
81 if(verbose > 1) {
82 G4cout << "### Decays for " << particle->GetParticleName() << G4endl;
83 }
84 ph->RegisterProcess(fDecayProcess, particle);
85 }
86 }
87}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
virtual G4bool IsApplicable(const G4ParticleDefinition &) override
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const

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