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 | // |
---|
30 | // ClassName: hTestLowEPhysicsList |
---|
31 | // |
---|
32 | // Description: LowEnergy EM processes list |
---|
33 | // |
---|
34 | // Authors: 08.04.01 V.Ivanchenko |
---|
35 | // |
---|
36 | // Modified: |
---|
37 | // |
---|
38 | //---------------------------------------------------------------------------- |
---|
39 | // |
---|
40 | |
---|
41 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
42 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
43 | |
---|
44 | #include "hTestLowEPhysicsList.hh" |
---|
45 | |
---|
46 | #include "G4LowEnergyRayleigh.hh" |
---|
47 | #include "G4LowEnergyCompton.hh" |
---|
48 | #include "G4LowEnergyGammaConversion.hh" |
---|
49 | #include "G4LowEnergyPhotoElectric.hh" |
---|
50 | |
---|
51 | #include "G4MultipleScattering.hh" |
---|
52 | |
---|
53 | #include "G4eIonisation.hh" |
---|
54 | #include "G4eBremsstrahlung.hh" |
---|
55 | #include "G4LowEnergyIonisation.hh" |
---|
56 | #include "G4LowEnergyBremsstrahlung.hh" |
---|
57 | #include "G4eplusAnnihilation.hh" |
---|
58 | |
---|
59 | #include "G4MuIonisation.hh" |
---|
60 | #include "G4MuBremsstrahlung.hh" |
---|
61 | #include "G4MuPairProduction.hh" |
---|
62 | #include "G4MuonMinusCaptureAtRest.hh" |
---|
63 | |
---|
64 | #include "G4hLowEnergyIonisation.hh" |
---|
65 | |
---|
66 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
67 | |
---|
68 | hTestLowEPhysicsList::hTestLowEPhysicsList() |
---|
69 | { |
---|
70 | verbose = 0; |
---|
71 | nuclStop = true; |
---|
72 | barkas = true; |
---|
73 | table = G4String(""); |
---|
74 | } |
---|
75 | |
---|
76 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
77 | |
---|
78 | void hTestLowEPhysicsList::ConstructProcess() |
---|
79 | { |
---|
80 | G4cout << "LowEnergy Electromagnetic PhysicsList is initilized" << G4endl; |
---|
81 | G4ParticleDefinition* proton = G4Proton::ProtonDefinition(); |
---|
82 | G4ParticleDefinition* antiproton = G4AntiProton::AntiProtonDefinition(); |
---|
83 | |
---|
84 | theParticleIterator->reset(); |
---|
85 | while( (*theParticleIterator)() ){ |
---|
86 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
87 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
88 | G4String particleName = particle->GetParticleName(); |
---|
89 | G4String particleType = particle->GetParticleType(); |
---|
90 | G4double charge = particle->GetPDGCharge(); |
---|
91 | |
---|
92 | if(0 < verbose) G4cout << "LowE EM processes for " << particleName << G4endl; |
---|
93 | |
---|
94 | if (particleName == "gamma") { |
---|
95 | if(0 < verbose) G4cout << "LowE gamma" << G4endl; |
---|
96 | pmanager->AddDiscreteProcess(new G4LowEnergyRayleigh()); |
---|
97 | pmanager->AddDiscreteProcess(new G4LowEnergyPhotoElectric()); |
---|
98 | pmanager->AddDiscreteProcess(new G4LowEnergyCompton()); |
---|
99 | pmanager->AddDiscreteProcess(new G4LowEnergyGammaConversion()); |
---|
100 | |
---|
101 | } else if (particleName == "e-") { |
---|
102 | if(0 < verbose) G4cout << "LowE e-" << G4endl; |
---|
103 | pmanager->AddProcess(new G4MultipleScattering(), -1, 1,1); |
---|
104 | G4LowEnergyIonisation* lei = new G4LowEnergyIonisation(); |
---|
105 | lei->SetCutForLowEnSecPhotons(1000.0*keV); |
---|
106 | lei->SetCutForLowEnSecElectrons(1000.0*keV); |
---|
107 | pmanager->AddProcess(lei, -1, 2,2); |
---|
108 | pmanager->AddProcess(new G4LowEnergyBremsstrahlung(), -1,-1,3); |
---|
109 | |
---|
110 | } else if (particleName == "e+") { |
---|
111 | if(0 < verbose) G4cout << "LowE e+" << G4endl; |
---|
112 | pmanager->AddProcess(new G4MultipleScattering(), -1, 1,1); |
---|
113 | pmanager->AddProcess(new G4eIonisation, -1, 2,2); |
---|
114 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3); |
---|
115 | pmanager->AddProcess(new G4eplusAnnihilation(), 0,-1,4); |
---|
116 | |
---|
117 | } else if( particleName == "mu+" || |
---|
118 | particleName == "mu-" ) { |
---|
119 | if(0 < verbose) G4cout << "LowE " << particleName << G4endl; |
---|
120 | pmanager->AddProcess(new G4MultipleScattering(),-1, 1,1); |
---|
121 | pmanager->AddProcess(new G4MuIonisation(), -1, 2,2); |
---|
122 | pmanager->AddProcess(new G4MuBremsstrahlung(), -1,-1,3); |
---|
123 | pmanager->AddProcess(new G4MuPairProduction(), -1,-1,4); |
---|
124 | if(particleName == "mu-") |
---|
125 | pmanager->AddProcess(new G4MuonMinusCaptureAtRest(),0,-1,-1); |
---|
126 | |
---|
127 | } else if ( |
---|
128 | particleName == "proton" |
---|
129 | || particleName == "anti_proton" |
---|
130 | || particleName == "pi+" |
---|
131 | || particleName == "pi-" |
---|
132 | || particleName == "kaon+" |
---|
133 | || particleName == "kaon-" |
---|
134 | || particleName == "sigma+" |
---|
135 | || particleName == "sigma-" |
---|
136 | ) |
---|
137 | { |
---|
138 | if(0 < verbose) G4cout << "LowE " << particleName << G4endl; |
---|
139 | pmanager->AddProcess(new G4MultipleScattering(),-1,1,1); |
---|
140 | G4hLowEnergyIonisation* hIon = new G4hLowEnergyIonisation() ; |
---|
141 | |
---|
142 | if(nuclStop) hIon->SetNuclearStoppingOn(); |
---|
143 | else hIon->SetNuclearStoppingOff(); |
---|
144 | |
---|
145 | if(barkas) hIon->SetBarkasOn(); |
---|
146 | else hIon->SetBarkasOff(); |
---|
147 | |
---|
148 | hIon->SetVerboseLevel(verbose); |
---|
149 | |
---|
150 | if(table == G4String("Ziegler1977He") || |
---|
151 | table == G4String("Ziegler1977H") || |
---|
152 | table == G4String("ICRU_R49p") || |
---|
153 | table == G4String("ICRU_R49He") || |
---|
154 | table == G4String("ICRU_R49PowersHe") ) { |
---|
155 | |
---|
156 | if(particle->GetPDGCharge() > 0.0) |
---|
157 | hIon->SetElectronicStoppingPowerModel(proton,table); |
---|
158 | else |
---|
159 | hIon->SetElectronicStoppingPowerModel(antiproton,table); |
---|
160 | } |
---|
161 | |
---|
162 | pmanager->AddProcess(hIon,-1,2,2); |
---|
163 | |
---|
164 | } else if ( particleName == "alpha" |
---|
165 | || particleName == "deuteron" |
---|
166 | || particleName == "triton" |
---|
167 | || particleName == "IonC12" |
---|
168 | || particleName == "IonAr40" |
---|
169 | || particleName == "IonFe56" |
---|
170 | || particleName == "He3" |
---|
171 | || particleName == "GenericIon" |
---|
172 | || (particleType == "nucleus" && charge != 0) |
---|
173 | ) |
---|
174 | { |
---|
175 | if(0 < verbose) G4cout << "LowE " << particleName << G4endl; |
---|
176 | pmanager->AddProcess(new G4MultipleScattering(),-1,1,1); |
---|
177 | G4hLowEnergyIonisation* iIon = new G4hLowEnergyIonisation() ; |
---|
178 | |
---|
179 | if(nuclStop) iIon->SetNuclearStoppingOn(); |
---|
180 | else iIon->SetNuclearStoppingOff(); |
---|
181 | |
---|
182 | if(barkas) iIon->SetBarkasOn(); |
---|
183 | else iIon->SetBarkasOff(); |
---|
184 | |
---|
185 | iIon->SetVerboseLevel(verbose); |
---|
186 | |
---|
187 | if(table == G4String("Ziegler1977He") || |
---|
188 | table == G4String("Ziegler1977H") || |
---|
189 | table == G4String("ICRU_R49p") || |
---|
190 | table == G4String("ICRU_R49He") || |
---|
191 | table == G4String("ICRU_R49PowersHe") ) |
---|
192 | iIon->SetElectronicStoppingPowerModel(proton,table); |
---|
193 | |
---|
194 | pmanager->AddProcess(iIon,-1,2,2); |
---|
195 | } |
---|
196 | if(2 < verbose) pmanager->DumpInfo(); |
---|
197 | } |
---|
198 | } |
---|
199 | |
---|
200 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
201 | |
---|
202 | |
---|