G4FermiFragmentsPool.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 // $Id: G4VFermiBreakUp.cc,v 1.5 2006-06-29 20:13:13 gunter Exp $
00027 // GEANT4 tag $Name: not supported by cvs2svn $
00028 //
00029 // Hadronic Process: Nuclear De-excitations
00030 // by V. Lara
00031 //
00032 // Modifications:
00033 // 01.04.2011 General cleanup by V.Ivanchenko - more clean usage of static
00034 
00035 
00036 #ifndef G4FermiFragmentsPool_hh 
00037 #define G4FermiFragmentsPool_hh 1
00038 
00039 #include "globals.hh"
00040 #include "G4VFermiFragment.hh"
00041 #include "G4FermiConfiguration.hh"
00042 #include <vector>
00043 
00044 class G4FermiFragmentsPool
00045 {
00046 public:
00047 
00048   static G4FermiFragmentsPool* Instance();
00049 
00050   ~G4FermiFragmentsPool();
00051 
00052   const std::vector<G4FermiConfiguration*>* 
00053   GetConfigurationList(G4int Z, G4int A, G4double mass);
00054 
00055   const G4VFermiFragment* GetFragment(G4int Z, G4int A);
00056 
00057   inline G4int GetMaxZ() const;
00058 
00059   inline G4int GetMaxA() const;
00060   
00061 private:
00062 
00063   G4FermiFragmentsPool();
00064 
00065   void Initialise();
00066 
00067   G4bool IsExist(G4int Z, G4int A, std::vector<const G4VFermiFragment*>&);
00068 
00069   inline G4bool IsAvailable(G4int Z, G4int A);
00070 
00071   static G4FermiFragmentsPool* theInstance;
00072 
00073   std::vector<const G4VFermiFragment*> fragment_pool;
00074 
00075   G4int maxZ;
00076   G4int maxA;
00077   G4int verbose;
00078  
00079   // list of configuration sorted by A for 1, 2, 3, 4 final fragments
00080   std::vector<G4FermiConfiguration*> list1[17]; 
00081   std::vector<G4FermiConfiguration*> list2[17]; 
00082   std::vector<G4FermiConfiguration*> list3[17];
00083   std::vector<G4FermiConfiguration*> list4[17];
00084   // list of exotic configurations
00085   std::vector<G4FermiConfiguration*> listextra;
00086 };
00087 
00088 inline G4bool G4FermiFragmentsPool::IsAvailable(G4int Z, G4int A)
00089 {
00090   G4bool res = true;
00091   if     (2 == Z && 5 == A) { res = false; }
00092   else if(3 == Z && 5 == A) { res = false; }
00093   else if(4 == Z && 8 == A) { res = false; }
00094   else if(5 == Z && 9 == A) { res = false; }
00095   return res;
00096 }
00097 
00098 inline G4int G4FermiFragmentsPool::GetMaxZ() const
00099 {
00100   return maxZ;
00101 }
00102 
00103 inline G4int G4FermiFragmentsPool::GetMaxA() const
00104 {
00105   return maxA;
00106 }
00107 
00108 #endif
00109 

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