/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/G4Svc/G4Svc-00-01-52/Physics_src/ExN04GeneralPhysics.cxx

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * DISCLAIMER                                                       *
00004 // *                                                                  *
00005 // * The following disclaimer summarizes all the specific disclaimers *
00006 // * of contributors to this software. The specific disclaimers,which *
00007 // * govern, are listed with their locations in:                      *
00008 // *   http://cern.ch/geant4/license                                  *
00009 // *                                                                  *
00010 // * Neither the authors of this software system, nor their employing *
00011 // * institutes,nor the agencies providing financial support for this *
00012 // * work  make  any representation or  warranty, express or implied, *
00013 // * regarding  this  software system or assume any liability for its *
00014 // * use.                                                             *
00015 // *                                                                  *
00016 // * This  code  implementation is the  intellectual property  of the *
00017 // * GEANT4 collaboration.                                            *
00018 // * By copying,  distributing  or modifying the Program (or any work *
00019 // * based  on  the Program)  you indicate  your  acceptance of  this *
00020 // * statement, and all its terms.                                    *
00021 // ********************************************************************
00022 //
00023 //
00024 // $Id: ExN04GeneralPhysics.cxx,v 1.1.1.1 2004/09/28 05:16:53 liwd Exp $
00025 // GEANT4 tag $Name: G4Svc-00-01-52 $
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 // Bosons
00046 #include "G4ChargedGeantino.hh"
00047 #include "G4Geantino.hh"
00048 
00049 void ExN04GeneralPhysics::ConstructParticle()
00050 {
00051   // pseudo-particles
00052   G4Geantino::GeantinoDefinition();
00053   G4ChargedGeantino::ChargedGeantinoDefinition();  
00054 }
00055 
00056 void ExN04GeneralPhysics::ConstructProcess()
00057 {
00058   // Add Decay Process
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       // set ordering for PostStepDoIt and AtRestDoIt
00066       pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
00067       pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
00068     }
00069   }
00070 }
00071 
00072 

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