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 | // $Id: G4IonInclAblaPhysics.cc,v 1.1 2009/07/19 18:24:03 kaitanie Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03-cand-03 $ |
---|
28 | // |
---|
29 | //--------------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // ClassName: G4IonInclAblaPhysics |
---|
32 | // |
---|
33 | // Author: P. Kaitaniemi |
---|
34 | // |
---|
35 | // Modified: |
---|
36 | // 23.06.06 V.Ivanchenko set emaxLHEP=1 TeV |
---|
37 | // 24.06.06 V.Ivanchenko fix typo |
---|
38 | // |
---|
39 | //---------------------------------------------------------------------------- |
---|
40 | // |
---|
41 | |
---|
42 | #include "G4IonInclAblaPhysics.hh" |
---|
43 | |
---|
44 | #include "G4DeuteronInelasticProcess.hh" |
---|
45 | #include "G4TritonInelasticProcess.hh" |
---|
46 | #include "G4AlphaInelasticProcess.hh" |
---|
47 | #include "G4HadronInelasticProcess.hh" |
---|
48 | |
---|
49 | #include "G4InclAblaLightIonInterface.hh" |
---|
50 | #include "G4TripathiCrossSection.hh" |
---|
51 | #include "G4TripathiLightCrossSection.hh" |
---|
52 | #include "G4IonsShenCrossSection.hh" |
---|
53 | |
---|
54 | #include "G4ParticleDefinition.hh" |
---|
55 | #include "G4ParticleTable.hh" |
---|
56 | #include "G4ProcessManager.hh" |
---|
57 | |
---|
58 | // Nuclei |
---|
59 | #include "G4IonConstructor.hh" |
---|
60 | |
---|
61 | G4IonInclAblaPhysics::G4IonInclAblaPhysics(const G4String& name, |
---|
62 | G4int verb) |
---|
63 | : G4VPhysicsConstructor(name), verbose(verb), wasActivated(false) |
---|
64 | { |
---|
65 | // INCL/ABLA light ion maximum energy is 3.0 GeV/nucleon |
---|
66 | emax_d = 2 * 3.0 * GeV; |
---|
67 | emax_t = 3 * 3.0 * GeV; |
---|
68 | emax_he3 = 3 * 3.0 * GeV; |
---|
69 | emax_alpha = 4 * 3.0 * GeV; |
---|
70 | emaxLHEP = 1.*TeV; |
---|
71 | emin = 0.*MeV; |
---|
72 | if(verbose > 1) G4cout << "### G4IonInclAblaPhysics" << G4endl; |
---|
73 | } |
---|
74 | |
---|
75 | G4IonInclAblaPhysics::~G4IonInclAblaPhysics() |
---|
76 | { |
---|
77 | if(wasActivated) { |
---|
78 | delete fTripathi; |
---|
79 | delete fTripathiLight; |
---|
80 | delete fShen; |
---|
81 | delete fLEDModel; |
---|
82 | delete fLETModel; |
---|
83 | delete fLEAModel; |
---|
84 | G4int i; |
---|
85 | G4int n = p_list.size(); |
---|
86 | for(i=0; i<n; i++) {delete p_list[i];} |
---|
87 | n = model_list.size(); |
---|
88 | for(i=0; i<n; i++) {delete model_list[i];} |
---|
89 | } |
---|
90 | } |
---|
91 | |
---|
92 | void G4IonInclAblaPhysics::ConstructProcess() |
---|
93 | { |
---|
94 | if(wasActivated) return; |
---|
95 | wasActivated = true; |
---|
96 | |
---|
97 | G4InclAblaLightIonInterface* fInclAblaIons= new G4InclAblaLightIonInterface(); |
---|
98 | model_list.push_back(fInclAblaIons); |
---|
99 | fShen = new G4IonsShenCrossSection; |
---|
100 | fTripathi = new G4TripathiCrossSection; |
---|
101 | fTripathiLight = new G4TripathiLightCrossSection; |
---|
102 | |
---|
103 | fLEDModel = new G4LEDeuteronInelastic(); |
---|
104 | fLETModel = new G4LETritonInelastic(); |
---|
105 | fLEAModel = new G4LEAlphaInelastic(); |
---|
106 | |
---|
107 | AddProcess("dInelastic", G4Deuteron::Deuteron(), fInclAblaIons, fLEDModel, emax_d); |
---|
108 | AddProcess("tInelastic",G4Triton::Triton(), fInclAblaIons, fLETModel, emax_t); |
---|
109 | AddProcess("He3Inelastic",G4He3::He3(), fInclAblaIons, 0, emax_he3); |
---|
110 | AddProcess("alphaInelastic", G4Alpha::Alpha(), fInclAblaIons, fLEAModel, emax_alpha); |
---|
111 | // Support for light ions heavier than Alpha will be included in a future release of INCL/ABLA |
---|
112 | // AddProcess("ionInelastic",G4GenericIon::GenericIon(), fInclAblaIons, 0); |
---|
113 | } |
---|
114 | |
---|
115 | void G4IonInclAblaPhysics::AddProcess(const G4String& name, |
---|
116 | G4ParticleDefinition* p, |
---|
117 | G4HadronicInteraction* hmodel, |
---|
118 | G4HadronicInteraction* lmodel, |
---|
119 | const G4double inclEnergyUpperLimit = 3.0 * GeV) |
---|
120 | { |
---|
121 | G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p); |
---|
122 | p_list.push_back(hadi); |
---|
123 | G4ProcessManager* pManager = p->GetProcessManager(); |
---|
124 | pManager->AddDiscreteProcess(hadi); |
---|
125 | hadi->AddDataSet(fShen); |
---|
126 | hadi->AddDataSet(fTripathi); |
---|
127 | hadi->AddDataSet(fTripathiLight); |
---|
128 | hmodel->SetMinEnergy(emin); |
---|
129 | hmodel->SetMaxEnergy(inclEnergyUpperLimit); |
---|
130 | hadi->RegisterMe(hmodel); |
---|
131 | if(lmodel) { |
---|
132 | lmodel->SetMinEnergy(inclEnergyUpperLimit - MeV); |
---|
133 | lmodel->SetMaxEnergy(emaxLHEP); |
---|
134 | hadi->RegisterMe(lmodel); |
---|
135 | } |
---|
136 | if(verbose > 1) { |
---|
137 | G4cout << "Register " << hadi->GetProcessName() |
---|
138 | << " for " << p->GetParticleName() |
---|
139 | << " INCL/ABLA for E(MeV)= " << emin << " - " << inclEnergyUpperLimit; |
---|
140 | if(lmodel) { |
---|
141 | G4cout << " LHEP for E(MeV)= " << inclEnergyUpperLimit-MeV << " - " << emaxLHEP; |
---|
142 | } |
---|
143 | G4cout << G4endl; |
---|
144 | } |
---|
145 | } |
---|
146 | |
---|
147 | void G4IonInclAblaPhysics::ConstructParticle() |
---|
148 | { |
---|
149 | // Construct light ions |
---|
150 | G4IonConstructor pConstructor; |
---|
151 | pConstructor.ConstructParticle(); |
---|
152 | } |
---|