G4QEmExtraPhysics.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 //---------------------------------------------------------------------------
00029 //
00030 // ClassName:   G4QEmExtraPhysics
00031 //
00032 // Author: 23 May 2007 V. Ivanchenko
00033 //
00034 // Modified: 19 Nov 2009 M.Kosov: G4QInelastic instead of G4QCollision
00035 //
00036 //----------------------------------------------------------------------------
00037 //
00038 
00039 #include "G4QEmExtraPhysics.hh"
00040 #include "G4QInelastic.hh"
00041 
00042 #include "G4ParticleDefinition.hh"
00043 #include "G4ProcessManager.hh"
00044 
00045 #include "G4LeptonConstructor.hh"
00046 #include "G4MuonMinus.hh"
00047 #include "G4MuonPlus.hh"
00048 #include "G4Electron.hh"
00049 #include "G4Positron.hh"
00050 #include "G4Gamma.hh"
00051 #include "G4HadronicDeprecate.hh"
00052 
00053 
00054 G4QEmExtraPhysics::G4QEmExtraPhysics(G4int ver)
00055   :  G4VPhysicsConstructor("QEmExtra"), hProcess(0), verbose(ver), wasActivated(false) 
00056 {
00057   G4HadronicDeprecate("G4QEmExtraPhysics");
00058   if(verbose > 1) G4cout << "### G4QEmExtraPhysics" << G4endl;
00059 }
00060 
00061 G4QEmExtraPhysics::~G4QEmExtraPhysics()
00062 {
00063   delete hProcess;
00064 }
00065 
00066 void G4QEmExtraPhysics::ConstructParticle()
00067 {
00068 // G4cout << "G4QEmExtraPhysics::ConstructParticle" << G4endl;
00069   G4LeptonConstructor pLeptonConstructor;
00070   pLeptonConstructor.ConstructParticle();
00071 }
00072 
00073 void G4QEmExtraPhysics::ConstructProcess()
00074 {
00075   if(verbose > 1) G4cout << "### G4QEmExtraPhysics::ConstructProcess " 
00076                          << wasActivated << G4endl;
00077   if(wasActivated) return;
00078   wasActivated = true;
00079 
00080   hProcess = new G4QInelastic();
00081 
00082   G4ParticleDefinition* particle = G4Gamma::Gamma();
00083   G4ProcessManager* pmanager = particle->GetProcessManager();
00084   pmanager->AddDiscreteProcess(hProcess);
00085 
00086   particle = G4Electron::Electron();
00087   pmanager = particle->GetProcessManager();
00088   pmanager->AddDiscreteProcess(hProcess);
00089   
00090   particle = G4Positron::Positron();
00091   pmanager = particle->GetProcessManager();
00092   pmanager->AddDiscreteProcess(hProcess);
00093 
00094   particle = G4MuonMinus::MuonMinus();
00095   pmanager = particle->GetProcessManager();
00096   pmanager->AddDiscreteProcess(hProcess);
00097 
00098   particle = G4MuonPlus::MuonPlus();
00099   pmanager = particle->GetProcessManager();
00100   pmanager->AddDiscreteProcess(hProcess);
00101   
00102 }
00103 
00104 

Generated on Mon May 27 17:49:32 2013 for Geant4 by  doxygen 1.4.7