Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4DecayPhysics Class Reference

#include <G4DecayPhysics.hh>

Inheritance diagram for G4DecayPhysics:
G4VPhysicsConstructor

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 ()
 
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)
 
- 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 49 of file G4DecayPhysics.hh.

Constructor & Destructor Documentation

G4DecayPhysics::G4DecayPhysics ( G4int  ver = 1)

Definition at line 63 of file G4DecayPhysics.cc.

64  : G4VPhysicsConstructor("Decay"), verbose(ver)
65 {
66 }
G4VPhysicsConstructor(const G4String &="")
G4DecayPhysics::G4DecayPhysics ( const G4String name,
G4int  ver = 1 
)

Definition at line 68 of file G4DecayPhysics.cc.

69  : G4VPhysicsConstructor(name), verbose(ver)
70 {
71 }
G4VPhysicsConstructor(const G4String &="")
G4DecayPhysics::~G4DecayPhysics ( )
virtual

Definition at line 73 of file G4DecayPhysics.cc.

74 {
75 }

Member Function Documentation

void G4DecayPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 77 of file G4DecayPhysics.cc.

References G4BosonConstructor::ConstructParticle(), G4LeptonConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), G4MesonConstructor::ConstructParticle(), and G4ShortLivedConstructor::ConstructParticle().

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()
void G4DecayPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 100 of file G4DecayPhysics.cc.

References aParticleIterator, G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4PhysicsListHelper::GetPhysicsListHelper(), G4Decay::IsApplicable(), and G4PhysicsListHelper::RegisterProcess().

101 {
102  if(wasActivated) { return; }
103  wasActivated = true;
104 
106 
107  // Add Decay Process
108  fDecayProcess = new G4Decay();
109  aParticleIterator->reset();
110  G4ParticleDefinition* particle=0;
111 
112  while( (*aParticleIterator)() )
113  {
114  particle = aParticleIterator->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 }
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition: G4Decay.cc:89
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
#define aParticleIterator
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
#define G4endl
Definition: G4ios.hh:61
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: