Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LocalINCLIonIonInelasticPhysic.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 // This is the *BASIC* version of Hadrontherapy, a Geant4-based application
27 // See more at: http://g4advancedexamples.lngs.infn.it/Examples/hadrontherapy
28 //
29 // Visit the Hadrontherapy web site (http://www.lns.infn.it/link/Hadrontherapy) to request
30 // the *COMPLETE* version of this program, together with its documentation;
31 // Hadrontherapy (both basic and full version) are supported by the Italian INFN
32 // Institute in the framework of the MC-INFN Group
33 //
34 //
35 // In this class the models for ion-ion interactions at intermediate energies (0 - 1 GeV per nucleon)
36 // can be activate. This class can be used alternatively to the "binary_ion" physics list
37 //
38 // The usefullness of this class is that you can explicitally see the total inelastic sections
39 // activated and the models called. Moreover you can choose to activate for ions (from deuteron
40 // to heavier nucleus) three different and exclusive models: the Binary Light Ion cascade, the QMD
41 // and The Wilson.
42 
43 // For hadrotherapy pouposes, where distributions of produced fragments is importante we strongly
44 // suggest to use Binary or QMD. The Binary model is the default and at moment, you can swith beetween models decommenting
45 // the line of code and recompiling
46 
48 #include "G4SystemOfUnits.hh"
49 #include "G4ParticleDefinition.hh"
50 #include "G4ProcessManager.hh"
51 
52 // Total cross section for inelastic processes
56 
60 #include "G4LEDeuteronInelastic.hh"
61 #include "G4LETritonInelastic.hh"
62 #include "G4LEAlphaInelastic.hh"
64 #include "G4INCLXXInterface.hh"
65 #include "G4QMDReaction.hh"
66 #include "G4WilsonAbrasionModel.hh"
67 #include "G4IonInelasticProcess.hh"
69 
73 {
74  G4cout << G4endl
75  << "A local inelastic model is activated for all ions"
76  << G4endl;
77 }
78 
81 {}
82 
85 {
86  G4ParticleDefinition* particle = 0;
87  G4ProcessManager* processManager = 0;
88 
89  // ****************************************************************
90  // *** Ion-Ion models definition ***
91  // ****************************************************************
92  G4QMDReaction* JQMDmodel = new G4QMDReaction();
93  JQMDmodel -> SetMinEnergy(0*MeV);
94  JQMDmodel -> SetMaxEnergy(10*GeV);
95 
97  lightBinary -> SetMinEnergy(0*MeV);
98  lightBinary -> SetMaxEnergy(10*GeV);
99 
100  G4WilsonAbrasionModel* WilsonModel = new G4WilsonAbrasionModel();
101  WilsonModel -> SetUseAblation(true);
102  WilsonModel -> SetMinEnergy(0*MeV);
103  WilsonModel -> SetMaxEnergy(10 *GeV);
104 
105  // G4INCLXXInterface* INCLIonModel = new G4INCLXXInterface();
106 
107  G4TripathiCrossSection* TripatiCrossSections = new G4TripathiCrossSection;
108  G4TripathiCrossSection* TripatiLightCrossSections = new G4TripathiCrossSection;
109  G4IonsShenCrossSection* ShenCrossSections = new G4IonsShenCrossSection;
110 
111  // ****************
112  // *** Deuteron ***
113  // ****************
114  G4DeuteronInelasticProcess* deuteronInelasticProcess = new G4DeuteronInelasticProcess;
115 
116  deuteronInelasticProcess -> AddDataSet(ShenCrossSections);
117  deuteronInelasticProcess -> AddDataSet(TripatiCrossSections);
118  deuteronInelasticProcess -> AddDataSet(TripatiLightCrossSections);
119 
120  //deuteronInelasticProcess -> RegisterMe(INCLIonModel);
121  //deuteronInelasticProcess -> RegisterMe(lightBinary);
122  deuteronInelasticProcess -> RegisterMe(JQMDmodel);
123  //deuteronInelasticProcess -> RegisterMe(WilsonModel);
124 
125  particle = G4Deuteron::Deuteron();
126  processManager = particle -> GetProcessManager();
127  processManager -> AddDiscreteProcess(deuteronInelasticProcess);
128 
129  // **************
130  // *** Triton ***
131  // **************
132  G4TritonInelasticProcess* tritonInelasticProcess = new G4TritonInelasticProcess;
133 
134  tritonInelasticProcess -> AddDataSet(ShenCrossSections);
135  tritonInelasticProcess -> AddDataSet(TripatiCrossSections);
136  tritonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
137 
138  //tritonInelasticProcess -> RegisterMe(INCLIonModel);
139  //tritonInelasticProcess -> RegisterMe(lightBinary);
140  tritonInelasticProcess -> RegisterMe(JQMDmodel);
141  //tritonInelasticProcess -> RegisterMe(WilsonModel);
142 
143  particle = G4Triton::Triton();
144  processManager = particle -> GetProcessManager();
145  processManager -> AddDiscreteProcess(tritonInelasticProcess);
146 
147  // *************
148  // *** He3 ***
149  // *************
150  /*
151  G4He3InelasticProcess* he3InelasticProcess = new G4He3InelasticProcess;
152 
153  he3InelasticProcess -> AddDataSet(ShenCrossSections);
154  he3InelasticProcess -> AddDataSet(TripatiCrossSections);
155  he3InelasticProcess -> AddDataSet(TripatiLightCrossSections);
156 
157  he3InelasticProcess -> RegisterMe(INCLIonModel);
158 
159  particle = G4He3::He3();
160  processManager = particle -> GetProcessManager();
161  processManager -> AddDiscreteProcess(he3InelasticProcess);
162  */
163  // *************
164  // *** Alpha ***
165  // *************
166  G4AlphaInelasticProcess* alphaInelasticProcess = new G4AlphaInelasticProcess;
167 
168  alphaInelasticProcess -> AddDataSet(ShenCrossSections);
169  alphaInelasticProcess -> AddDataSet(TripatiCrossSections);
170  alphaInelasticProcess -> AddDataSet(TripatiLightCrossSections);
171 
172  //alphaInelasticProcess -> RegisterMe(INCLIonModel);
173  //alphaInelasticProcess -> RegisterMe(lightBinary);
174  alphaInelasticProcess -> RegisterMe(JQMDmodel);
175  //alphaInelasticProcess -> RegisterMe(WilsonModel);
176 
177  particle = G4Alpha::Alpha();
178  processManager = particle -> GetProcessManager();
179  processManager -> AddDiscreteProcess(alphaInelasticProcess);
180 
181  // *******************
182  // *** Generic Ion ***
183  // *******************
184  G4IonInelasticProcess* genericIonInelasticProcess = new G4IonInelasticProcess();
185 
186  genericIonInelasticProcess -> AddDataSet(ShenCrossSections);
187  genericIonInelasticProcess -> AddDataSet(TripatiCrossSections);
188  genericIonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
189 
190  //genericIonInelasticProcess -> RegisterMe(lightBinary);
191  genericIonInelasticProcess -> RegisterMe(JQMDmodel);
192  //genericIonInelasticProcess -> RegisterMe(WilsonModel);
193 
194  particle = G4GenericIon::GenericIon();
195  processManager = particle -> GetProcessManager();
196  processManager -> AddDiscreteProcess(genericIonInelasticProcess);
197 }
198 
199 
200