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

#include <LXeGeneralPhysics.hh>

Inheritance diagram for LXeGeneralPhysics:
G4VPhysicsConstructor

Public Member Functions

 LXeGeneralPhysics (const G4String &name="general")
 
virtual ~LXeGeneralPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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
 

Protected Attributes

G4DecayfDecayProcess
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 

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)
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 42 of file LXeGeneralPhysics.hh.

Constructor & Destructor Documentation

LXeGeneralPhysics::LXeGeneralPhysics ( const G4String name = "general")

Definition at line 40 of file LXeGeneralPhysics.cc.

41  : G4VPhysicsConstructor(name) {}
G4VPhysicsConstructor(const G4String &="")
LXeGeneralPhysics::~LXeGeneralPhysics ( )
virtual

Definition at line 45 of file LXeGeneralPhysics.cc.

References fDecayProcess.

45  {
46  fDecayProcess = NULL;
47 }

Member Function Documentation

void LXeGeneralPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 59 of file LXeGeneralPhysics.cc.

References G4ChargedGeantino::ChargedGeantinoDefinition(), G4Geantino::GeantinoDefinition(), and G4GenericIon::GenericIonDefinition().

60 {
61  // pseudo-particles
64 
66 }
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:82
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4ChargedGeantino * ChargedGeantinoDefinition()
void LXeGeneralPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 70 of file LXeGeneralPhysics.cc.

References G4ProcessManager::AddProcess(), aParticleIterator, fDecayProcess, G4ParticleDefinition::GetProcessManager(), idxAtRest, idxPostStep, G4Decay::IsApplicable(), and G4ProcessManager::SetProcessOrdering().

71 {
72  fDecayProcess = new G4Decay();
73 
74  // Add Decay Process
75  aParticleIterator->reset();
76  while( (*aParticleIterator)() ){
77  G4ParticleDefinition* particle = aParticleIterator->value();
78  G4ProcessManager* pmanager = particle->GetProcessManager();
79  if (fDecayProcess->IsApplicable(*particle)) {
80  pmanager ->AddProcess(fDecayProcess);
81  // set ordering for PostStepDoIt and AtRestDoIt
84  }
85  }
86 }
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition: G4Decay.cc:89
G4ProcessManager * GetProcessManager() const
#define aParticleIterator
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)

Field Documentation

G4Decay* LXeGeneralPhysics::fDecayProcess
protected

Definition at line 60 of file LXeGeneralPhysics.hh.

Referenced by ConstructProcess(), and ~LXeGeneralPhysics().


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