Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE02IonPhysics.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 //
28 //
29 // $Id$
30 // --------------------------------------------------------------
31 //
32 // 13-Oct-2003 Add Comment for Ionisation of Generic Ion by T. Koi
33 // 05-Jan-2004 Change G. Ion Ionisation from G4hIonisation
34 // to G4ionIonisation T. Koi
35 // 18-Nov-2005 Add Inelastic process with G4BinaryLightIonReaction.
36 // T. Aso
37 
38 #include "RE02IonPhysics.hh"
39 
40 #include "globals.hh"
41 #include "G4ios.hh"
42 #include <iomanip>
43 
44 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46  : G4VPhysicsConstructor(name)
47 {
48 }
49 
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52 {
53 }
54 
55 #include "G4ParticleDefinition.hh"
56 #include "G4ParticleTable.hh"
57 
58 #include "G4ProcessManager.hh"
59 #include "G4HadronElastic.hh"
60 
61 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63 {
64  G4ProcessManager * pManager = 0;
65 
66  // Generic Ion
68 
69  // add process
70  G4VProcess* thegionMultipleScattering = new G4hMultipleScattering();
71  //
72  // G4hIonization may be not able to use for Geanric Ion in future
73  // Please take care using this physics list after v5.2.p02
74  // G4VProcess* thegionIonisation = new G4hIonisation();
75  //
76  // From V6.0 hIonisation does not work for GenericIon
77  G4VProcess* thegionIonisation = new G4ionIonisation();
78 
79  // Inelastic process
80  G4HadronInelasticProcess* thegionInelastic =
82  thegionInelastic->AddDataSet(new G4TripathiCrossSection);
83  thegionInelastic->AddDataSet(new G4IonsShenCrossSection);
85  thegionInelastic->RegisterMe(thegionBCModel);
86 
87  //
88  pManager->AddProcess(thegionIonisation);
89  pManager->AddProcess(thegionMultipleScattering);
90  pManager->AddDiscreteProcess(thegionInelastic);
91  //
92  // set ordering for AlongStepDoIt
93  pManager->SetProcessOrdering(thegionMultipleScattering, idxAlongStep,1);
94  pManager->SetProcessOrdering(thegionIonisation, idxAlongStep,2);
95  //
96  // set ordering for PostStepDoIt
97  pManager->SetProcessOrdering(thegionMultipleScattering, idxPostStep,1);
98  pManager->SetProcessOrdering(thegionIonisation, idxPostStep,2);
99 
100  // Deuteron
101  pManager = G4Deuteron::Deuteron()->GetProcessManager();
102 
103  // add process
104  G4HadronElasticProcess* thedueElasticProcess = new G4HadronElasticProcess();
105  thedueElasticProcess->RegisterMe(new G4HadronElastic());
106  pManager->AddDiscreteProcess(thedueElasticProcess);
107 
108  G4DeuteronInelasticProcess* theDeuteronInelasticProcess =
110 
111  G4LEDeuteronInelastic* theDeuteronLEPModel = new G4LEDeuteronInelastic();
112  theDeuteronInelasticProcess->RegisterMe(theDeuteronLEPModel);
113  pManager->AddDiscreteProcess(theDeuteronInelasticProcess);
114 
115  G4VProcess* thedueMultipleScattering = new G4hMultipleScattering();
116  G4VProcess* thedueIonisation = new G4hIonisation();
117  //
118  pManager->AddProcess(thedueIonisation);
119  pManager->AddProcess(thedueMultipleScattering);
120  //
121  // set ordering for AlongStepDoIt
122  pManager->SetProcessOrdering(thedueMultipleScattering, idxAlongStep,1);
123  pManager->SetProcessOrdering(thedueIonisation, idxAlongStep,2);
124  //
125  // set ordering for PostStepDoIt
126  pManager->SetProcessOrdering(thedueMultipleScattering, idxPostStep,1);
127  pManager->SetProcessOrdering(thedueIonisation, idxPostStep,2);
128 
129  // Triton
130  pManager = G4Triton::Triton()->GetProcessManager();
131 
132  // add process
133  G4HadronElasticProcess* thetriElasticProcess = new G4HadronElasticProcess();
134  thetriElasticProcess->RegisterMe(new G4HadronElastic());
135  pManager->AddDiscreteProcess(thetriElasticProcess);
136 
137  G4TritonInelasticProcess* theTritonInelasticProcess =
139 
140  G4LETritonInelastic* theTritonLEPModel = new G4LETritonInelastic();
141  theTritonInelasticProcess->RegisterMe(theTritonLEPModel);
142  pManager->AddDiscreteProcess(theTritonInelasticProcess);
143 
144  G4VProcess* thetriMultipleScattering = new G4hMultipleScattering();
145  G4VProcess* thetriIonisation = new G4hIonisation();
146  //
147  pManager->AddProcess(thetriIonisation);
148  pManager->AddProcess(thetriMultipleScattering);
149  //
150  // set ordering for AlongStepDoIt
151  pManager->SetProcessOrdering(thetriMultipleScattering, idxAlongStep,1);
152  pManager->SetProcessOrdering(thetriIonisation, idxAlongStep,2);
153  //
154  // set ordering for PostStepDoIt
155  pManager->SetProcessOrdering(thetriMultipleScattering, idxPostStep,1);
156  pManager->SetProcessOrdering(thetriIonisation, idxPostStep,2);
157 
158  // Alpha
159  pManager = G4Alpha::Alpha()->GetProcessManager();
160 
161  // add processes
162  G4HadronElasticProcess* thealElasticProcess = new G4HadronElasticProcess();
163  thealElasticProcess->RegisterMe(new G4HadronElastic());
164  pManager->AddDiscreteProcess(thealElasticProcess);
165 
166  G4AlphaInelasticProcess* theAlphaInelasticProcess =
168 
169  G4LEAlphaInelastic* theAlphaLEPModel = new G4LEAlphaInelastic();
170  theAlphaInelasticProcess->RegisterMe(theAlphaLEPModel);
171  pManager->AddDiscreteProcess(theAlphaInelasticProcess);
172 
173  G4VProcess* thealpMultipleScattering = new G4hMultipleScattering();
174  G4VProcess* thealpIonisation = new G4hIonisation();
175  //
176  pManager->AddProcess(thealpIonisation);
177  pManager->AddProcess(thealpMultipleScattering);
178  //
179  // set ordering for AlongStepDoIt
180  pManager->SetProcessOrdering(thealpMultipleScattering, idxAlongStep,1);
181  pManager->SetProcessOrdering(thealpIonisation, idxAlongStep,2);
182  //
183  // set ordering for PostStepDoIt
184  pManager->SetProcessOrdering(thealpMultipleScattering, idxPostStep,1);
185  pManager->SetProcessOrdering(thealpIonisation, idxPostStep,2);
186 
187  // He3
188  pManager = G4He3::He3()->GetProcessManager();
189 
190  // add processes
191  G4VProcess* thehe3MultipleScattering = new G4hMultipleScattering();
192  G4VProcess* thehe3Ionisation = new G4hIonisation();
193  //
194  pManager->AddProcess(thehe3Ionisation);
195  pManager->AddProcess(thehe3MultipleScattering);
196  //
197  // set ordering for AlongStepDoIt
198  pManager->SetProcessOrdering(thehe3MultipleScattering, idxAlongStep,1);
199  pManager->SetProcessOrdering(thehe3Ionisation, idxAlongStep,2);
200  //
201  // set ordering for PostStepDoIt
202  pManager->SetProcessOrdering(thehe3MultipleScattering, idxPostStep,1);
203  pManager->SetProcessOrdering(thehe3Ionisation, idxPostStep,2);
204 
205 }
206 
207 
208