/home/cern/BDSIM_new/src/BDSSpecificProcesses.cc

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 9.3.2003
00004    Copyright (c) 2003 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 */
00006 #include "BDSGlobalConstants.hh"
00007 
00008 #include "BDSSpecificProcesses.hh"
00009 #include "globals.hh"
00010 #include "G4ios.hh"
00011 #include <iomanip>   
00012 #include "G4ProcessManager.hh"
00013 #include "G4ParticleDefinition.hh"
00014 #include "G4ParticleTable.hh"
00015 #include "G4Electron.hh"
00016 #include "G4Positron.hh"
00017 #include "G4MuonPlus.hh"
00018 #include "G4MuonMinus.hh"
00019 
00020 
00021 BDSSpecificProcesses::
00022 BDSSpecificProcesses(const G4String& name) : G4VPhysicsConstructor(name) {}
00023 
00024 BDSSpecificProcesses::
00025 ~BDSSpecificProcesses() {}
00026 
00027 void BDSSpecificProcesses::
00028 ConstructParticle()
00029 {
00030   G4Electron::ElectronDefinition();
00031   G4Gamma::GammaDefinition();
00032   G4Positron::PositronDefinition();
00033 
00034   if(BDSGlobals->GetUseMuonPairProduction()||BDSGlobals->GetBDSeBremOn())
00035     {
00036       G4MuonPlus::MuonPlusDefinition();
00037       G4MuonMinus::MuonMinusDefinition();      
00038     }
00039 
00040 
00041 
00042 }
00043 
00044 void BDSSpecificProcesses::ConstructProcess()
00045 {
00046 
00047   //  if(BDSGlobals->GetUseMuonPairProduction())
00048   //  theBDSMuonPairProduction.Build();
00049 
00050   // if(BDSGlobals->GetBDSeBremOn())
00051   //  theBDSEBrem.Build();
00052 
00053 
00054   if(BDSGlobals->GetLaserwireWavelength())
00055     {
00056       G4cout<<" calling BDSLaserWireBuilder.build()"<<G4endl;
00057       theBDSLaserWireBuilder.Build();
00058 
00059     }
00060   // if(BDSGlobals->GetPlanckOn())
00061   //  theBDSPlanckScatter.Build();
00062 
00063   // if(BDSGlobals->GetSynchRadOn())
00064   //  theBDSSynchrotronRadiation.Build();
00065 
00066   //  if(BDSGlobals->GetBDSeBremOn())
00067   //   theBDSeBremsstrahlung.Build();
00068   
00069   //  if(BDSGlobals->GetUseMuonPairProduction())
00070   //   theBDSGammaConversionToMuons.Build();
00071 
00072 }
00073 
00074 
00075 
00076 // 2002 by J.P. Wellisch

Generated on Wed Mar 5 17:25:23 2008 for BDSIM by  doxygen 1.5.3