Geant4.10
 All Data Structures 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 
61 #include "G4INCLXXInterface.hh"
62 #include "G4QMDReaction.hh"
63 #include "G4WilsonAbrasionModel.hh"
64 #include "G4IonInelasticProcess.hh"
66 
67 /////////////////////////////////////////////////////////////////////////////
70 {
71  G4cout << G4endl
72  << "A local inelastic model is activated for all ions"
73  << G4endl;
74 }
75 
76 /////////////////////////////////////////////////////////////////////////////
78 {}
79 
80 /////////////////////////////////////////////////////////////////////////////
82 {
83  G4ParticleDefinition* particle = 0;
84  G4ProcessManager* processManager = 0;
85 
86  // ****************************************************************
87  // *** Ion-Ion models definition ***
88  // ****************************************************************
89  G4QMDReaction* JQMDmodel = new G4QMDReaction();
90  JQMDmodel -> SetMinEnergy(0*MeV);
91  JQMDmodel -> SetMaxEnergy(10*GeV);
92 
94  lightBinary -> SetMinEnergy(0*MeV);
95  lightBinary -> SetMaxEnergy(10*GeV);
96 
97  G4WilsonAbrasionModel* WilsonModel = new G4WilsonAbrasionModel();
98  WilsonModel -> SetUseAblation(true);
99  WilsonModel -> SetMinEnergy(0*MeV);
100  WilsonModel -> SetMaxEnergy(10 *GeV);
101 
102  // G4INCLXXInterface* INCLIonModel = new G4INCLXXInterface();
103 
104  G4TripathiCrossSection* TripatiCrossSections = new G4TripathiCrossSection;
105  G4TripathiCrossSection* TripatiLightCrossSections = new G4TripathiCrossSection;
106  G4IonsShenCrossSection* ShenCrossSections = new G4IonsShenCrossSection;
107 
108  // ****************
109  // *** Deuteron ***
110  // ****************
111  G4DeuteronInelasticProcess* deuteronInelasticProcess = new G4DeuteronInelasticProcess;
112 
113  deuteronInelasticProcess -> AddDataSet(ShenCrossSections);
114  deuteronInelasticProcess -> AddDataSet(TripatiCrossSections);
115  deuteronInelasticProcess -> AddDataSet(TripatiLightCrossSections);
116 
117  //deuteronInelasticProcess -> RegisterMe(INCLIonModel);
118  //deuteronInelasticProcess -> RegisterMe(lightBinary);
119  deuteronInelasticProcess -> RegisterMe(JQMDmodel);
120  //deuteronInelasticProcess -> RegisterMe(WilsonModel);
121 
122  particle = G4Deuteron::Deuteron();
123  processManager = particle -> GetProcessManager();
124  processManager -> AddDiscreteProcess(deuteronInelasticProcess);
125 
126  // **************
127  // *** Triton ***
128  // **************
129  G4TritonInelasticProcess* tritonInelasticProcess = new G4TritonInelasticProcess;
130 
131  tritonInelasticProcess -> AddDataSet(ShenCrossSections);
132  tritonInelasticProcess -> AddDataSet(TripatiCrossSections);
133  tritonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
134 
135  //tritonInelasticProcess -> RegisterMe(INCLIonModel);
136  //tritonInelasticProcess -> RegisterMe(lightBinary);
137  tritonInelasticProcess -> RegisterMe(JQMDmodel);
138  //tritonInelasticProcess -> RegisterMe(WilsonModel);
139 
140  particle = G4Triton::Triton();
141  processManager = particle -> GetProcessManager();
142  processManager -> AddDiscreteProcess(tritonInelasticProcess);
143 
144  // *************
145  // *** He3 ***
146  // *************
147  /*
148  G4He3InelasticProcess* he3InelasticProcess = new G4He3InelasticProcess;
149 
150  he3InelasticProcess -> AddDataSet(ShenCrossSections);
151  he3InelasticProcess -> AddDataSet(TripatiCrossSections);
152  he3InelasticProcess -> AddDataSet(TripatiLightCrossSections);
153 
154  he3InelasticProcess -> RegisterMe(INCLIonModel);
155 
156  particle = G4He3::He3();
157  processManager = particle -> GetProcessManager();
158  processManager -> AddDiscreteProcess(he3InelasticProcess);
159  */
160  // *************
161  // *** Alpha ***
162  // *************
163  G4AlphaInelasticProcess* alphaInelasticProcess = new G4AlphaInelasticProcess;
164 
165  alphaInelasticProcess -> AddDataSet(ShenCrossSections);
166  alphaInelasticProcess -> AddDataSet(TripatiCrossSections);
167  alphaInelasticProcess -> AddDataSet(TripatiLightCrossSections);
168 
169  //alphaInelasticProcess -> RegisterMe(INCLIonModel);
170  //alphaInelasticProcess -> RegisterMe(lightBinary);
171  alphaInelasticProcess -> RegisterMe(JQMDmodel);
172  //alphaInelasticProcess -> RegisterMe(WilsonModel);
173 
174  particle = G4Alpha::Alpha();
175  processManager = particle -> GetProcessManager();
176  processManager -> AddDiscreteProcess(alphaInelasticProcess);
177 
178  // *******************
179  // *** Generic Ion ***
180  // *******************
181  G4IonInelasticProcess* genericIonInelasticProcess = new G4IonInelasticProcess();
182 
183  genericIonInelasticProcess -> AddDataSet(ShenCrossSections);
184  genericIonInelasticProcess -> AddDataSet(TripatiCrossSections);
185  genericIonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
186 
187  //genericIonInelasticProcess -> RegisterMe(lightBinary);
188  genericIonInelasticProcess -> RegisterMe(JQMDmodel);
189  //genericIonInelasticProcess -> RegisterMe(WilsonModel);
190 
191  particle = G4GenericIon::GenericIon();
192  processManager = particle -> GetProcessManager();
193  processManager -> AddDiscreteProcess(genericIonInelasticProcess);
194 }
195 
196 
197 
const XML_Char * name
LocalINCLIonIonInelasticPhysic(const G4String &name="local_ion_ion_inelastic")
G4GLOB_DLL std::ostream G4cout
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
#define G4endl
Definition: G4ios.hh:61
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89