Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UnknownDecayPhysics Class Reference

#include <G4UnknownDecayPhysics.hh>

Inheritance diagram for G4UnknownDecayPhysics:
Collaboration diagram for G4UnknownDecayPhysics:

Public Member Functions

 G4UnknownDecayPhysics (G4int ver=1)
 
 G4UnknownDecayPhysics (const G4String &name, G4int ver=1)
 
virtual ~G4UnknownDecayPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
virtual G4UnknownDecayGetDecayProcess ()
 
- 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- 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 45 of file G4UnknownDecayPhysics.hh.

Constructor & Destructor Documentation

G4UnknownDecayPhysics::G4UnknownDecayPhysics ( G4int  ver = 1)

Definition at line 50 of file G4UnknownDecayPhysics.cc.

51  : G4VPhysicsConstructor("UnknownDecay"), verbose(ver)
52 {
53 }
G4VPhysicsConstructor(const G4String &="")
G4UnknownDecayPhysics::G4UnknownDecayPhysics ( const G4String name,
G4int  ver = 1 
)

Definition at line 55 of file G4UnknownDecayPhysics.cc.

56  : G4VPhysicsConstructor(name), verbose(ver)
57 {
58 }
G4VPhysicsConstructor(const G4String &="")
G4UnknownDecayPhysics::~G4UnknownDecayPhysics ( )
virtual

Definition at line 60 of file G4UnknownDecayPhysics.cc.

61 {
62 }

Member Function Documentation

void G4UnknownDecayPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 64 of file G4UnknownDecayPhysics.cc.

65 {
67 }
static G4UnknownParticle * UnknownParticleDefinition()

Here is the call graph for this function:

void G4UnknownDecayPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 69 of file G4UnknownDecayPhysics.cc.

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

Here is the call graph for this function:

virtual G4UnknownDecay* G4UnknownDecayPhysics::GetDecayProcess ( )
inlinevirtual

Definition at line 62 of file G4UnknownDecayPhysics.hh.

62 { return fDecayProcess; }

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