Geant4-11
G4ParticleHPThermalScatteringData.hh
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//
27// P. Arce, June-2014 Conversion neutron_hp to particle_hp
28//
29#ifndef G4ParticleHPThermalScatteringData_h
30#define G4ParticleHPThermalScatteringData_h 1
31
32// Thermal Neutron Scattering
33// Koi, Tatsumi (SCCS/SLAC)
34//
35// Class Description
36// Cross Sections for a high precision (based on evaluated data
37// libraries) description of themal neutron scattering below 4 eV;
38// Based on Thermal neutron scattering files
39// from the evaluated nuclear data files ENDF/B-VI, Release2
40// To be used in your physics list in case you need this physics.
41// In this case you want to register an object of this class with
42// the corresponding process.
43// Class Description - End
44
45// 15-Nov-06 First implementation is done by T. Koi (SLAC/SCCS)
46// 070625 create clearCurrentXSData to fix memory leaking by T. Koi
47// 080417 Add IsZAApplicable method (return false) by T. Koi
48
50#include "G4ParticleHPVector.hh"
52#include "G4DynamicParticle.hh"
53#include "G4Element.hh"
54#include "G4Material.hh"
56//#include "G4PhysicsTable.hh"
57
58#include <map>
59#include <vector>
60
62{
63
64 public:
65
67
69
71 G4int /*Z*/ , G4int /*A*/ ,
72 const G4Element* /*elm*/ ,
73 const G4Material* /*mat*/ );
74
76 G4int /*Z*/ , G4int /*A*/ ,
77 const G4Isotope* /*iso*/ ,
78 const G4Element* /*elm*/ ,
79 const G4Material* /*mat*/ );
80
82
83 //G4bool IsZAApplicable( const G4DynamicParticle* , G4double /*ZZ*/, G4double /*AA*/)
84 //{ return false;}
85
90
92
94
95 //For user prepared thermal files
96 //Name of G4Element , Name of NDL file
98
99 virtual void CrossSectionDescription(std::ostream&) const;
100
101 private:
102
103 G4double GetX ( const G4DynamicParticle* , G4double aT , std::map< G4double , G4ParticleHPVector* >* );
104
106
107 void clearCurrentXSData();
108
109// element temp x section from E
110 std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* coherent;
111 std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* incoherent;
112 std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* inelastic;
113
114 std::map< G4double , G4ParticleHPVector* >* readData ( G4String );
115
116 std::vector < G4int > indexOfThermalElement;
118// G4Element NDL name
119// std::map< G4String , G4String > names;
120
125
126 std::map < std::pair < const G4Material* , const G4Element* > , G4int > dic;
127 G4int getTS_ID( const G4Material* , const G4Element* );
128
129};
130
131#endif
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * inelastic
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
G4double GetIncoherentCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * coherent
G4double GetX(const G4DynamicParticle *, G4double aT, std::map< G4double, G4ParticleHPVector * > *)
void BuildPhysicsTable(const G4ParticleDefinition &)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * incoherent
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
G4double GetCoherentCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
void DumpPhysicsTable(const G4ParticleDefinition &)
G4double GetInelasticCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
std::map< G4double, G4ParticleHPVector * > * readData(G4String)
G4int getTS_ID(const G4Material *, const G4Element *)
G4ParticleHPThermalScatteringNames * names
std::map< std::pair< const G4Material *, const G4Element * >, G4int > dic
virtual void CrossSectionDescription(std::ostream &) const
G4bool IsApplicable(const G4DynamicParticle *, const G4Element *)
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)