source: trunk/source/physics_lists/builders/src/G4IonInclAblaPhysics.cc@ 1331

Last change on this file since 1331 was 1315, checked in by garnier, 15 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 5.9 KB
Line 
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.2 2010/06/03 15:03:53 gunter Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
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
61G4IonInclAblaPhysics::G4IonInclAblaPhysics(G4int ver)
62 : G4VPhysicsConstructor("IonInclAbla"), verbose(ver), wasActivated(false)
63{
64 // INCL/ABLA light ion maximum energy is 3.0 GeV/nucleon
65 emax_d = 2 * 3.0 * GeV;
66 emax_t = 3 * 3.0 * GeV;
67 emax_he3 = 3 * 3.0 * GeV;
68 emax_alpha = 4 * 3.0 * GeV;
69 emaxLHEP = 1.*TeV;
70 emin = 0.*MeV;
71 if(verbose > 1) G4cout << "### G4IonInclAblaPhysics" << G4endl;
72}
73
74G4IonInclAblaPhysics::G4IonInclAblaPhysics(const G4String& name,
75 G4int ver)
76 : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
77{
78 // INCL/ABLA light ion maximum energy is 3.0 GeV/nucleon
79 emax_d = 2 * 3.0 * GeV;
80 emax_t = 3 * 3.0 * GeV;
81 emax_he3 = 3 * 3.0 * GeV;
82 emax_alpha = 4 * 3.0 * GeV;
83 emaxLHEP = 1.*TeV;
84 emin = 0.*MeV;
85 if(verbose > 1) G4cout << "### G4IonInclAblaPhysics" << G4endl;
86}
87
88G4IonInclAblaPhysics::~G4IonInclAblaPhysics()
89{
90 if(wasActivated) {
91 delete fTripathi;
92 delete fTripathiLight;
93 delete fShen;
94 delete fLEDModel;
95 delete fLETModel;
96 delete fLEAModel;
97 G4int i;
98 G4int n = p_list.size();
99 for(i=0; i<n; i++) {delete p_list[i];}
100 n = model_list.size();
101 for(i=0; i<n; i++) {delete model_list[i];}
102 }
103}
104
105void G4IonInclAblaPhysics::ConstructProcess()
106{
107 if(wasActivated) return;
108 wasActivated = true;
109
110 G4InclAblaLightIonInterface* fInclAblaIons= new G4InclAblaLightIonInterface();
111 model_list.push_back(fInclAblaIons);
112 fShen = new G4IonsShenCrossSection;
113 fTripathi = new G4TripathiCrossSection;
114 fTripathiLight = new G4TripathiLightCrossSection;
115
116 fLEDModel = new G4LEDeuteronInelastic();
117 fLETModel = new G4LETritonInelastic();
118 fLEAModel = new G4LEAlphaInelastic();
119
120 AddProcess("dInelastic", G4Deuteron::Deuteron(), fInclAblaIons, fLEDModel, emax_d);
121 AddProcess("tInelastic",G4Triton::Triton(), fInclAblaIons, fLETModel, emax_t);
122 AddProcess("He3Inelastic",G4He3::He3(), fInclAblaIons, 0, emax_he3);
123 AddProcess("alphaInelastic", G4Alpha::Alpha(), fInclAblaIons, fLEAModel, emax_alpha);
124 // Support for light ions heavier than Alpha will be included in a future release of INCL/ABLA
125 // AddProcess("ionInelastic",G4GenericIon::GenericIon(), fInclAblaIons, 0);
126}
127
128void G4IonInclAblaPhysics::AddProcess(const G4String& name,
129 G4ParticleDefinition* p,
130 G4HadronicInteraction* hmodel,
131 G4HadronicInteraction* lmodel,
132 const G4double inclEnergyUpperLimit = 3.0 * GeV)
133{
134 G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p);
135 p_list.push_back(hadi);
136 G4ProcessManager* pManager = p->GetProcessManager();
137 pManager->AddDiscreteProcess(hadi);
138 hadi->AddDataSet(fShen);
139 hadi->AddDataSet(fTripathi);
140 hadi->AddDataSet(fTripathiLight);
141 hmodel->SetMinEnergy(emin);
142 hmodel->SetMaxEnergy(inclEnergyUpperLimit);
143 hadi->RegisterMe(hmodel);
144 if(lmodel) {
145 lmodel->SetMinEnergy(inclEnergyUpperLimit - MeV);
146 lmodel->SetMaxEnergy(emaxLHEP);
147 hadi->RegisterMe(lmodel);
148 }
149 if(verbose > 1) {
150 G4cout << "Register " << hadi->GetProcessName()
151 << " for " << p->GetParticleName()
152 << " INCL/ABLA for E(MeV)= " << emin << " - " << inclEnergyUpperLimit;
153 if(lmodel) {
154 G4cout << " LHEP for E(MeV)= " << inclEnergyUpperLimit-MeV << " - " << emaxLHEP;
155 }
156 G4cout << G4endl;
157 }
158}
159
160void G4IonInclAblaPhysics::ConstructParticle()
161{
162 // Construct light ions
163 G4IonConstructor pConstructor;
164 pConstructor.ConstructParticle();
165}
Note: See TracBrowser for help on using the repository browser.