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

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

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

File size: 6.5 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.9 2010/06/03 14:28:32 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
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           << G4endl; 
73  }
74}
75
76G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver, G4bool,
77                                                 const G4String&)
78  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver), 
79    wasActivated(false)
80{
81  if(verbose > 1) { 
82    G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName() 
83           << G4endl; 
84  }
85}
86
87G4HadronHElasticPhysics::~G4HadronHElasticPhysics()
88{}
89
90void G4HadronHElasticPhysics::ConstructParticle()
91{
92  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
93  G4MesonConstructor pMesonConstructor;
94  pMesonConstructor.ConstructParticle();
95
96  G4BaryonConstructor pBaryonConstructor;
97  pBaryonConstructor.ConstructParticle();
98
99  //  Construct light ions
100  G4IonConstructor pConstructor;
101  pConstructor.ConstructParticle(); 
102}
103
104void G4HadronHElasticPhysics::ConstructProcess()
105{
106  if(wasActivated) { return; }
107  wasActivated = true;
108
109  G4double elimit = 1.0*GeV;
110  if(verbose > 1) {
111    G4cout << "### HadronElasticPhysics Construct Processes with HE limit " 
112           << elimit << " MeV" << G4endl;
113  }
114
115  G4VHadronElastic* plep0 = new G4VHadronElastic();
116  G4VHadronElastic* plep1 = new G4VHadronElastic();
117  plep1->SetMaxEnergy(elimit);
118
119  G4CHIPSElastic* chipsp = new G4CHIPSElastic();
120  G4CHIPSElastic* chipsn = new G4CHIPSElastic();
121
122  G4ElasticHadrNucleusHE* he = new G4ElasticHadrNucleusHE(); 
123  he->SetMinEnergy(elimit);
124
125  theParticleIterator->reset();
126  while( (*theParticleIterator)() )
127  {
128    G4ParticleDefinition* particle = theParticleIterator->value();
129    G4String pname = particle->GetParticleName();
130    if(pname == "anti_lambda"  ||
131       pname == "anti_neutron" ||
132       pname == "anti_omega-"  || 
133       pname == "anti_proton"  || 
134       pname == "anti_sigma-"  || 
135       pname == "anti_sigma+"  || 
136       pname == "anti_xi-"  || 
137       pname == "anti_xi0"  || 
138       pname == "kaon-"     || 
139       pname == "kaon+"     || 
140       pname == "kaon0S"    || 
141       pname == "kaon0L"    || 
142       pname == "lambda"    || 
143       pname == "omega-"    || 
144       pname == "pi-"       || 
145       pname == "pi+"       || 
146       pname == "proton"    || 
147       pname == "sigma-"    || 
148       pname == "sigma+"    || 
149       pname == "xi-"       || 
150       pname == "alpha"     ||
151       pname == "deuteron"  ||
152       pname == "triton") {
153     
154      G4ProcessManager* pmanager = particle->GetProcessManager();
155      G4WHadronElasticProcess* hel = new G4WHadronElasticProcess();
156      if(pname == "proton") { 
157        hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
158        hel->RegisterMe(chipsp);
159      } else if (pname == "pi+" || pname == "pi-") { 
160        hel->AddDataSet(new G4BGGPionElasticXS(particle));
161        hel->RegisterMe(plep1);
162        hel->RegisterMe(he);
163      } else {
164        hel->RegisterMe(plep0);
165      }
166      pmanager->AddDiscreteProcess(hel);
167      if(verbose > 1) {
168        G4cout << "### HadronHElasticPhysics: " << hel->GetProcessName()
169               << " added for " << particle->GetParticleName() << G4endl;
170      }
171
172      // neutron case
173    } else if(pname == "neutron") {   
174
175      G4ProcessManager* pmanager = particle->GetProcessManager();
176      G4WHadronElasticProcess* hel = new G4WHadronElasticProcess();
177      hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
178      hel->RegisterMe(chipsn);
179
180      pmanager->AddDiscreteProcess(hel);
181
182      if(verbose > 1) {
183        G4cout << "### HadronHElasticPhysics: " << hel->GetProcessName()
184               << " added for " << particle->GetParticleName() << G4endl;
185      }
186    }
187  }
188}
189
190
Note: See TracBrowser for help on using the repository browser.