00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "Physics/ExN04GeneralPhysics.hh"
00030
00031 #include "globals.hh"
00032 #include "G4ios.hh"
00033
00034 ExN04GeneralPhysics::ExN04GeneralPhysics(const G4String& name)
00035 : G4VPhysicsConstructor(name)
00036 {
00037 }
00038
00039 ExN04GeneralPhysics::~ExN04GeneralPhysics()
00040 {
00041 }
00042
00043 #include "G4ParticleDefinition.hh"
00044 #include "G4ProcessManager.hh"
00045
00046 #include "G4ChargedGeantino.hh"
00047 #include "G4Geantino.hh"
00048
00049 void ExN04GeneralPhysics::ConstructParticle()
00050 {
00051
00052 G4Geantino::GeantinoDefinition();
00053 G4ChargedGeantino::ChargedGeantinoDefinition();
00054 }
00055
00056 void ExN04GeneralPhysics::ConstructProcess()
00057 {
00058
00059 theParticleIterator->reset();
00060 while( (*theParticleIterator)() ){
00061 G4ParticleDefinition* particle = theParticleIterator->value();
00062 G4ProcessManager* pmanager = particle->GetProcessManager();
00063 if (fDecayProcess.IsApplicable(*particle)) {
00064 pmanager ->AddProcess(&fDecayProcess);
00065
00066 pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
00067 pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
00068 }
00069 }
00070 }
00071
00072