source: trunk/source/processes/hadronic/models/neutron_hp/include/G4NeutronHPThermalScatteringData.hh @ 962

Last change on this file since 962 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 4.3 KB
Line 
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#ifndef G4NeutronHPThermalScatteringData_h
27#define G4NeutronHPThermalScatteringData_h 1
28
29// Thermal Neutron Scattering
30// Koi, Tatsumi (SCCS/SLAC)
31//
32// Class Description
33// Cross Sections for a high precision (based on evaluated data
34// libraries) description of themal neutron scattering below 4 eV;
35// Based on Thermal neutron scattering files
36// from the evaluated nuclear data files ENDF/B-VI, Release2
37// To be used in your physics list in case you need this physics.
38// In this case you want to register an object of this class with
39// the corresponding process.
40// Class Description - End
41
42// 15-Nov-06 First implementation is done by T. Koi (SLAC/SCCS)
43// 070625 create clearCurrentXSData to fix memory leaking by T. Koi
44// 080417 Add IsZAApplicable method (return false) by T. Koi
45
46#include "G4NeutronHPThermalScatteringNames.hh"
47#include "G4NeutronHPVector.hh"
48#include "G4VCrossSectionDataSet.hh"
49#include "G4DynamicParticle.hh"
50#include "G4Element.hh"
51#include "G4ParticleDefinition.hh"
52//#include "G4PhysicsTable.hh"
53
54#include <map> 
55#include <vector> 
56
57class G4NeutronHPThermalScatteringData : public G4VCrossSectionDataSet
58{
59   public:
60   
61      G4NeutronHPThermalScatteringData();
62   
63      ~G4NeutronHPThermalScatteringData();
64   
65      G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
66
67      G4bool IsZAApplicable( const G4DynamicParticle* , G4double /*ZZ*/, G4double /*AA*/)
68      { return false;}
69
70      G4double GetCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT);
71      G4double GetInelasticCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT);
72      G4double GetCoherentCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT);
73      G4double GetIncoherentCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT);
74
75      void BuildPhysicsTable(const G4ParticleDefinition&);
76
77      void DumpPhysicsTable(const G4ParticleDefinition&);
78   
79   private:
80
81      G4double GetX ( const G4DynamicParticle* , G4double aT , std::map< G4double , G4NeutronHPVector* >* );
82
83      G4double emax; 
84   
85      void clearCurrentXSData();
86
87//              element            temp       x section from E
88      std::map< G4int , std::map< G4double , G4NeutronHPVector* >* > coherent;
89      std::map< G4int , std::map< G4double , G4NeutronHPVector* >* > incoherent;
90      std::map< G4int , std::map< G4double , G4NeutronHPVector* >* > inelastic;
91
92      std::map< G4double , G4NeutronHPVector* >* readData ( G4String ); 
93
94      std::vector < G4int > indexOfThermalElement;
95      G4NeutronHPThermalScatteringNames* names;
96//              G4Element  NDL name
97//      std::map< G4String , G4String > names;
98
99//   G4PhysicsTable * theCrossSections;
100
101};
102
103#endif
Note: See TracBrowser for help on using the repository browser.