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

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

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

File size: 6.4 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: G4HadronElasticPhysicsHP.cc,v 1.2 2010/06/03 14:28:32 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: G4HadronElasticPhysicsHP
32//
33// Author: 3 June 2010 V. Ivanchenko
34//
35// Modified:
36//
37//----------------------------------------------------------------------------
38//
39// CHIPS for sampling scattering for p and n
40// HP model for n with E < 20 MeV
41// Glauber model for samplimg of high energy pi+- (E > 1GeV)
42// LHEP sampling model for the other particle
43// BBG cross sections for n, p and pi+-
44// HP cross sections for n n with E < 20 MeV
45// LHEP cross sections for other particles
46
47#include "G4HadronElasticPhysicsHP.hh"
48
49#include "G4ParticleDefinition.hh"
50#include "G4ProcessManager.hh"
51
52#include "G4MesonConstructor.hh"
53#include "G4BaryonConstructor.hh"
54#include "G4IonConstructor.hh"
55#include "G4Neutron.hh"
56
57#include "G4WHadronElasticProcess.hh"
58#include "G4VHadronElastic.hh"
59#include "G4CHIPSElastic.hh"
60#include "G4ElasticHadrNucleusHE.hh"
61#include "G4NeutronHPElastic.hh"
62#include "G4UElasticCrossSection.hh"
63#include "G4BGGNucleonElasticXS.hh"
64#include "G4BGGPionElasticXS.hh"
65#include "G4NeutronElasticXS.hh"
66
67#include "G4NeutronHPElastic.hh"
68#include "G4NeutronHPElasticData.hh"
69
70G4HadronElasticPhysicsHP::G4HadronElasticPhysicsHP(G4int ver)
71 : G4VPhysicsConstructor("hElasticWEL_CHIPS_HP"), verbose(ver),
72 wasActivated(false)
73{
74 if(verbose > 1) {
75 G4cout << "### G4HadronElasticPhysicsHP: " << GetPhysicsName()
76 << G4endl;
77 }
78}
79
80G4HadronElasticPhysicsHP::~G4HadronElasticPhysicsHP()
81{}
82
83void G4HadronElasticPhysicsHP::ConstructParticle()
84{
85 // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
86 G4MesonConstructor pMesonConstructor;
87 pMesonConstructor.ConstructParticle();
88
89 G4BaryonConstructor pBaryonConstructor;
90 pBaryonConstructor.ConstructParticle();
91
92 // Construct light ions
93 G4IonConstructor pConstructor;
94 pConstructor.ConstructParticle();
95}
96
97void G4HadronElasticPhysicsHP::ConstructProcess()
98{
99 if(wasActivated) return;
100 wasActivated = true;
101
102 G4double elimit = 1.0*GeV;
103 if(verbose > 1) {
104 G4cout << "### HadronElasticPhysicsHP Construct Processes with HE limit "
105 << elimit << " MeV" << G4endl;
106 }
107
108 G4VHadronElastic* plep0 = new G4VHadronElastic();
109 G4VHadronElastic* plep1 = new G4VHadronElastic();
110 plep1->SetMaxEnergy(elimit);
111
112 G4CHIPSElastic* chipsp = new G4CHIPSElastic();
113 G4CHIPSElastic* chipsn = new G4CHIPSElastic();
114
115 G4ElasticHadrNucleusHE* he = new G4ElasticHadrNucleusHE();
116 he->SetMinEnergy(elimit);
117
118 theParticleIterator->reset();
119 while( (*theParticleIterator)() )
120 {
121 G4ParticleDefinition* particle = theParticleIterator->value();
122 G4String pname = particle->GetParticleName();
123 if(pname == "anti_lambda" ||
124 pname == "anti_neutron" ||
125 pname == "anti_omega-" ||
126 pname == "anti_proton" ||
127 pname == "anti_sigma-" ||
128 pname == "anti_sigma+" ||
129 pname == "anti_xi-" ||
130 pname == "anti_xi0" ||
131 pname == "kaon-" ||
132 pname == "kaon+" ||
133 pname == "kaon0S" ||
134 pname == "kaon0L" ||
135 pname == "lambda" ||
136 pname == "omega-" ||
137 pname == "pi-" ||
138 pname == "pi+" ||
139 pname == "proton" ||
140 pname == "sigma-" ||
141 pname == "sigma+" ||
142 pname == "xi-" ||
143 pname == "alpha" ||
144 pname == "deuteron" ||
145 pname == "triton") {
146
147 G4ProcessManager* pmanager = particle->GetProcessManager();
148 G4WHadronElasticProcess* hel = new G4WHadronElasticProcess();
149 if(pname == "proton") {
150 hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
151 hel->RegisterMe(chipsp);
152 } else if (pname == "pi+" || pname == "pi-") {
153 hel->AddDataSet(new G4BGGPionElasticXS(particle));
154 hel->RegisterMe(plep1);
155 hel->RegisterMe(he);
156 } else {
157 hel->RegisterMe(plep0);
158 }
159 pmanager->AddDiscreteProcess(hel);
160 if(verbose > 1) {
161 G4cout << "### HadronElasticPhysicsHP: " << hel->GetProcessName()
162 << " added for " << particle->GetParticleName() << G4endl;
163 }
164
165 // neutron case
166 } else if(pname == "neutron") {
167
168 G4ProcessManager* pmanager = particle->GetProcessManager();
169 G4WHadronElasticProcess* hel = new G4WHadronElasticProcess();
170 hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
171 hel->RegisterMe(chipsn);
172
173 chipsn->SetMinEnergy(19.5*MeV);
174 G4NeutronHPElastic* hp = new G4NeutronHPElastic();
175 hel->RegisterMe(hp);
176 hel->AddDataSet(new G4NeutronHPElasticData());
177
178 pmanager->AddDiscreteProcess(hel);
179
180 if(verbose > 1) {
181 G4cout << "### HadronElasticPhysicsHP: " << hel->GetProcessName()
182 << " added for " << particle->GetParticleName() << G4endl;
183 }
184 }
185 }
186}
187
188
Note: See TracBrowser for help on using the repository browser.