Geant4  10.00.p03
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 73281 2013-08-23 08:21:37Z 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 #include "G4NeutronElasticXS.hh"
69 
71 
74 
76 #include "G4CrossSectionElastic.hh"
77 
78 // factory
80 //
82 //
86 
88  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver)
89 {
90  if(verbose > 1) {
91  G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
92  << G4endl;
93  }
94 }
95 
97 {}
98 
100 {
101  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
102  G4MesonConstructor pMesonConstructor;
103  pMesonConstructor.ConstructParticle();
104 
105  G4BaryonConstructor pBaryonConstructor;
106  pBaryonConstructor.ConstructParticle();
107 
108  G4IonConstructor pConstructor;
109  pConstructor.ConstructParticle();
110 }
111 
113 {
114  if(wasActivated) { return; }
115  wasActivated = true;
116 
117  const G4double elimitPi = 1.0*GeV;
118  const G4double elimitAntiNuc = 100.*MeV;
119  const G4double delta = 0.1*MeV;
120  if(verbose > 1) {
121  G4cout << "### HadronElasticPhysics::ConstructProcess: Elimit for pi "
122  << elimitPi/GeV << " GeV" << G4endl;
123  G4cout << " for anti-neuclei "
124  << elimitAntiNuc/GeV << " GeV" << G4endl;
125  }
126 
127  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
128  anuc->SetMinEnergy(elimitAntiNuc);
129  G4CrossSectionElastic* anucxs =
131 
132  G4HadronElastic* lhep0 = new G4HadronElastic();
133  G4HadronElastic* lhep1 = new G4HadronElastic();
134  G4HadronElastic* lhep2 = new G4HadronElastic();
135  lhep1->SetMaxEnergy(elimitPi+delta);
136  lhep2->SetMaxEnergy(elimitAntiNuc+delta);
137 
140 
142  he->SetMinEnergy(elimitPi);
143 
144  aParticleIterator->reset();
145  while( (*aParticleIterator)() )
146  {
147  G4ParticleDefinition* particle = aParticleIterator->value();
148  G4ProcessManager* pmanager = particle->GetProcessManager();
149  G4String pname = particle->GetParticleName();
150  if(pname == "anti_lambda" ||
151  pname == "anti_neutron" ||
152  pname == "anti_omega-" ||
153  pname == "anti_sigma-" ||
154  pname == "anti_sigma+" ||
155  pname == "anti_xi-" ||
156  pname == "anti_xi0" ||
157  pname == "lambda" ||
158  pname == "omega-" ||
159  pname == "sigma-" ||
160  pname == "sigma+" ||
161  pname == "xi-" ||
162  pname == "alpha" ||
163  pname == "deuteron" ||
164  pname == "triton"
165  ) {
166 
168  hel->RegisterMe(lhep0);
169  pmanager->AddDiscreteProcess(hel);
170  if(verbose > 1) {
171  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
172  << " added for " << particle->GetParticleName() << G4endl;
173  }
174 
175  } else if(pname == "proton") {
176 
178  //hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
179 
180  // hel->AddDataSet(new G4ChipsProtonElasticXS());
182 
183  hel->RegisterMe(chipsp);
184  pmanager->AddDiscreteProcess(hel);
185  if(verbose > 1) {
186  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
187  << " added for " << particle->GetParticleName() << G4endl;
188  }
189 
190  } else if(pname == "neutron") {
191 
193  //neutronProcess->AddDataSet(new G4BGGNucleonElasticXS(particle));
197  if(verbose > 1) {
198  G4cout << "### HadronElasticPhysics: "
200  << " added for " << particle->GetParticleName() << G4endl;
201  }
202 
203  } else if (pname == "pi+" || pname == "pi-") {
204 
206  hel->AddDataSet(new G4BGGPionElasticXS(particle));
207  hel->RegisterMe(lhep1);
208  hel->RegisterMe(he);
209  pmanager->AddDiscreteProcess(hel);
210  if(verbose > 1) {
211  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
212  << " added for " << particle->GetParticleName() << G4endl;
213  }
214 
215  } else if(pname == "kaon-" ||
216  pname == "kaon+" ||
217  pname == "kaon0S" ||
218  pname == "kaon0L"
219  ) {
220 
222  hel->RegisterMe(lhep0);
223  pmanager->AddDiscreteProcess(hel);
224  if(verbose > 1) {
225  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
226  << " added for " << particle->GetParticleName() << G4endl;
227  }
228 
229  } else if(
230  pname == "anti_proton" ||
231  pname == "anti_alpha" ||
232  pname == "anti_deuteron" ||
233  pname == "anti_triton" ||
234  pname == "anti_He3" ) {
235 
237  hel->AddDataSet(anucxs);
238  hel->RegisterMe(lhep2);
239  hel->RegisterMe(anuc);
240  pmanager->AddDiscreteProcess(hel);
241  }
242  }
243 }
244 
245 
static const double MeV
Definition: G4SIunits.hh:193
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:52
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 const char * Default_Name()
static G4CrossSectionDataSetRegistry * Instance()
static const double GeV
Definition: G4SIunits.hh:196
const G4String & GetPhysicsName() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
static G4ThreadLocal G4HadronElastic * neutronModel
static G4ThreadLocal G4HadronicProcess * neutronProcess
void SetMaxEnergy(const G4double anEnergy)
static const char * Default_Name()
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76