source: trunk/source/physics_lists/builders/src/G4HadronHElasticPhysics.cc @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

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