Geant4  10.01.p02
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 // Visit the Hadrontherapy web site (http://www.lns.infn.it/link/Hadrontherapy) to request
27 // the *COMPLETE* version of this program, together with its documentation;
28 // Hadrontherapy (both basic and full version) are supported by the Italian INFN
29 // Institute in the framework of the MC-INFN Group
30 //
31 //
32 // In this class the models for ion-ion interactions at intermediate energies (0 - 1 GeV per nucleon)
33 // can be activate. This class can be used alternatively to the "binary_ion" physics list
34 //
35 // The usefullness of this class is that you can explicitally see the total inelastic sections
36 // activated and the models called. Moreover you can choose to activate for ions (from deuteron
37 // to heavier nucleus) three different and exclusive models: the Binary Light Ion cascade, the QMD
38 // and The Wilson.
39 
40 // For hadrotherapy pouposes, where distributions of produced fragments is importante we strongly
41 // suggest to use Binary or QMD. The Binary model is the default and at moment, you can swith beetween models decommenting
42 // the line of code and recompiling
43 
45 #include "G4SystemOfUnits.hh"
46 #include "G4ParticleDefinition.hh"
47 #include "G4ProcessManager.hh"
48 
49 // Total cross section for inelastic processes
53 
58 #include "G4QMDReaction.hh"
59 #include "G4WilsonAbrasionModel.hh"
60 #include "G4IonInelasticProcess.hh"
62 
66 {
67  G4cout << G4endl
68  << "A local inelastic model is activated for all ions"
69  << G4endl;
70 }
71 
74 {}
75 
78 {
79  G4ParticleDefinition* particle = 0;
80  G4ProcessManager* processManager = 0;
81 
82  // ****************************************************************
83  // *** Ion-Ion models definition ***
84  // ****************************************************************
85  G4QMDReaction* JQMDmodel = new G4QMDReaction();
86  JQMDmodel -> SetMinEnergy(0*MeV);
87  JQMDmodel -> SetMaxEnergy(10*GeV);
88 
90  ligthBinary -> SetMinEnergy(0*MeV);
91  ligthBinary -> SetMaxEnergy(10*GeV);
92 
93  G4WilsonAbrasionModel* WilsonModel = new G4WilsonAbrasionModel();
94  WilsonModel -> SetUseAblation(true);
95  WilsonModel -> SetMinEnergy(0*MeV);
96  WilsonModel -> SetMaxEnergy(10 *GeV);
97 
98  G4TripathiCrossSection* TripatiCrossSections = new G4TripathiCrossSection;
99  G4TripathiLightCrossSection* TripatiLightCrossSections = new G4TripathiLightCrossSection;
100  G4IonsShenCrossSection* ShenCrossSections = new G4IonsShenCrossSection;
101 
102  // ****************
103  // *** Deuteron ***
104  // ****************
105  G4DeuteronInelasticProcess* deuteronInelasticProcess = new G4DeuteronInelasticProcess;
106 
107  deuteronInelasticProcess -> AddDataSet(ShenCrossSections);
108  deuteronInelasticProcess -> AddDataSet(TripatiCrossSections);
109  deuteronInelasticProcess -> AddDataSet(TripatiLightCrossSections);
110 
111  deuteronInelasticProcess -> RegisterMe(ligthBinary);
112  //deuteronInelasticProcess -> RegisterMe(JQMDmodel);
113  //deuteronInelasticProcess -> RegisterMe(WilsonModel);
114 
115  particle = G4Deuteron::Deuteron();
116  processManager = particle -> GetProcessManager();
117  processManager -> AddDiscreteProcess(deuteronInelasticProcess);
118 
119  // **************
120  // *** Triton ***
121  // **************
122  G4TritonInelasticProcess* tritonInelasticProcess = new G4TritonInelasticProcess;
123 
124  tritonInelasticProcess -> AddDataSet(ShenCrossSections);
125  tritonInelasticProcess -> AddDataSet(TripatiCrossSections);
126  tritonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
127 
128  tritonInelasticProcess -> RegisterMe(ligthBinary);
129  //tritonInelasticProcess -> RegisterMe(JQMDmodel);
130  //tritonInelasticProcess -> RegisterMe(WilsonModel);
131 
132  particle = G4Triton::Triton();
133  processManager = particle -> GetProcessManager();
134  processManager -> AddDiscreteProcess(tritonInelasticProcess);
135 
136  // *************
137  // *** Alpha ***
138  // *************
139  G4AlphaInelasticProcess* alphaInelasticProcess = new G4AlphaInelasticProcess;
140 
141  alphaInelasticProcess -> AddDataSet(ShenCrossSections);
142  alphaInelasticProcess -> AddDataSet(TripatiCrossSections);
143  alphaInelasticProcess -> AddDataSet(TripatiLightCrossSections);
144 
145  alphaInelasticProcess -> RegisterMe(ligthBinary);
146  //alphaInelasticProcess -> RegisterMe(JQMDmodel);
147  //alphaIonInelasticProcess -> RegisterMe(WilsonModel);
148 
149  particle = G4Alpha::Alpha();
150  processManager = particle -> GetProcessManager();
151  processManager -> AddDiscreteProcess(alphaInelasticProcess);
152 
153  // *******************
154  // *** Generic Ion ***
155  // *******************
156  G4IonInelasticProcess* genericIonInelasticProcess = new G4IonInelasticProcess();
157 
158  genericIonInelasticProcess -> AddDataSet(ShenCrossSections);
159  genericIonInelasticProcess -> AddDataSet(TripatiCrossSections);
160  genericIonInelasticProcess -> AddDataSet(TripatiLightCrossSections);
161 
162  genericIonInelasticProcess -> RegisterMe(ligthBinary);
163  //genericIonInelasticProcess -> RegisterMe(JQMDmodel);
164  //genericIonInelasticProcess -> RegisterMe(WilsonModel);
165 
166  particle = G4GenericIon::GenericIon();
167  processManager = particle -> GetProcessManager();
168  processManager -> AddDiscreteProcess(genericIonInelasticProcess);
169 }
170 
171 
172 
static const double MeV
Definition: G4SIunits.hh:193
LocalIonIonInelasticPhysic(const G4String &name="local_ion_ion_inelastic")
G4String name
Definition: TRTMaterials.hh:40
G4GLOB_DLL std::ostream G4cout
static G4Triton * Triton()
Definition: G4Triton.cc:95
static const double GeV
Definition: G4SIunits.hh:196
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