/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/PhySim/PhySim-00-00-10/src/BesGeneralPhysics.cc

Go to the documentation of this file.
00001 
00002 #include "BesGeneralPhysics.hh"
00003 #include "globals.hh"
00004 #include "G4ios.hh"
00005 #include <iomanip>   
00006 
00007 BesGeneralPhysics::BesGeneralPhysics(const G4String& name)
00008                      :  G4VPhysicsConstructor(name)
00009 {
00010 }
00011 
00012 BesGeneralPhysics::~BesGeneralPhysics()
00013 {
00014 }
00015 
00016 #include "G4ParticleDefinition.hh"
00017 #include "G4ProcessManager.hh"
00018 // Bosons
00019 #include "G4ChargedGeantino.hh"
00020 #include "G4Geantino.hh"
00021 
00022 void BesGeneralPhysics::ConstructParticle()
00023 {
00024   // pseudo-particles
00025   G4Geantino::GeantinoDefinition();
00026   G4ChargedGeantino::ChargedGeantinoDefinition();  
00027 }
00028 
00029 void BesGeneralPhysics::ConstructProcess()
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 }
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 

Generated on Tue Nov 29 23:14:29 2016 for BOSS_7.0.2 by  doxygen 1.4.7