Geant4  10.02.p01
G4HadronHElasticPhysics.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: G4HadronHElasticPhysics.cc 90757 2015-06-09 07:45:14Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronHElasticPhysics
31 //
32 // Author: 23 November 2006 V. Ivanchenko
33 //
34 // Modified:
35 // 21.03.07 (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 // 06.06.2014 A.Ribon Use the current best elastic models.
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 
49 
50 #include "G4SystemOfUnits.hh"
51 #include "G4ParticleDefinition.hh"
52 #include "G4ProcessManager.hh"
53 
54 #include "G4MesonConstructor.hh"
55 #include "G4BaryonConstructor.hh"
56 #include "G4IonConstructor.hh"
57 #include "G4Neutron.hh"
58 
60 #include "G4HadronElastic.hh"
61 #include "G4ChipsElasticModel.hh"
62 #include "G4AntiNuclElastic.hh"
63 #include "G4DiffuseElastic.hh"
65 
66 #include "G4CrossSectionElastic.hh"
67 #include "G4BGGNucleonElasticXS.hh"
68 #include "G4BGGPionElasticXS.hh"
69 #include "G4NeutronElasticXS.hh"
77 
78 #include "G4LMsdGenerator.hh"
79 #include "G4DiffElasticRatio.hh"
80 #include "G4AutoDelete.hh"
81 
82 // factory
84 //
86 
88 
90  : G4VPhysicsConstructor( "hElastic_BEST" ), verbose( ver ),
91  fDiffraction(diffraction)
92 {
93  if ( verbose > 1 ) {
94  G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
95  << " low-mass diffraction: " << fDiffraction << G4endl;
96  }
97 }
98 
100 
101 
103  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
104  G4MesonConstructor pMesonConstructor;
105  pMesonConstructor.ConstructParticle();
106 
107  G4BaryonConstructor pBaryonConstructor;
108  pBaryonConstructor.ConstructParticle();
109 
110  // Construct light ions
111  G4IonConstructor pConstructor;
112  pConstructor.ConstructParticle();
113 }
114 
116 
117  const G4double elimitDiffuse = 0.0;
118  const G4double elimitAntiNuc = 100.0*MeV;
119  const G4double delta = 0.1*MeV;
120 
121  if ( verbose > 1 ) {
122  G4cout << "### HadronHElasticPhysics::ConstructProcess: lower energy limit for DiffuseElastic : "
123  << elimitDiffuse/GeV << " GeV" << G4endl
124  << " transition energy for anti-nuclei : "
125  << elimitAntiNuc/GeV << " GeV" << G4endl;
126  }
127 
128  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
129  anuc->SetMinEnergy( elimitAntiNuc );
130  G4CrossSectionElastic* anucxs =
132 
133  G4HadronElastic* lhep = new G4HadronElastic();
134  lhep->SetMaxEnergy( elimitAntiNuc + delta );
135 
136  // Three instances of Chips elastic model: one used everywhere,
137  // one used below a energy threshold, and one used only for the
138  // hydrogen element.
141  chips2->SetMaxEnergy( elimitAntiNuc + delta );
143  const G4ElementTable* theElementTable = G4Element::GetElementTable();
144  for ( size_t i_ele = 0; i_ele < theElementTable->size(); i_ele++ ) {
145  G4Element* element = (*theElementTable)[ i_ele ];
146  if ( element->GetZ() > 1.0 ) chipsH->DeActivateFor( element );
147  }
148 
149  G4NuclNuclDiffuseElastic* diffuseNuclNuclElastic = new G4NuclNuclDiffuseElastic();
150  diffuseNuclNuclElastic->SetMinEnergy( elimitDiffuse );
151 
152  G4VCrossSectionDataSet* theComponentGGNuclNuclData =
154 
155  G4LMsdGenerator* diffGen = 0;
156  if(fDiffraction) {
157  diffGen = new G4LMsdGenerator("LMsdDiffraction");
160  }
161 
162  aParticleIterator->reset();
163  while( (*aParticleIterator)() ) {
164 
165  G4ParticleDefinition* particle = aParticleIterator->value();
166  G4ProcessManager* pmanager = particle->GetProcessManager();
167  G4String pname = particle->GetParticleName();
168 
169  if ( pname == "anti_lambda" ||
170  pname == "anti_sigma-" ||
171  pname == "anti_sigma0" ||
172  pname == "anti_sigma+" ||
173  pname == "anti_xi-" ||
174  pname == "anti_xi0" ||
175  pname == "anti_omega-"
176  ) {
179  hel->RegisterMe( chips1 );
180  pmanager->AddDiscreteProcess( hel );
181  if ( verbose > 1 ) {
182  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
183  << " added for " << particle->GetParticleName() << G4endl;
184  }
185 
186  } else if ( pname == "lambda" ||
187  pname == "sigma-" ||
188  pname == "sigma0" ||
189  pname == "sigma+" ||
190  pname == "xi-" ||
191  pname == "xi0" ||
192  pname == "omega-"
193  ) {
196  hel->RegisterMe( chips1 );
197  pmanager->AddDiscreteProcess( hel );
198  if ( verbose > 1 ) {
199  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
200  << " added for " << particle->GetParticleName() << G4endl;
201  }
202 
203  } else if ( pname == "proton" ) {
205  hel->AddDataSet( new G4BGGNucleonElasticXS( particle ) );
206  // To preserve reproducibility, a different instance of
207  // G4DiffuseElastic must be used for each particle type.
208  G4DiffuseElastic* protonDiffuseElastic = new G4DiffuseElastic();
209  protonDiffuseElastic->SetMinEnergy( elimitDiffuse );
210  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
211  hel->RegisterMe( protonDiffuseElastic );
212  pmanager->AddDiscreteProcess( hel );
213  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
214  if ( verbose > 1 ) {
215  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
216  << " added for " << particle->GetParticleName() << G4endl;
217  }
218 
219  } else if ( pname == "neutron" ) {
222  // To preserve reproducibility, a different instance of
223  // G4DiffuseElastic must be used for each particle type.
224  G4DiffuseElastic* neutronDiffuseElastic = new G4DiffuseElastic();
225  neutronDiffuseElastic->SetMinEnergy( elimitDiffuse );
226  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
227  hel->RegisterMe( neutronDiffuseElastic );
228  pmanager->AddDiscreteProcess( hel );
229  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
230  if ( verbose > 1 ) {
231  G4cout << "### HadronElasticPhysics: "
232  << hel->GetProcessName()
233  << " added for " << particle->GetParticleName() << G4endl;
234  }
235 
236  } else if ( pname == "pi-" ) {
238  hel->AddDataSet( new G4BGGPionElasticXS( particle ) );
239  // To preserve reproducibility, a different instance of
240  // G4DiffuseElastic must be used for each particle type.
241  G4DiffuseElastic* pionMinusDiffuseElastic = new G4DiffuseElastic();
242  pionMinusDiffuseElastic->SetMinEnergy( elimitDiffuse );
243  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
244  hel->RegisterMe( pionMinusDiffuseElastic );
245  pmanager->AddDiscreteProcess( hel );
246  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
247  if ( verbose > 1 ) {
248  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
249  << " added for " << particle->GetParticleName() << G4endl;
250  }
251 
252  } else if ( pname == "pi+" ) {
254  hel->AddDataSet( new G4BGGPionElasticXS( particle ) );
255  // To preserve reproducibility, a different instance of
256  // G4DiffuseElastic must be used for each particle type.
257  G4DiffuseElastic* pionPlusDiffuseElastic = new G4DiffuseElastic();
258  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
259  pionPlusDiffuseElastic->SetMinEnergy( elimitDiffuse );
260  hel->RegisterMe( pionPlusDiffuseElastic );
261  pmanager->AddDiscreteProcess( hel );
262  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
263  if ( verbose > 1 ) {
264  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
265  << " added for " << particle->GetParticleName() << G4endl;
266  }
267 
268  } else if ( pname == "kaon-" ||
269  pname == "kaon+" ||
270  pname == "kaon0S" ||
271  pname == "kaon0L"
272  ) {
274  if ( pname == "kaon-" ) {
276  } else if ( pname == "kaon+" ) {
278  } else {
280  }
281  hel->RegisterMe( chips1 );
282  pmanager->AddDiscreteProcess( hel );
283  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
284  if ( verbose > 1 ) {
285  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
286  << " added for " << particle->GetParticleName() << G4endl;
287  }
288 
289  } else if (
290  pname == "deuteron" ||
291  pname == "triton" ||
292  pname == "He3" ||
293  pname == "alpha"
294  ) {
296  hel->AddDataSet( theComponentGGNuclNuclData );
297  // To preserve reproducibility, replace temporarily
298  // G4NuclNuclDiffuseElastic with the Gheisha elastic model.
299  //hel->RegisterMe( diffuseNuclNuclElastic );
300  G4HadronElastic* lhepLightIon = new G4HadronElastic();
301  hel->RegisterMe( lhepLightIon );
302  pmanager->AddDiscreteProcess( hel );
303  if ( verbose > 1 ) {
304  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
305  << " added for " << particle->GetParticleName() << G4endl;
306  }
307 
308  } else if ( pname == "anti_proton" || pname == "anti_neutron" ) {
310  hel->AddDataSet( anucxs );
311  hel->RegisterMe( chips2 );
312  hel->RegisterMe( anuc );
313  pmanager->AddDiscreteProcess( hel );
314  if ( verbose > 1 ) {
315  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
316  << " added for " << particle->GetParticleName() << G4endl;
317  }
318 
319  } else if ( pname == "anti_deuteron" ||
320  pname == "anti_triton" ||
321  pname == "anti_He3" ||
322  pname == "anti_alpha"
323  ) {
325  hel->AddDataSet( anucxs );
326  hel->RegisterMe( lhep );
327  hel->RegisterMe( anuc );
328  pmanager->AddDiscreteProcess( hel );
329  if ( verbose > 1 ) {
330  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
331  << " added for " << particle->GetParticleName() << G4endl;
332  }
333 
334  } else if ( pname == "GenericIon" ) {
335  // To preserve reproducibility, disable temporarily
336  // G4NuclNuclDiffuseElastic.
337  //G4HadronElasticProcess* hel = new G4HadronElasticProcess();
338  //hel->AddDataSet( theComponentGGNuclNuclData );
339  //hel->RegisterMe( diffuseNuclNuclElastic );
340  //pmanager->AddDiscreteProcess( hel );
341  //if ( verbose > 1 ) {
342  // G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
343  // << " added for " << particle->GetParticleName() << G4endl;
344  //}
345 
346  }
347 
348  }
349 
350 }
static const double MeV
Definition: G4SIunits.hh:211
G4double GetZ() const
Definition: G4Element.hh:131
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static void ConstructParticle()
#define G4ThreadLocal
Definition: tls.hh:89
void SetDiffraction(G4HadronicInteraction *, G4VCrossSectionRatio *)
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)
static const char * Default_Name()
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void Register(T *inst)
Definition: G4AutoDelete.hh:65
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
#define aParticleIterator
static G4CrossSectionDataSetRegistry * Instance()
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronHElasticPhysics)
static const char * Default_Name()
static const double GeV
Definition: G4SIunits.hh:214
static G4ThreadLocal G4DiffElasticRatio * diffRatio
const G4String & GetPhysicsName() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
G4HadronHElasticPhysics(G4int ver=0, G4bool diffraction=false)
static const char * Default_Name()
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static const char * Default_Name()
std::vector< G4Element * > G4ElementTable
double G4double
Definition: G4Types.hh:76
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
void DeActivateFor(const G4Material *aMaterial)