Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-27 09:18:21

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 //
0027 //
0028 // Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
0029 //          Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
0030 //
0031 // History:
0032 // -----------
0033 //  
0034 //  16 Sept 2001 EG  Modified according to a design iteration in the 
0035 //                   LowEnergy category
0036 //
0037 // -------------------------------------------------------------------
0038 
0039 // Class description:
0040 // Low Energy Electromagnetic Physics: create or fills and manages G4RDAtomicShell, 
0041 // G4RDFluoTransition, G4RDAugerTransition objects.
0042 // Further documentation available from http://www.ge.infn.it/geant4/lowE
0043 
0044 // -------------------------------------------------------------------
0045 
0046 #ifndef G4RDAtomicTransitionManager_h
0047 #define G4RDAtomicTransitionManager_h 1
0048 
0049 #include "G4RDShellData.hh"
0050 #include "G4RDFluoData.hh"
0051 #include "G4RDAugerData.hh"
0052 #include "G4RDFluoTransition.hh"
0053 #include "G4RDAtomicShell.hh"
0054 // #include "g4std/map"
0055 #include <vector>
0056 #include "globals.hh"
0057 
0058 // This class is a singleton
0059 class G4RDAtomicTransitionManager {
0060 
0061 public: 
0062 
0063   // The only way to get an instance of this class is to call the 
0064   // function Instance() 
0065   static G4RDAtomicTransitionManager* Instance();
0066  
0067   // Z is the atomic number of the element, shellIndex is the 
0068   // index (in EADL) of the shell
0069   G4RDAtomicShell* Shell(G4int Z, size_t shellIndex) const;
0070    
0071   // Z is the atomic number of the element, shellIndex is the 
0072   // index (in EADL) of the final shell for the transition
0073   // This function gives, upon Z and the Index of the initial shell where te vacancy is, 
0074   // the radiative transition that can happen (originating shell, energy, probability)
0075   const G4RDFluoTransition* ReachableShell(G4int Z, size_t shellIndex) const ;
0076 
0077   // This function gives, upon Z and the Index of the initial shell where te vacancy is, 
0078   // the NON-radiative transition that can happen with originating shell for the transition, and the
0079   // data for the possible auger electrons emitted (originating vacancy, energy amnd probability)
0080   
0081   const G4RDAugerTransition* ReachableAugerShell(G4int Z, G4int shellIndex) const ;
0082   
0083   // This function returns the number of shells of the element
0084   // whose atomic number is Z
0085   G4int NumberOfShells(G4int Z) const;
0086   
0087   // This function returns the number of those shells of the element
0088   // whose atomic number is Z which are reachable through a radiative
0089   // transition
0090   
0091   // This function returns the number of possible radiative transitions for the atom with atomic number Z
0092   // i.e. the number of shell in wich a vacancy can be filled with a radiative transition 
0093   
0094   G4int NumberOfReachableShells(G4int Z)const ;
0095 
0096 // This function returns the number of possible NON-radiative transitions for the atom with atomic number Z
0097 // i.e. the number of shell in wich a vacancy can be filled by a NON-radiative transition 
0098 
0099   G4int NumberOfReachableAugerShells(G4int Z)const ;
0100 
0101   // Gives the sum of the probabilities of radiative transition towards the
0102   // shell whose index is shellIndex
0103   G4double TotalRadiativeTransitionProbability(G4int Z, size_t shellIndex);
0104   
0105   // Gives the sum of the probabilities of non radiative transition from the
0106   // shell whose index is shellIndex
0107   G4double TotalNonRadiativeTransitionProbability(G4int Z, size_t shellIndex);
0108    
0109 protected:
0110 
0111   G4RDAtomicTransitionManager(G4int minZ = 1, G4int maxZ = 100, 
0112                 G4int limitInfTable = 6, G4int limitSupTable=100 );
0113   ~G4RDAtomicTransitionManager();
0114 
0115 private:
0116   // Hide copy constructor and assignment operator 
0117   G4RDAtomicTransitionManager& operator=(const G4RDAtomicTransitionManager& right);
0118   G4RDAtomicTransitionManager(const G4RDAtomicTransitionManager&);
0119  
0120   static G4RDAtomicTransitionManager* instance;
0121   
0122   // the first element of the map is the atomic number Z.
0123   // the second element is a vector of G4RDAtomicShell*.
0124   std::map<G4int,std::vector<G4RDAtomicShell*>,std::less<G4int> > shellTable;
0125   
0126   // the first element of the map is the atomic number Z.
0127   // the second element is a vector of G4AtomicTransition*.
0128   std::map<G4int,std::vector<G4RDFluoTransition*>,std::less<G4int> > transitionTable;
0129  
0130   // since Augereffect data r stored as a table in G4RDAugerData, we have here a pointer to an element of that class itself.
0131 
0132   G4RDAugerData* augerData;
0133 
0134   // Minimum and maximum Z in EADL table containing identities and binding
0135   // energies of shells
0136   G4int zMin;
0137   G4int zMax;
0138   
0139   // Minimum and maximum Z in EADL table containing identities, transition 
0140   // energies and transition probabilities of shells
0141   G4int infTableLimit;
0142   G4int supTableLimit;
0143  
0144  
0145 };
0146 
0147 #endif