Geant4  10.02
G4HadronElasticPhysics.cc
Go to the documentation of this file.
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: G4HadronElasticPhysics.cc 88356 2015-02-16 09:00:15Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronElasticPhysics
31 //
32 // Author: 23 November 2006 V. Ivanchenko
33 //
34 // Modified:
35 // 21.03.2007 V.Ivanchenko Use G4BGGNucleonElasticXS and G4BGGPionElasticXS;
36 // Reduce thresholds for HE and Q-models to zero
37 // 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
38 // 29.07.2010 V.Ivanchenko rename this class from G4HadronHElasticPhysics to
39 // G4HadronElasticPhysics, old version of the class
40 // is renamed to G4HadronElasticPhysics93
41 //
42 //----------------------------------------------------------------------------
43 //
44 // CHIPS for sampling scattering for p and n
45 // Glauber model for samplimg of high energy pi+- (E > 1GeV)
46 // LHEP sampling model for the other particle
47 // BBG cross sections for p, n and pi+-
48 // LHEP cross sections for other particles
49 
51 
52 #include "G4SystemOfUnits.hh"
53 #include "G4ParticleDefinition.hh"
54 #include "G4ProcessManager.hh"
55 
56 #include "G4MesonConstructor.hh"
57 #include "G4BaryonConstructor.hh"
58 #include "G4IonConstructor.hh"
59 
61 #include "G4HadronElastic.hh"
62 #include "G4ChipsElasticModel.hh"
64 #include "G4AntiNuclElastic.hh"
65 
66 #include "G4BGGNucleonElasticXS.hh"
67 #include "G4BGGPionElasticXS.hh"
68 
70 
72 
73 #include "G4NeutronElasticXS.hh"
74 
75 #include "G4CrossSectionElastic.hh"
76 
77 // factory
79 //
81 //
85 
87  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver)
88 {
89  if(verbose > 1) {
90  G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
91  << G4endl;
92  }
93 }
94 
96 {}
97 
99 {
100  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
101  G4MesonConstructor pMesonConstructor;
102  pMesonConstructor.ConstructParticle();
103 
104  G4BaryonConstructor pBaryonConstructor;
105  pBaryonConstructor.ConstructParticle();
106 
107  G4IonConstructor pConstructor;
108  pConstructor.ConstructParticle();
109 }
110 
112 {
113  if(wasActivated) { return; }
114  wasActivated = true;
115 
116  const G4double elimitPi = 1.0*GeV;
117  const G4double elimitAntiNuc = 100.*MeV;
118  const G4double delta = 0.1*MeV;
119  if(verbose > 1) {
120  G4cout << "### HadronElasticPhysics::ConstructProcess: Elimit for pi "
121  << elimitPi/GeV << " GeV" << G4endl;
122  G4cout << " for anti-neuclei "
123  << elimitAntiNuc/GeV << " GeV" << G4endl;
124  }
125 
126  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
127  anuc->SetMinEnergy(elimitAntiNuc);
128  G4CrossSectionElastic* anucxs =
130 
131  G4HadronElastic* lhep0 = new G4HadronElastic();
132  G4HadronElastic* lhep1 = new G4HadronElastic();
133  G4HadronElastic* lhep2 = new G4HadronElastic();
134  lhep1->SetMaxEnergy(elimitPi+delta);
135  lhep2->SetMaxEnergy(elimitAntiNuc+delta);
136 
139 
141  he->SetMinEnergy(elimitPi);
142 
143  aParticleIterator->reset();
144  while( (*aParticleIterator)() )
145  {
146  G4ParticleDefinition* particle = aParticleIterator->value();
147  G4ProcessManager* pmanager = particle->GetProcessManager();
148  G4String pname = particle->GetParticleName();
149  if(pname == "anti_lambda" ||
150  pname == "anti_neutron" ||
151  pname == "anti_omega-" ||
152  pname == "anti_sigma-" ||
153  pname == "anti_sigma+" ||
154  pname == "anti_xi-" ||
155  pname == "anti_xi0" ||
156  pname == "lambda" ||
157  pname == "omega-" ||
158  pname == "sigma-" ||
159  pname == "sigma+" ||
160  pname == "xi-" ||
161  pname == "alpha" ||
162  pname == "deuteron" ||
163  pname == "triton"
164  ) {
165 
167  hel->RegisterMe(lhep0);
168  pmanager->AddDiscreteProcess(hel);
169  if(verbose > 1) {
170  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
171  << " added for " << particle->GetParticleName() << G4endl;
172  }
173 
174  } else if(pname == "proton") {
175 
177  //hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
178 
179  // hel->AddDataSet(new G4ChipsProtonElasticXS());
181 
182  hel->RegisterMe(chipsp);
183  pmanager->AddDiscreteProcess(hel);
184  if(verbose > 1) {
185  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
186  << " added for " << particle->GetParticleName() << G4endl;
187  }
188 
189  } else if(pname == "neutron") {
190 
195  if(verbose > 1) {
196  G4cout << "### HadronElasticPhysics: "
198  << " added for " << particle->GetParticleName() << G4endl;
199  }
200 
201  } else if (pname == "pi+" || pname == "pi-") {
202 
204  hel->AddDataSet(new G4BGGPionElasticXS(particle));
205  hel->RegisterMe(lhep1);
206  hel->RegisterMe(he);
207  pmanager->AddDiscreteProcess(hel);
208  if(verbose > 1) {
209  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
210  << " added for " << particle->GetParticleName() << G4endl;
211  }
212 
213  } else if(pname == "kaon-" ||
214  pname == "kaon+" ||
215  pname == "kaon0S" ||
216  pname == "kaon0L"
217  ) {
218 
220  hel->RegisterMe(lhep0);
221  pmanager->AddDiscreteProcess(hel);
222  if(verbose > 1) {
223  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
224  << " added for " << particle->GetParticleName() << G4endl;
225  }
226 
227  } else if(
228  pname == "anti_proton" ||
229  pname == "anti_alpha" ||
230  pname == "anti_deuteron" ||
231  pname == "anti_triton" ||
232  pname == "anti_He3" ) {
233 
235  hel->AddDataSet(anucxs);
236  hel->RegisterMe(lhep2);
237  hel->RegisterMe(anuc);
238  pmanager->AddDiscreteProcess(hel);
239  }
240  }
241 }
242 
243 
245 {
246  return neutronModel;
247 }
248 
250 {
251  return neutronProcess;
252 }
253 
254 
static const double MeV
Definition: G4SIunits.hh:211
G4HadronElastic * GetNeutronModel()
G4HadronicProcess * GetNeutronProcess()
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:89
static void ConstructParticle()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
const G4String & GetParticleName() const
static void ConstructParticle()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
#define aParticleIterator
static G4ThreadLocal G4bool wasActivated
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronElasticPhysics)
static G4CrossSectionDataSetRegistry * Instance()
static const double GeV
Definition: G4SIunits.hh:214
const G4String & GetPhysicsName() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
static G4ThreadLocal G4HadronElastic * neutronModel
static G4ThreadLocal G4HadronicProcess * neutronProcess
static const char * Default_Name()
void SetMaxEnergy(const G4double anEnergy)
static const char * Default_Name()
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76