source: trunk/examples/extended/parallel/MPI/exMPI01/src/PhysicsListEMstd.cc @ 807

Last change on this file since 807 was 807, checked in by garnier, 16 years ago

update

File size: 4.6 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26// $Id: PhysicsListEMstd.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $
27// $Name:  $
28//
29// ====================================================================
30//   PhysicsListEMstd.cc
31//   Physics list for electron/positron/gamma
32//   EM-standard package w/ default parameters
33//
34//                                         2007 Q
35// ====================================================================
36#include "PhysicsListEMstd.hh"
37
38#include "G4ProcessManager.hh"
39#include "G4ParticleDefinition.hh"
40
41#include "G4Gamma.hh"
42#include "G4Electron.hh"
43#include "G4Positron.hh"
44#include "G4NeutrinoE.hh"
45#include "G4AntiNeutrinoE.hh"
46
47#include "G4ComptonScattering.hh"
48#include "G4GammaConversion.hh"
49#include "G4PhotoElectricEffect.hh"
50#include "G4MultipleScattering.hh"
51#include "G4eIonisation.hh"
52#include "G4eBremsstrahlung.hh"
53#include "G4eplusAnnihilation.hh"
54
55// ====================================================================
56//
57// class description
58//
59// ====================================================================
60
61////////////////////////////////////
62PhysicsListEMstd::PhysicsListEMstd()
63  : G4VPhysicsConstructor("EM-std")
64////////////////////////////////////
65{
66}
67
68
69/////////////////////////////////////
70PhysicsListEMstd::~PhysicsListEMstd()
71/////////////////////////////////////
72{
73}
74
75
76//////////////////////////////////////////
77void PhysicsListEMstd::ConstructParticle()
78//////////////////////////////////////////
79{
80}
81
82
83/////////////////////////////////////////
84void PhysicsListEMstd::ConstructProcess()
85/////////////////////////////////////////
86{
87  G4ProcessManager* pm;
88
89  // ----------------------------------------------------------
90  // gamma physics
91  // ----------------------------------------------------------
92  pm= G4Gamma::Gamma()-> GetProcessManager();
93  pm-> AddDiscreteProcess(new G4PhotoElectricEffect);
94  pm-> AddDiscreteProcess(new G4ComptonScattering);
95  pm-> AddDiscreteProcess(new G4GammaConversion);
96
97  // ----------------------------------------------------------
98  // electron physics
99  // ----------------------------------------------------------
100  G4MultipleScattering* msc=    new G4MultipleScattering;
101  G4eIonisation*        eion=   new G4eIonisation;
102  G4eBremsstrahlung*    ebrems= new G4eBremsstrahlung;
103
104  pm= G4Electron::Electron()->GetProcessManager();
105  pm-> AddProcess(msc,    ordInActive,           1, 1);
106  pm-> AddProcess(eion,   ordInActive,           2, 2);
107  pm-> AddProcess(ebrems, ordInActive, ordInActive, 3);
108
109  // ----------------------------------------------------------
110  // positron physics
111  // ----------------------------------------------------------
112  msc=    new G4MultipleScattering;
113  eion=   new G4eIonisation;
114  ebrems= new G4eBremsstrahlung;
115  G4eplusAnnihilation* annihilation= new G4eplusAnnihilation;
116
117  pm= G4Positron::Positron()-> GetProcessManager();
118  pm-> AddProcess(msc,          ordInActive, 1,           1);
119  pm-> AddProcess(eion,         ordInActive, 2,           2);
120  pm-> AddProcess(ebrems,       ordInActive, ordInActive, 3);
121  pm-> AddProcess(annihilation, 0,           ordInActive, 4);
122
123}
124
Note: See TracBrowser for help on using the repository browser.