SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS_StandardEMPhysicsList.cc
Go to the documentation of this file.
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 //
27 
28 #include "ParisStandardEMPhysicsList.hh"
29 
30 #include "G4ProcessManager.hh"
31 #include "G4ProcessVector.hh"
32 #include "G4LossTableManager.hh"
33 #include "G4ParticleDefinition.hh"
34 #include "G4ParticleWithCuts.hh"
35 #include "G4ParticleTypes.hh"
36 #include "G4ParticleTable.hh"
37 #include "G4Material.hh"
38 #include "G4ios.hh"
39 
40 // gamma
41 #include "G4ComptonScattering.hh"
42 #include "G4GammaConversion.hh"
43 #include "G4PhotoElectricEffect.hh"
44 //#include "G4PolarizedComptonScattering.hh"
45 
46 // charged
47 #include "G4eMultipleScattering.hh"
48 
49 #include "G4eIonisation.hh"
50 #include "G4eBremsstrahlung.hh"
51 #include "G4eplusAnnihilation.hh"
52 
53 
54 ParisStandardEMPhysicsList::ParisStandardEMPhysicsList(const G4String& name): G4VPhysicsConstructor(name)
55 {
56 }
57 
59 {
60 }
61 
63 {
64  // gamma
65  G4Gamma::GammaDefinition();
66 
67  // electron
68  G4Electron::ElectronDefinition();
69  G4Positron::PositronDefinition();
70 
71  // pseudo-particles
72  G4Geantino::GeantinoDefinition();
73 }
74 
76 {
77  // add processes to the manager for each kind of particles
78  G4ProcessManager * pManager = 0;
79 
80  // Gamma Physics : all processes
81  G4PhotoElectricEffect* thePhotoEffect = new G4PhotoElectricEffect();
82  G4ComptonScattering* theComptonEffect = new G4ComptonScattering();
83  G4GammaConversion* thePairProduction = new G4GammaConversion();
84  //
85  pManager = G4Gamma::Gamma()->GetProcessManager();
86  //
87  pManager->AddDiscreteProcess(thePhotoEffect);
88  pManager->AddDiscreteProcess(theComptonEffect);
89  pManager->AddDiscreteProcess(thePairProduction);
90 
91  // Electron physics : all processes
92  G4eMultipleScattering* theElectronMultipleScattering = new G4eMultipleScattering();
93  G4eIonisation* theElectronIonisation = new G4eIonisation();
94  G4eBremsstrahlung* theElectronBremsStrahlung = new G4eBremsstrahlung();
95  //
96  pManager = G4Electron::Electron()->GetProcessManager();
97  //
98  pManager->AddProcess(theElectronMultipleScattering, -1, 1, 1);
99  pManager->AddProcess(theElectronIonisation, -1, 2, 2);
100  pManager->AddProcess(theElectronBremsStrahlung, -1, 3, 3);
101 
102  // Positron physics : all processes
103  G4eMultipleScattering* thePositronMultipleScattering = new G4eMultipleScattering();
104  G4eIonisation* thePositronIonisation = new G4eIonisation();
105  G4eBremsstrahlung* thePositronBremsStrahlung = new G4eBremsstrahlung();
106  G4eplusAnnihilation* theAnnihilation = new G4eplusAnnihilation();
107  //
108  pManager = G4Positron::Positron()->GetProcessManager();
109  //
110  pManager->AddProcess(thePositronMultipleScattering, -1, 1, 1);
111  pManager->AddProcess(thePositronIonisation, -1, 2, 2);
112  pManager->AddProcess(thePositronBremsStrahlung, -1, 3, 3);
113  pManager->AddProcess(theAnnihilation, 0,-1, 4);
114 }
115 
116 
118 {
119  /*
120  if ( verboseLevel > 0 ) {
121  G4cout << " ParisStandardEMPhysicsList::SetCuts:";
122  G4cout << " CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
123  }
124 
125  // set cut values for gamma at first and for e- second and next for e+,
126  // because some processes for e+/e- need cut values for gamma
127  //
128  SetCutValue(defaultCutValue, "gamma");
129  SetCutValue(defaultCutValue, "e-");
130  SetCutValue(defaultCutValue, "e+");
131 
132  if (verboseLevel>0)
133  DumpCutValuesTable();
134 
135  */
136 }
137 
138 
139 
140 
virtual void ConstructParticle()
these methods Construct particles