G4LENDManager.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 G4LENDManager_h
00027 #define G4LENDManager_h 1
00028 
00029 // Class Description
00030 // Manager of LEND (Low Energy Nuclear Data) target (nucleus) 
00031 // LEND is Geant4 interface for GIDI (General Interaction Data Interface) 
00032 // which gives a discription of nuclear and atomic reactions, such as
00033 //    Binary collision cross sections
00034 //    Particle number multiplicity distributions of reaction products
00035 //    Energy and angular distributions of reaction products
00036 //    Derived calculational constants
00037 // GIDI is developped at Lawrence Livermore National Laboratory
00038 // Class Description - End
00039 
00040 // 071025 First implementation done by T. Koi (SLAC/SCCS)
00041 // 101118 Name modifications for release T. Koi (SLAC/PPA)
00042 
00043 #include "G4LENDHeader.hh"
00044 #include "G4ParticleDefinition.hh"
00045 #include "G4NistElementBuilder.hh" 
00046 #include "G4IonTable.hh"
00047 
00048 #include <map>
00049 
00050 struct lend_target
00051 {
00052 // properties for the traget
00053    G4GIDI* lend;
00054    G4GIDI_target* target;
00055    
00056    G4ParticleDefinition* proj;
00057    G4int target_code;
00058    G4String evaluation;
00059 };
00060 
00061 
00062 
00063 class G4LENDManager 
00064 {
00065 
00066       static G4LENDManager* lend_manager;
00067    
00068    protected: 
00069       G4LENDManager();
00070       G4LENDManager( const G4LENDManager& ){;};
00071 
00072       ~G4LENDManager();
00073 
00074    public:
00075       static G4LENDManager* GetInstance() 
00076       {
00077          if ( lend_manager == NULL) lend_manager = new G4LENDManager();
00078          return lend_manager;
00079       };
00080 
00081       G4GIDI_target* GetLENDTarget( G4ParticleDefinition* , G4String , G4int iZ , G4int iA , G4int iM = 0 );
00082       std::vector< G4String > IsLENDTargetAvailable( G4ParticleDefinition* , G4int iZ , G4int iA , G4int iM = 0 );
00083       G4int GetNucleusEncoding ( G4int iZ , G4int iA ) // GroundState only
00084       { return ionTable->GetNucleusEncoding( iZ , iA ); };
00085 
00086       G4NistElementBuilder* GetNistElementBuilder(){ return nistElementBuilder; };
00087 
00088       G4int GetVerboseLevel(){ return verboseLevel; };
00089       G4bool RequestChangeOfVerboseLevel( G4int );
00090    
00091    private:
00092 
00093       G4int verboseLevel;
00094 
00095       std::vector< lend_target > v_lend_target; 
00096 
00097       //        proj                              
00098       std::map< G4ParticleDefinition* , G4GIDI* > proj_lend_map; 
00099 
00100 //    std::map< G4ParticleDefinition* , std::vector< G4int > > proj_checked_map; 
00101 
00102       G4IonTable* ionTable;
00103 
00104       G4NistElementBuilder* nistElementBuilder; 
00105 
00106       void printBanner();
00107 
00108 };
00109 
00110 #endif

Generated on Mon May 27 17:48:45 2013 for Geant4 by  doxygen 1.4.7