Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:05

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
0027 //
0028 // History:
0029 // -----------
0030 //  16 Sept 2001 First committed to cvs
0031 //
0032 // -------------------------------------------------------------------
0033 
0034 // Class description:
0035 // Low Energy Electromagnetic Physics
0036 // Fluorescence data set: shell identifiers, transition probabilities, 
0037 // transition energies
0038 // Further documentation available from http://www.ge.infn.it/geant4/lowE
0039 
0040 // -------------------------------------------------------------------
0041 
0042 #ifndef G4RDFLUODATA_HH
0043 #define G4RDFLUODATA_HH 1
0044 
0045 #include "globals.hh"
0046 #include <vector>
0047 #include <map>
0048 
0049 class G4RDFluoTransition;
0050 class G4DataVector;
0051 
0052 class G4RDFluoData
0053 {
0054 public:
0055 
0056   G4RDFluoData();
0057 
0058   ~G4RDFluoData();
0059 
0060   // The method returns the number of shells in wich a 
0061   // vacancy can be filled by a radiative transition
0062   size_t NumberOfVacancies() const;
0063 
0064   // Given the index of the vacancy returns its identity
0065   G4int VacancyId(G4int vacancyIndex) const;
0066   
0067   // Given the index of a vacancy returns the number of
0068   //shells starting from wich an electrons can fill the vacancy
0069   size_t NumberOfTransitions(G4int vacancyIndex) const;
0070 
0071   // Given the indexes of the starting and final shells for the 
0072   // transition, returns the identity of the starting one
0073   G4int StartShellId(G4int initIndex, G4int vacancyIndex) const;
0074 
0075   // Given the indexes of the starting and final shells for the 
0076   // transition, returns the transition energy
0077   G4double StartShellEnergy(G4int initIndex, G4int vacancyIndex) const;
0078 
0079   // Given the indexes of the starting and final shells for the 
0080   // transition, returns the probability of this transition
0081   G4double StartShellProb(G4int initIndex, G4int vacancyIndex) const;
0082 
0083   void LoadData(G4int Z);
0084 
0085   void PrintData();
0086 
0087   //void BuildFluoTransitionTable();
0088 
0089   //std::vector<G4RDFluoTransition*> GetFluoTransitions(G4int Z);
0090   //G4RDFluoTransition GetFluoTransition(G4int Z, G4int shellId);
0091 
0092 private:
0093 
0094   // Hide copy constructor and assignment operator 
0095   G4RDFluoData& operator=(const G4RDFluoData& right);
0096   G4RDFluoData(const G4RDFluoData&);
0097 
0098   std::map<G4int,G4DataVector*,std::less<G4int> > idMap;
0099   std::map<G4int,G4DataVector*,std::less<G4int> > energyMap;
0100   std::map<G4int,G4DataVector*,std::less<G4int> > probabilityMap;
0101   std::vector<G4int> nInitShells;
0102   G4int numberOfVacancies;
0103   std::map<G4int,std::vector<G4RDFluoTransition*>,std::less<G4int> > fluoTransitionTable;  
0104 };
0105 
0106 #endif
0107 
0108