G4FluoData.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 // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
00027 //
00028 // History:
00029 // -----------
00030 //  16 Sept 2001 First committed to cvs
00031 //
00032 // -------------------------------------------------------------------
00033 
00034 // Class description:
00035 // Low Energy Electromagnetic Physics
00036 // Fluorescence data set: shell identifiers, transition probabilities, 
00037 // transition energies
00038 // Further documentation available from http://www.ge.infn.it/geant4/lowE
00039 
00040 // -------------------------------------------------------------------
00041 
00042 #ifndef G4FLUODATA_HH
00043 #define G4FLUODATA_HH 1
00044 
00045 #include "globals.hh"
00046 #include <vector>
00047 #include <map>
00048 
00049 class G4FluoTransition;
00050 class G4DataVector;
00051 
00052 class G4FluoData
00053 {
00054 public:
00055 
00056   G4FluoData();
00057 
00058   ~G4FluoData();
00059 
00060   // The method returns the number of shells in wich a 
00061   // vacancy can be filled by a radiative transition
00062   size_t NumberOfVacancies() const;
00063 
00064   // Given the index of the vacancy returns its identity
00065   G4int VacancyId(G4int vacancyIndex) const;
00066   
00067   // Given the index of a vacancy returns the number of
00068   //shells starting from wich an electrons can fill the vacancy
00069   size_t NumberOfTransitions(G4int vacancyIndex) const;
00070 
00071   // Given the indexes of the starting and final shells for the 
00072   // transition, returns the identity of the starting one
00073   G4int StartShellId(G4int initIndex, G4int vacancyIndex) const;
00074 
00075   // Given the indexes of the starting and final shells for the 
00076   // transition, returns the transition energy
00077   G4double StartShellEnergy(G4int initIndex, G4int vacancyIndex) const;
00078 
00079   // Given the indexes of the starting and final shells for the 
00080   // transition, returns the probability of this transition
00081   G4double StartShellProb(G4int initIndex, G4int vacancyIndex) const;
00082 
00083   void LoadData(G4int Z);
00084 
00085   void PrintData();
00086 
00087   //void BuildFluoTransitionTable();
00088 
00089   //std::vector<G4FluoTransition*> GetFluoTransitions(G4int Z);
00090   //G4FluoTransition GetFluoTransition(G4int Z, G4int shellId);
00091 
00092 private:
00093 
00094   // Hide copy constructor and assignment operator 
00095   G4FluoData& operator=(const G4FluoData& right);
00096   G4FluoData(const G4FluoData&);
00097 
00098   std::map<G4int,G4DataVector*,std::less<G4int> > idMap;
00099   std::map<G4int,G4DataVector*,std::less<G4int> > energyMap;
00100   std::map<G4int,G4DataVector*,std::less<G4int> > probabilityMap;
00101   std::vector<G4int> nInitShells;
00102   G4int numberOfVacancies;
00103   std::map<G4int,std::vector<G4FluoTransition*>,std::less<G4int> > fluoTransitionTable;  
00104 };
00105 
00106 #endif
00107 
00108 

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