G4NeutronHPJENDLHEData.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 G4NeutronHPJENDLHEData_h
00027 #define G4NeutronHPJENDLHEData_h 1
00028 
00029 // Class Description
00030 // Cross-section data set for a high precision (based on JENDL_HE evaluated data
00031 // libraries) description of elastic scattering 20 MeV ~ 3 GeV; 
00032 // Class Description - End
00033 
00034 // 15-Nov-06 First Implementation is done by T. Koi (SLAC/SCCS)
00035 // 080422 Add IsZAApplicable method (return false) by T. Koi
00036 //
00037 
00038 #include "G4VCrossSectionDataSet.hh"
00039 #include "G4DynamicParticle.hh"
00040 #include "G4Neutron.hh"
00041 #include "G4Element.hh"
00042 #include "G4ParticleDefinition.hh"
00043 #include "G4PhysicsVector.hh"
00044 #include <map> 
00045 
00046 class G4NeutronHPJENDLHEData : public G4VCrossSectionDataSet
00047 {
00048    public:
00049    
00050    G4NeutronHPJENDLHEData();
00051    G4NeutronHPJENDLHEData( G4String , G4ParticleDefinition* );
00052 
00053    
00054    ~G4NeutronHPJENDLHEData();
00055    
00056    G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
00057 
00058    G4bool IsZAApplicable( const G4DynamicParticle* , G4double /*ZZ*/, G4double /*AA*/)
00059    { return false; }
00060 
00061    G4double GetCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT);
00062 
00063    void BuildPhysicsTable(const G4ParticleDefinition&);
00064 
00065    void DumpPhysicsTable(const G4ParticleDefinition&);
00066    
00067    private:
00068    
00069       std::vector< G4bool > vElement;
00070 
00071       std::map< G4int , std::map< G4int , G4PhysicsVector* >* > mIsotope; 
00072 
00073       G4bool isThisInMap ( G4int , G4int );
00074       G4bool isThisNewIsotope ( G4int z , G4int a ) { return !( isThisInMap( z , a ) ); };
00075       G4PhysicsVector* readAFile ( std::fstream* );
00076       void registAPhysicsVector ( G4int , G4int , G4PhysicsVector* );
00077 
00078       G4double getXSfromThisIsotope ( G4int , G4int , G4double );
00079 
00080       G4String reactionName;
00081       G4String particleName;
00082 };
00083 
00084 #endif

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