#include <BesGeneralPhysics.hh>
Public Member Functions | |
BesGeneralPhysics (const G4String &name="general") | |
virtual | ~BesGeneralPhysics () |
virtual void | ConstructParticle () |
virtual void | ConstructProcess () |
Protected Attributes | |
G4Decay | fDecayProcess |
Definition at line 12 of file BesGeneralPhysics.hh.
BesGeneralPhysics::BesGeneralPhysics | ( | const G4String & | name = "general" |
) |
BesGeneralPhysics::~BesGeneralPhysics | ( | ) | [virtual] |
void BesGeneralPhysics::ConstructParticle | ( | ) | [virtual] |
Definition at line 22 of file BesGeneralPhysics.cc.
00023 { 00024 // pseudo-particles 00025 G4Geantino::GeantinoDefinition(); 00026 G4ChargedGeantino::ChargedGeantinoDefinition(); 00027 }
void BesGeneralPhysics::ConstructProcess | ( | ) | [virtual] |
Definition at line 29 of file BesGeneralPhysics.cc.
References fDecayProcess.
00030 { 00031 theParticleIterator->reset(); 00032 while( (*theParticleIterator)() ){ 00033 G4ParticleDefinition* particle = theParticleIterator->value(); 00034 G4ProcessManager* pmanager = particle->GetProcessManager(); 00035 if (fDecayProcess.IsApplicable(*particle)) { 00036 pmanager ->AddProcess(&fDecayProcess); 00037 // set ordering for PostStepDoIt and AtRestDoIt 00038 pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep); 00039 pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest); 00040 } 00041 } 00042 }
G4Decay BesGeneralPhysics::fDecayProcess [protected] |