source: trunk/examples/advanced/radioprotection/src/RemSimPhysicsList.cc@ 811

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

update

File size: 7.4 KB
RevLine 
[807]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: RemSimPhysicsList.cc,v 1.10 2006/06/29 16:24:03 gunter Exp $
27// GEANT4 tag $Name: $
28//
29// Author: Susanna Guatelli
30
31#include "RemSimPhysicsList.hh"
32#include "RemSimPhysicsListMessenger.hh"
33#include "RemSimParticles.hh"
34#include "RemSimPhotonEPDL.hh"
35#include "RemSimElectronEEDL.hh"
36#include "RemSimPositronStandard.hh"
37#include "RemSimIonICRU.hh"
38#include "RemSimMuonStandard.hh"
39#include "RemSimDecay.hh"
40#include "RemSimHadronicBertini.hh"
41#include "RemSimHadronicBinary.hh"
42#include "G4ParticleDefinition.hh"
43#include "G4ProcessManager.hh"
44#include "G4ProcessVector.hh"
45#include "G4VProcess.hh"
46
47RemSimPhysicsList::RemSimPhysicsList(): G4VModularPhysicsList(),
48 electronIsRegistered(false),
49 positronIsRegistered(false),
50 photonIsRegistered(false),
51 ionIsRegistered(false),
52 hadronicIsRegistered(false),
53 decayIsRegistered(false),
54 muonIsRegistered(false)
55{
56 defaultCutValue = 1.* mm;
57 // SetVerboseLevel(1);
58
59 messenger = new RemSimPhysicsListMessenger(this);
60
61 RegisterPhysics( new RemSimParticles("particles") );
62}
63
64
65RemSimPhysicsList::~RemSimPhysicsList()
66{
67 delete messenger;
68}
69
70
71void RemSimPhysicsList::AddPhysicsList(const G4String& name)
72{
73
74 G4cout << "Adding PhysicsList chunk " << name << G4endl;
75
76 // Register LowE-EPDL processes for photons
77 if (name == "photon-epdl")
78 {
79 if (photonIsRegistered)
80 {
81 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
82 << " cannot be registered ---- photon List already existing"
83 << G4endl;
84 }
85 else
86 {
87 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
88 << " is registered" << G4endl;
89 RegisterPhysics( new RemSimPhotonEPDL(name) );
90 photonIsRegistered = true;
91 }
92 }
93
94 // Register LowE-EEDL processes for electrons
95 if (name == "electron-eedl")
96 {
97 if (electronIsRegistered)
98 {
99 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
100 << " cannot be registered ---- electron List already existing" << G4endl;
101 }
102 else
103 {
104 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
105 << " is registered" << G4endl;
106 RegisterPhysics( new RemSimElectronEEDL(name) );
107 electronIsRegistered = true;
108 }
109 }
110
111 // Register standard processes for positrons
112 if (name == "positron-standard")
113 {
114 if (positronIsRegistered)
115 {
116 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
117 << " cannot be registered ---- positron List already existing" << G4endl;
118 }
119 else
120 {
121 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
122 << " is registered" << G4endl;
123 RegisterPhysics( new RemSimPositronStandard(name) );
124 positronIsRegistered = true;
125 }
126 }
127
128 // Register LowEnergy processes - ICRU Model - for p, alpha, ions.
129 if (name == "ion-ICRU")
130 {
131 if (ionIsRegistered)
132 {
133 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
134 << " cannot be registered ----ion e.m. List already existing"
135 << G4endl;
136 }
137 else
138 {
139 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
140 << " is registered" << G4endl;
141 RegisterPhysics( new RemSimIonICRU(name) );
142 ionIsRegistered = true;
143 }
144 }
145
146 // // Register hadronic process for p and alpha particle, activating the
147// // Binary model
148
149
150 if (name == "hadronic-binary")
151 {
152 if (hadronicIsRegistered)
153 {
154 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
155 << " cannot be registered ---- hadronic physics List already existing" << G4endl;
156 }
157 else
158 {
159 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
160 << " is registered" << G4endl;
161 RegisterPhysics( new RemSimHadronicBinary(name) );
162 hadronicIsRegistered = true;
163 }
164 }
165
166
167 // Register hadronic process for p and alpha particle, activating the
168 // Bertini model
169
170if (name == "hadronic-bertini")
171 {
172 if (hadronicIsRegistered)
173 {
174 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
175 << " cannot be registered ---- hadronic physics List already existing" << G4endl;
176 }
177 else
178 {
179 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
180 << " is registered" << G4endl;
181 RegisterPhysics( new RemSimHadronicBertini(name) );
182 hadronicIsRegistered = true;
183 }
184 }
185
186
187if (name == "muon-standard")
188 {
189 if (muonIsRegistered)
190 {
191 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
192 << " cannot be registered -- muon e.m. List already existing"
193 << G4endl;
194 }
195 else
196 {
197 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
198 << " is registered" << G4endl;
199 RegisterPhysics( new RemSimMuonStandard(name) );
200 muonIsRegistered = true;
201 }
202 }
203
204if (name == "decay")
205 {
206 if (decayIsRegistered)
207 {
208 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
209 << " cannot be registered ---- decay physics List already existing" << G4endl;
210 }
211 else
212 {
213 G4cout << "RemSimPhysicsList::AddPhysicsList: " << name
214 << " is registered" << G4endl;
215 RegisterPhysics( new RemSimDecay(name) );
216 decayIsRegistered = true;
217 }
218 }
219
220 if (electronIsRegistered && positronIsRegistered && photonIsRegistered &&
221 ionIsRegistered)
222 {
223 G4cout << "The electromagnetic processes are registered" << G4endl;
224
225
226 if (muonIsRegistered && decayIsRegistered && hadronicIsRegistered)
227 {
228 G4cout << "The hadronic physics is registered for p (up to 100 GeV) and alpha (up to 10 GeV), the e.m. physics for muons is registered, the decay is registered"
229 << G4endl;
230 }
231 }
232}
233
234void RemSimPhysicsList::SetCuts()
235{
236 G4VUserPhysicsList::SetCutsWithDefault();
237 if (verboseLevel>0) DumpCutValuesTable();
238}
239
240
241
242
243
244
245
246
247
248
Note: See TracBrowser for help on using the repository browser.