ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GammaRayTelEMlowePhysics.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GammaRayTelEMlowePhysics.cc
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 //
29 
31 
32 #include "globals.hh"
33 #include "G4ios.hh"
34 #include <iomanip>
35 
36 // gamma
37 
38 #include "G4PhotoElectricEffect.hh"
40 #include "G4ComptonScattering.hh"
42 #include "G4GammaConversion.hh"
44 #include "G4RayleighScattering.hh"
46 
47 
48 // e-/e+
49 
50 #include "G4eMultipleScattering.hh"
51 #include "G4eIonisation.hh"
53 #include "G4eBremsstrahlung.hh"
55 #include "G4eplusAnnihilation.hh"
56 
57 
59  : G4VPhysicsConstructor(name)
60 {
61 }
62 
64 {
65 }
66 
68 {
69 }
70 
71 
72 #include "G4ProcessManager.hh"
73 
74 
76 {
77  G4ProcessManager * pManager = 0;
78 
79  // Gamma Physics
80  pManager = G4Gamma::Gamma()->GetProcessManager();
81 
82  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
83  theRayleigh->SetEmModel(new G4LivermoreRayleighModel());
84  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
85  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel());
86  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
87  theComptonScattering->SetEmModel(new G4LivermoreComptonModel());
88  G4GammaConversion* theGammaConversion = new G4GammaConversion();
89  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel());
90 
91  pManager->AddDiscreteProcess(theRayleigh);
92  pManager->AddDiscreteProcess(thePhotoElectricEffect);
93  pManager->AddDiscreteProcess(theComptonScattering);
94  pManager->AddDiscreteProcess(theGammaConversion);
95 
96 
97  // Electron Physics
98 
100 
101 
103 
104  G4eIonisation* eIonisation = new G4eIonisation();
105  eIonisation->SetEmModel(new G4LivermoreIonisationModel());
106 
107  G4eBremsstrahlung* eBremsstrahlung = new G4eBremsstrahlung();
108  eBremsstrahlung->SetEmModel(new G4LivermoreBremsstrahlungModel());
109 
110  pManager->AddProcess(msc,-1, 1, 1);
111  pManager->AddProcess(eIonisation,-1, 2, 2);
112  pManager->AddProcess(eBremsstrahlung, -1,-3, 3);
113 
114 
115  //Positron Physics
116 
117  pManager = G4Positron::Positron()->GetProcessManager();
118 
120  pManager->AddProcess(msc_p,-1, 1, 1);
121 
122  G4eIonisation* eIonisation_p = new G4eIonisation();
123  pManager->AddProcess(eIonisation_p, -1, 2, 2);
124  pManager->AddProcess(new G4eBremsstrahlung(), -1,-1, 3);
125 
126  pManager->AddProcess(new G4eplusAnnihilation(),0,-1, 4);
127 
128 }
129 
130 
131