G4NeutronHPThermalScatteringData.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 #ifndef G4NeutronHPThermalScatteringData_h
00027 #define G4NeutronHPThermalScatteringData_h 1
00028 
00029 // Thermal Neutron Scattering
00030 // Koi, Tatsumi (SCCS/SLAC)
00031 //
00032 // Class Description
00033 // Cross Sections for a high precision (based on evaluated data
00034 // libraries) description of themal neutron scattering below 4 eV;
00035 // Based on Thermal neutron scattering files
00036 // from the evaluated nuclear data files ENDF/B-VI, Release2
00037 // To be used in your physics list in case you need this physics.
00038 // In this case you want to register an object of this class with
00039 // the corresponding process.
00040 // Class Description - End
00041 
00042 // 15-Nov-06 First implementation is done by T. Koi (SLAC/SCCS)
00043 // 070625 create clearCurrentXSData to fix memory leaking by T. Koi
00044 // 080417 Add IsZAApplicable method (return false) by T. Koi
00045 
00046 #include "G4NeutronHPThermalScatteringNames.hh"
00047 #include "G4NeutronHPVector.hh"
00048 #include "G4VCrossSectionDataSet.hh"
00049 #include "G4DynamicParticle.hh"
00050 #include "G4Element.hh"
00051 #include "G4Material.hh"
00052 #include "G4ParticleDefinition.hh"
00053 //#include "G4PhysicsTable.hh"
00054 
00055 #include <map> 
00056 #include <vector> 
00057 
00058 class G4NeutronHPThermalScatteringData : public G4VCrossSectionDataSet
00059 {
00060 
00061    public:
00062 
00063       G4NeutronHPThermalScatteringData();
00064    
00065       ~G4NeutronHPThermalScatteringData();
00066 
00067       G4bool IsIsoApplicable( const G4DynamicParticle* , 
00068                               G4int /*Z*/ , G4int /*A*/ ,
00069                               const G4Element* /*elm*/ ,
00070                               const G4Material* /*mat*/ );
00071 
00072       G4double GetIsoCrossSection( const G4DynamicParticle*  , 
00073                                    G4int /*Z*/ , G4int /*A*/ ,
00074                                    const G4Isotope* /*iso*/  ,
00075                                    const G4Element* /*elm*/  ,
00076                                    const G4Material* /*mat*/ );
00077    
00078       G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
00079 
00080       //G4bool IsZAApplicable( const G4DynamicParticle* , G4double /*ZZ*/, G4double /*AA*/)
00081       //{ return false;}
00082 
00083       G4double GetCrossSection(const G4DynamicParticle*, const G4Element*, const G4Material* );
00084       G4double GetInelasticCrossSection(const G4DynamicParticle*, const G4Element*, const G4Material*);
00085       G4double GetCoherentCrossSection(const G4DynamicParticle*, const G4Element*, const G4Material*);
00086       G4double GetIncoherentCrossSection(const G4DynamicParticle*, const G4Element*, const G4Material*);
00087 
00088       void BuildPhysicsTable(const G4ParticleDefinition&);
00089 
00090       void DumpPhysicsTable(const G4ParticleDefinition&);
00091    
00092    private:
00093 
00094       G4double GetX ( const G4DynamicParticle* , G4double aT , std::map< G4double , G4NeutronHPVector* >* );
00095 
00096       G4double emax; 
00097    
00098       void clearCurrentXSData();
00099 
00100 //              element            temp       x section from E
00101       std::map< G4int , std::map< G4double , G4NeutronHPVector* >* > coherent;
00102       std::map< G4int , std::map< G4double , G4NeutronHPVector* >* > incoherent;
00103       std::map< G4int , std::map< G4double , G4NeutronHPVector* >* > inelastic;
00104 
00105       std::map< G4double , G4NeutronHPVector* >* readData ( G4String ); 
00106 
00107       std::vector < G4int > indexOfThermalElement;
00108       G4NeutronHPThermalScatteringNames* names;
00109 //              G4Element  NDL name 
00110 //      std::map< G4String , G4String > names;
00111 
00112       G4double ke_cache;
00113       G4double xs_cache;
00114       const G4Element* element_cache;
00115       const G4Material* material_cache;
00116 
00117       std::map < std::pair < const G4Material* , const G4Element* > , G4int > dic;   
00118       G4int getTS_ID( const G4Material* , const G4Element* );
00119 
00120 };
00121 
00122 #endif

Generated on Mon May 27 17:49:04 2013 for Geant4 by  doxygen 1.4.7