Geant4  10.01
G4NeutronHPThermalScatteringData.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 // Thermal Neutron Scattering
27 // Koi, Tatsumi (SCCS/SLAC)
28 //
29 // Class Description
30 // Cross Sections for a high precision (based on evaluated data
31 // libraries) description of themal neutron scattering below 4 eV;
32 // Based on Thermal neutron scattering files
33 // from the evaluated nuclear data files ENDF/B-VI, Release2
34 // To be used in your physics list in case you need this physics.
35 // In this case you want to register an object of this class with
36 // the corresponding process.
37 // Class Description - End
38 
39 // 15-Nov-06 First implementation is done by T. Koi (SLAC/SCCS)
40 // 070625 implement clearCurrentXSData to fix memory leaking by T. Koi
41 
42 #include <list>
43 #include <algorithm>
44 
46 #include "G4NeutronHPManager.hh"
47 
48 #include "G4SystemOfUnits.hh"
49 #include "G4Neutron.hh"
50 #include "G4ElementTable.hh"
51 
52 #include "G4Threading.hh"
53 
55 :G4VCrossSectionDataSet("NeutronHPThermalScatteringData")
56 ,coherent(NULL)
57 ,incoherent(NULL)
58 ,inelastic(NULL)
59 {
60 // Upper limit of neutron energy
61  emax = 4*eV;
62  SetMinKinEnergy( 0*MeV );
64 
65  ke_cache = 0.0;
66  xs_cache = 0.0;
67  element_cache = NULL;
68  material_cache = NULL;
69 
70  indexOfThermalElement.clear();
71 
73 }
74 
76 {
77 
79 
80  delete names;
81 }
82 
84  G4int /*Z*/ , G4int /*A*/ ,
85  const G4Element* element ,
86  const G4Material* material )
87 {
88  G4double eKin = dp->GetKineticEnergy();
89  if ( eKin > 4.0*eV //GetMaxKinEnergy()
90  || eKin < 0 //GetMinKinEnergy()
91  || dp->GetDefinition() != G4Neutron::Neutron() ) return false;
92 
93  if ( dic.find( std::pair < const G4Material* , const G4Element* > ( (G4Material*)NULL , element ) ) != dic.end()
94  || dic.find( std::pair < const G4Material* , const G4Element* > ( material , element ) ) != dic.end() ) return true;
95 
96  return false;
97 
98 // return IsApplicable( dp , element );
99 /*
100  G4double eKin = dp->GetKineticEnergy();
101  if ( eKin > 4.0*eV //GetMaxKinEnergy()
102  || eKin < 0 //GetMinKinEnergy()
103  || dp->GetDefinition() != G4Neutron::Neutron() ) return false;
104  return true;
105 */
106 }
107 
109  G4int /*Z*/ , G4int /*A*/ ,
110  const G4Isotope* /*iso*/ ,
111  const G4Element* element ,
112  const G4Material* material )
113 {
114  if ( dp->GetKineticEnergy() == ke_cache && element == element_cache && material == material_cache ) return xs_cache;
115 
116  ke_cache = dp->GetKineticEnergy();
117  element_cache = element;
118  material_cache = material;
119  //G4double xs = GetCrossSection( dp , element , material->GetTemperature() );
120  G4double xs = GetCrossSection( dp , element , material );
121  xs_cache = xs;
122  return xs;
123  //return GetCrossSection( dp , element , material->GetTemperature() );
124 }
125 
127 {
128  std::map< G4int , std::map< G4double , G4NeutronHPVector* >* >::iterator it;
129  std::map< G4double , G4NeutronHPVector* >::iterator itt;
130 
131  if ( coherent != NULL ) {
132  for ( it = (*coherent).begin() ; it != (*coherent).end() ; it++ )
133  {
134  if ( it->second != NULL )
135  {
136  for ( itt = it->second->begin() ; itt != it->second->end() ; itt++ )
137  {
138  delete itt->second;
139  }
140  }
141  delete it->second;
142  }
143  (*coherent).clear();
144  }
145 
146  if ( incoherent != NULL ) {
147  for ( it = (*incoherent).begin() ; it != (*incoherent).end() ; it++ )
148  {
149  if ( it->second != NULL )
150  {
151  for ( itt = it->second->begin() ; itt != it->second->end() ; itt++ )
152  {
153  delete itt->second;
154  }
155  }
156  delete it->second;
157  }
158  (*incoherent).clear();
159  }
160 
161  if ( inelastic != NULL ) {
162  for ( it = (*inelastic).begin() ; it != (*inelastic).end() ; it++ )
163  {
164  if ( it->second != NULL )
165  {
166  for ( itt = it->second->begin() ; itt != it->second->end() ; itt++ )
167  {
168  delete itt->second;
169  }
170  }
171  delete it->second;
172  }
173  (*inelastic).clear();
174  }
175 
176 }
177 
178 
179 
181 {
182  G4bool result = false;
183 
184  G4double eKin = aP->GetKineticEnergy();
185  // Check energy
186  if ( eKin < emax )
187  {
188  // Check Particle Species
189  if ( aP->GetDefinition() == G4Neutron::Neutron() )
190  {
191  // anEle is one of Thermal elements
192  G4int ie = (G4int) anEle->GetIndex();
193  std::vector < G4int >::iterator it;
194  for ( it = indexOfThermalElement.begin() ; it != indexOfThermalElement.end() ; it++ )
195  {
196  if ( ie == *it ) return true;
197  }
198  }
199  }
200 
201 /*
202  if ( names->IsThisThermalElement ( anEle->GetName() ) )
203  {
204  // Check energy and projectile species
205  G4double eKin = aP->GetKineticEnergy();
206  if ( eKin < emax && aP->GetDefinition() == G4Neutron::Neutron() ) result = true;
207  }
208 */
209  return result;
210 }
211 
212 
214 {
215 
216  if ( &aP != G4Neutron::Neutron() )
217  throw G4HadronicException(__FILE__, __LINE__, "Attempt to use NeutronHP data for particles other than neutrons!!!");
218 
219  //std::map < std::pair < G4Material* , const G4Element* > , G4int > dic;
220  dic.clear();
221 
223 
224  std::map < G4String , G4int > co_dic;
225 
226  //Searching Nist Materials
227  static G4ThreadLocal G4MaterialTable* theMaterialTable = 0 ; if (!theMaterialTable) theMaterialTable= G4Material::GetMaterialTable();
228  size_t numberOfMaterials = G4Material::GetNumberOfMaterials();
229  for ( size_t i = 0 ; i < numberOfMaterials ; i++ )
230  {
231  G4Material* material = (*theMaterialTable)[i];
232  size_t numberOfElements = material->GetNumberOfElements();
233  for ( size_t j = 0 ; j < numberOfElements ; j++ )
234  {
235  const G4Element* element = material->GetElement(j);
236  if ( names->IsThisThermalElement ( material->GetName() , element->GetName() ) )
237  {
238  G4int ts_ID_of_this_geometry;
239  G4String ts_ndl_name = names->GetTS_NDL_Name( material->GetName() , element->GetName() );
240  if ( co_dic.find ( ts_ndl_name ) != co_dic.end() )
241  {
242  ts_ID_of_this_geometry = co_dic.find ( ts_ndl_name ) -> second;
243  }
244  else
245  {
246  ts_ID_of_this_geometry = co_dic.size();
247  co_dic.insert ( std::pair< G4String , G4int >( ts_ndl_name , ts_ID_of_this_geometry ) );
248  }
249 
250  //G4cout << "Neutron HP Thermal Scattering Data : Registering a material-element pair of "
251  // << material->GetName() << " " << element->GetName()
252  // << " as internal thermal scattering id of " << ts_ID_of_this_geometry << "." << G4endl;
253 
254  dic.insert( std::pair < std::pair < G4Material* , const G4Element* > , G4int > ( std::pair < G4Material* , const G4Element* > ( material , element ) , ts_ID_of_this_geometry ) );
255  }
256  }
257  }
258 
259  //Searching TS Elements
260  static G4ThreadLocal G4ElementTable* theElementTable = 0 ; if (!theElementTable) theElementTable= G4Element::GetElementTable();
261  size_t numberOfElements = G4Element::GetNumberOfElements();
262  //size_t numberOfThermalElements = 0;
263  for ( size_t i = 0 ; i < numberOfElements ; i++ )
264  {
265  const G4Element* element = (*theElementTable)[i];
266  if ( names->IsThisThermalElement ( element->GetName() ) )
267  {
268  if ( names->IsThisThermalElement ( element->GetName() ) )
269  {
270  G4int ts_ID_of_this_geometry;
271  G4String ts_ndl_name = names->GetTS_NDL_Name( element->GetName() );
272  if ( co_dic.find ( ts_ndl_name ) != co_dic.end() )
273  {
274  ts_ID_of_this_geometry = co_dic.find ( ts_ndl_name ) -> second;
275  }
276  else
277  {
278  ts_ID_of_this_geometry = co_dic.size();
279  co_dic.insert ( std::pair< G4String , G4int >( ts_ndl_name , ts_ID_of_this_geometry ) );
280  }
281 
282  //G4cout << "Neutron HP Thermal Scattering: Registering an element of "
283  // << material->GetName() << " " << element->GetName()
284  // << " as internal thermal scattering id of " << ts_ID_of_this_geometry << "." << G4endl;
285 
286  dic.insert( std::pair < std::pair < const G4Material* , const G4Element* > , G4int > ( std::pair < const G4Material* , const G4Element* > ( (G4Material*)NULL , element ) , ts_ID_of_this_geometry ) );
287  }
288  }
289  }
290 
291  G4cout << G4endl;
292  G4cout << "Neutron HP Thermal Scattering Data: Following material-element pairs and/or elements are registered." << G4endl;
293  for ( std::map < std::pair < const G4Material* , const G4Element* > , G4int >::iterator it = dic.begin() ; it != dic.end() ; it++ )
294  {
295  if ( it->first.first != NULL )
296  {
297  G4cout << "Material " << it->first.first->GetName() << " - Element " << it->first.second->GetName() << ", internal thermal scattering id " << it->second << G4endl;
298  }
299  else
300  {
301  G4cout << "Element " << it->first.second->GetName() << ", internal thermal scattering id " << it->second << G4endl;
302  }
303  }
304  G4cout << G4endl;
305 
306 
307  //G4cout << "Neutron HP Thermal Scattering Data: Following NDL thermal scattering files are assigned to the internal thermal scattering id." << G4endl;
308  //for ( std::map < G4String , G4int >::iterator it = co_dic.begin() ; it != co_dic.end() ; it++ )
309  //{
310  // G4cout << "NDL file name " << it->first << ", internal thermal scattering id " << it->second << G4endl;
311  //}
312 
314 
318 
319  if ( !G4Threading::IsWorkerThread() ) {
320 
321  if ( coherent == NULL ) coherent = new std::map< G4int , std::map< G4double , G4NeutronHPVector* >* >;
322  if ( incoherent == NULL ) incoherent = new std::map< G4int , std::map< G4double , G4NeutronHPVector* >* >;
323  if ( inelastic == NULL ) inelastic = new std::map< G4int , std::map< G4double , G4NeutronHPVector* >* >;
324 
325  // Read Cross Section Data files
326 
327  G4String dirName;
328  if ( !getenv( "G4NEUTRONHPDATA" ) )
329  throw G4HadronicException(__FILE__, __LINE__, "Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
330  G4String baseName = getenv( "G4NEUTRONHPDATA" );
331 
332  dirName = baseName + "/ThermalScattering";
333 
334  G4String ndl_filename;
335  G4String full_name;
336 
337  for ( std::map < G4String , G4int >::iterator it = co_dic.begin() ; it != co_dic.end() ; it++ )
338  {
339  ndl_filename = it->first;
340  G4int ts_ID = it->second;
341 
342  // Coherent
343  full_name = dirName + "/Coherent/CrossSection/" + ndl_filename;
344  std::map< G4double , G4NeutronHPVector* >* coh_amapTemp_EnergyCross = readData( full_name );
345  (*coherent).insert ( std::pair < G4int , std::map< G4double , G4NeutronHPVector* >* > ( ts_ID , coh_amapTemp_EnergyCross ) );
346 
347  // Incoherent
348  full_name = dirName + "/Incoherent/CrossSection/" + ndl_filename;
349  std::map< G4double , G4NeutronHPVector* >* incoh_amapTemp_EnergyCross = readData( full_name );
350  (*incoherent).insert ( std::pair < G4int , std::map< G4double , G4NeutronHPVector* >* > ( ts_ID , incoh_amapTemp_EnergyCross ) );
351 
352  // Inelastic
353  full_name = dirName + "/Inelastic/CrossSection/" + ndl_filename;
354  std::map< G4double , G4NeutronHPVector* >* inela_amapTemp_EnergyCross = readData( full_name );
355  (*inelastic).insert ( std::pair < G4int , std::map< G4double , G4NeutronHPVector* >* > ( ts_ID , inela_amapTemp_EnergyCross ) );
356 
357  }
358 
362 
363  }
364 
365 }
366 
367 
368 
369 std::map< G4double , G4NeutronHPVector* >* G4NeutronHPThermalScatteringData::readData ( G4String full_name )
370 {
371 
372  std::map< G4double , G4NeutronHPVector* >* aData = new std::map< G4double , G4NeutronHPVector* >;
373 
374  //std::ifstream theChannel( full_name.c_str() );
375  std::istringstream theChannel;
376  G4NeutronHPManager::GetInstance()->GetDataStream(full_name,theChannel);
377 
378  //G4cout << "G4NeutronHPThermalScatteringData " << name << G4endl;
379 
380  G4int dummy;
381  while ( theChannel >> dummy ) // MF
382  {
383  theChannel >> dummy; // MT
384  G4double temp;
385  theChannel >> temp;
386  G4NeutronHPVector* anEnergyCross = new G4NeutronHPVector;
387  G4int nData;
388  theChannel >> nData;
389  anEnergyCross->Init ( theChannel , nData , eV , barn );
390  aData->insert ( std::pair < G4double , G4NeutronHPVector* > ( temp , anEnergyCross ) );
391  }
392  //theChannel.close();
393 
394  return aData;
395 
396 }
397 
398 
399 
401 {
402  if( &aP != G4Neutron::Neutron() )
403  throw G4HadronicException(__FILE__, __LINE__, "Attempt to use NeutronHP data for particles other than neutrons!!!");
404 // G4cout << "G4NeutronHPThermalScatteringData::DumpPhysicsTable still to be implemented"<<G4endl;
405 }
406 
407 //#include "G4Nucleus.hh"
408 //#include "G4NucleiPropertiesTable.hh"
409 //#include "G4Neutron.hh"
410 //#include "G4Electron.hh"
411 
412 
413 
414 /*
415 G4double G4NeutronHPThermalScatteringData::GetCrossSection( const G4DynamicParticle* aP , const G4Element*anE , G4double aT )
416 {
417 
418  G4double result = 0;
419  const G4Material* aM = NULL;
420 
421  G4int iele = anE->GetIndex();
422 
423  if ( dic.find( std::pair < const G4Material* , const G4Element* > ( (G4Material*)NULL , anE ) ) != dic.end() )
424  {
425  iele = dic.find( std::pair < const G4Material* , const G4Element* > ( (G4Material*)NULL , anE ) )->second;
426  }
427  else if ( dic.find( std::pair < const G4Material* , const G4Element* > ( aM , anE ) ) != dic.end() )
428  {
429  iele = dic.find( std::pair < const G4Material* , const G4Element* > ( aM , anE ) )->second;
430  }
431  else
432  {
433  return result;
434  }
435 
436  G4double Xcoh = GetX ( aP , aT , coherent.find(iele)->second );
437  G4double Xincoh = GetX ( aP , aT , incoherent.find(iele)->second );
438  G4double Xinela = GetX ( aP , aT , inelastic.find(iele)->second );
439 
440  result = Xcoh + Xincoh + Xinela;
441 
442  //G4cout << "G4NeutronHPThermalScatteringData::GetCrossSection Tot= " << result/barn << " Coherent= " << Xcoh/barn << " Incoherent= " << Xincoh/barn << " Inelastic= " << Xinela/barn << G4endl;
443 
444  return result;
445 
446 }
447 */
448 
450 {
451  G4double result = 0;
452 
453  G4int ts_id =getTS_ID( aM , anE );
454 
455  if ( ts_id == -1 ) return result;
456 
457  G4double aT = aM->GetTemperature();
458 
459  G4double Xcoh = GetX ( aP , aT , (*coherent).find(ts_id)->second );
460  G4double Xincoh = GetX ( aP , aT , (*incoherent).find(ts_id)->second );
461  G4double Xinela = GetX ( aP , aT , (*inelastic).find(ts_id)->second );
462 
463  result = Xcoh + Xincoh + Xinela;
464 
465  //G4cout << "G4NeutronHPThermalScatteringData::GetCrossSection Tot= " << result/barn << " Coherent= " << Xcoh/barn << " Incoherent= " << Xincoh/barn << " Inelastic= " << Xinela/barn << G4endl;
466 
467  return result;
468 }
469 
470 
472 {
473  G4double result = 0;
474  G4int ts_id = getTS_ID( aM , anE );
475  G4double aT = aM->GetTemperature();
476  result = GetX ( aP , aT , (*inelastic).find( ts_id )->second );
477  return result;
478 }
479 
481 {
482  G4double result = 0;
483  G4int ts_id = getTS_ID( aM , anE );
484  G4double aT = aM->GetTemperature();
485  result = GetX ( aP , aT , (*coherent).find( ts_id )->second );
486  return result;
487 }
488 
490 {
491  G4double result = 0;
492  G4int ts_id = getTS_ID( aM , anE );
493  G4double aT = aM->GetTemperature();
494  result = GetX ( aP , aT , (*incoherent).find( ts_id )->second );
495  return result;
496 }
497 
498 
499 
501 {
502  G4int result = -1;
503  if ( dic.find( std::pair < const G4Material* , const G4Element* > ( (G4Material*)NULL , element ) ) != dic.end() )
504  return dic.find( std::pair < const G4Material* , const G4Element* > ( (G4Material*)NULL , element ) )->second;
505  if ( dic.find( std::pair < const G4Material* , const G4Element* > ( material , element ) ) != dic.end() )
506  return dic.find( std::pair < const G4Material* , const G4Element* > ( material , element ) )->second;
507  return result;
508 }
509 
510 
511 
512 
513 G4double G4NeutronHPThermalScatteringData::GetX ( const G4DynamicParticle* aP, G4double aT , std::map < G4double , G4NeutronHPVector* >* amapTemp_EnergyCross )
514 {
515 
516  G4double result = 0;
517  if ( amapTemp_EnergyCross->size() == 0 ) return result;
518 
519 
520  G4double eKinetic = aP->GetKineticEnergy();
521 
522  if ( amapTemp_EnergyCross->size() == 1 ) {
523  if ( std::fabs ( aT - amapTemp_EnergyCross->begin()->first ) / amapTemp_EnergyCross->begin()->first > 0.1 ) {
524  G4cout << "G4NeutronHPThermalScatteringData:: The temperature of material ("
525  << aT/kelvin << "K) is different more than 10% from temperature of thermal scattering file expected ("
526  << amapTemp_EnergyCross->begin()->first << "K). Result may not be reliable."
527  << G4endl;
528  }
529  result = amapTemp_EnergyCross->begin()->second->GetXsec ( eKinetic );
530  return result;
531  }
532 
533  std::map< G4double , G4NeutronHPVector* >::iterator it;
534  for ( it = amapTemp_EnergyCross->begin() ; it != amapTemp_EnergyCross->end() ; it++ ) {
535  if ( aT < it->first ) break;
536  }
537  if ( it == amapTemp_EnergyCross->begin() && it != amapTemp_EnergyCross->end() ) it++; // lower than the first
538  if ( it != amapTemp_EnergyCross->begin() && it == amapTemp_EnergyCross->end() ) it--; // upper than the last
539 
540  G4double TH = it->first;
541  G4double XH = it->second->GetXsec ( eKinetic );
542 
543  //G4cout << "G4NeutronHPThermalScatteringData::GetX TH " << TH << " E " << eKinetic << " XH " << XH << G4endl;
544 
545  if ( it != amapTemp_EnergyCross->begin() ) it--;
546  G4double TL = it->first;
547  G4double XL = it->second->GetXsec ( eKinetic );
548 
549  //G4cout << "G4NeutronHPThermalScatteringData::GetX TL " << TL << " E " << eKinetic << " XL " << XL << G4endl;
550 
551  if ( TH == TL )
552  throw G4HadronicException(__FILE__, __LINE__, "Thermal Scattering Data Error!");
553 
554  G4double T = aT;
555  G4double X = ( XH - XL ) / ( TH - TL ) * ( T - TL ) + XL;
556  result = X;
557 
558  return result;
559 }
560 
561 
563 {
564  names->AddThermalElement( nameG4Element , filename );
565 }
std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > * coherent
static const double MeV
Definition: G4SIunits.hh:193
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
std::map< std::pair< const G4Material *, const G4Element * >, G4int > dic
void RegisterThermalScatteringCoherentCrossSections(std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > *val)
G4double GetKineticEnergy() const
void RegisterThermalScatteringIncoherentCrossSections(std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > *val)
G4int first(char) const
static G4NeutronHPManager * GetInstance()
G4double GetCoherentCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
const G4String & GetName() const
Definition: G4Material.hh:176
std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > * inelastic
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:588
std::vector< G4Material * > G4MaterialTable
std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > * GetThermalScatteringIncoherentCrossSections()
G4bool IsApplicable(const G4DynamicParticle *, const G4Element *)
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
G4ParticleDefinition * GetDefinition() const
std::map< G4double, G4NeutronHPVector * > * readData(G4String)
void GetDataStream(G4String, std::istringstream &iss)
std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > * GetThermalScatteringInelasticCrossSections()
#define G4ThreadLocal
Definition: tls.hh:84
const G4Element * GetElement(G4int iel) const
Definition: G4Material.hh:200
std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > * incoherent
int G4int
Definition: G4Types.hh:78
G4double GetX(const G4DynamicParticle *, G4double aT, std::map< G4double, G4NeutronHPVector * > *)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
Definition: G4Element.cc:410
void SetMinKinEnergy(G4double value)
bool G4bool
Definition: G4Types.hh:79
size_t GetIndex() const
Definition: G4Element.hh:181
static const double second
Definition: G4SIunits.hh:138
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > * GetThermalScatteringCoherentCrossSections()
static size_t GetNumberOfMaterials()
Definition: G4Material.cc:595
void RegisterThermalScatteringInelasticCrossSections(std::map< G4int, std::map< G4double, G4NeutronHPVector * > * > *val)
G4double GetIncoherentCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
static const double kelvin
Definition: G4SIunits.hh:260
G4bool IsWorkerThread()
Definition: G4Threading.cc:128
void BuildPhysicsTable(const G4ParticleDefinition &)
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
static const double eV
Definition: G4SIunits.hh:194
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)
void SetMaxKinEnergy(G4double value)
void DumpPhysicsTable(const G4ParticleDefinition &)
G4double GetInelasticCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
G4String GetTS_NDL_Name(G4String nameG4Element)
G4double GetTemperature() const
Definition: G4Material.hh:180
#define G4endl
Definition: G4ios.hh:61
G4NeutronHPThermalScatteringNames * names
size_t GetNumberOfElements() const
Definition: G4Material.hh:184
static const double barn
Definition: G4SIunits.hh:95
std::vector< G4Element * > G4ElementTable
double G4double
Definition: G4Types.hh:76
const G4String & GetName() const
Definition: G4Element.hh:127
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:403
G4int getTS_ID(const G4Material *, const G4Element *)