Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LocalIonIonInelasticPhysic.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 "G4QMDReaction.hh"
65 #include "G4WilsonAbrasionModel.hh"
66 #include "G4IonInelasticProcess.hh"
68 
72 {
73  G4cout << G4endl
74  << "A local inelastic model is activated for all ions"
75  << G4endl;
76 }
77 
80 {}
81 
84 {
85  G4ParticleDefinition* particle = 0;
86  G4ProcessManager* processManager = 0;
87 
88  // ****************************************************************
89  // *** Ion-Ion models definition ***
90  // ****************************************************************
91  G4QMDReaction* JQMDmodel = new G4QMDReaction();
92  JQMDmodel -> SetMinEnergy(0*MeV);
93  JQMDmodel -> SetMaxEnergy(10*GeV);
94 
96  ligthBinary -> SetMinEnergy(0*MeV);
97  ligthBinary -> SetMaxEnergy(10*GeV);
98 
99  G4WilsonAbrasionModel* WilsonModel = new G4WilsonAbrasionModel();
100  WilsonModel -> SetUseAblation(true);
101  WilsonModel -> SetMinEnergy(0*MeV);
102  WilsonModel -> SetMaxEnergy(10 *GeV);
103 
104  G4TripathiCrossSection* TripatiCrossSections = new G4TripathiCrossSection;
105  G4TripathiLightCrossSection* TripatiLightCrossSections = new G4TripathiLightCrossSection;
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(ligthBinary);
118  //deuteronInelasticProcess -> RegisterMe(JQMDmodel);
119  //deuteronInelasticProcess -> RegisterMe(WilsonModel);
120 
121  particle = G4Deuteron::Deuteron();
122  processManager = particle -> GetProcessManager();
123  processManager -> AddDiscreteProcess(deuteronInelasticProcess);
124 
125  // **************
126  // *** Triton ***
127  // **************
128  G4TritonInelasticProcess* tritonInelasticProcess = new G4TritonInelasticProcess;
129 
130  tritonInelasticProcess -> AddDataSet(ShenCrossSections);
131  tritonInelasticProcess -> AddDataSet(TripatiCrossSections);
132  tritonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
133 
134  tritonInelasticProcess -> RegisterMe(ligthBinary);
135  //tritonInelasticProcess -> RegisterMe(JQMDmodel);
136  //tritonInelasticProcess -> RegisterMe(WilsonModel);
137 
138  particle = G4Triton::Triton();
139  processManager = particle -> GetProcessManager();
140  processManager -> AddDiscreteProcess(tritonInelasticProcess);
141 
142  // *************
143  // *** Alpha ***
144  // *************
145  G4AlphaInelasticProcess* alphaInelasticProcess = new G4AlphaInelasticProcess;
146 
147  alphaInelasticProcess -> AddDataSet(ShenCrossSections);
148  alphaInelasticProcess -> AddDataSet(TripatiCrossSections);
149  alphaInelasticProcess -> AddDataSet(TripatiLightCrossSections);
150 
151  alphaInelasticProcess -> RegisterMe(ligthBinary);
152  //alphaInelasticProcess -> RegisterMe(JQMDmodel);
153  //alphaIonInelasticProcess -> RegisterMe(WilsonModel);
154 
155  particle = G4Alpha::Alpha();
156  processManager = particle -> GetProcessManager();
157  processManager -> AddDiscreteProcess(alphaInelasticProcess);
158 
159  // *******************
160  // *** Generic Ion ***
161  // *******************
162  G4IonInelasticProcess* genericIonInelasticProcess = new G4IonInelasticProcess();
163 
164  genericIonInelasticProcess -> AddDataSet(ShenCrossSections);
165  genericIonInelasticProcess -> AddDataSet(TripatiCrossSections);
166  genericIonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
167 
168  genericIonInelasticProcess -> RegisterMe(ligthBinary);
169  //genericIonInelasticProcess -> RegisterMe(JQMDmodel);
170  //genericIonInelasticProcess -> RegisterMe(WilsonModel);
171 
172  particle = G4GenericIon::GenericIon();
173  processManager = particle -> GetProcessManager();
174  processManager -> AddDiscreteProcess(genericIonInelasticProcess);
175 }
176 
177 
178