Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:56

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 G4AtomicShell, 
0041 // G4FluoTransition, G4AugerTransition objects.
0042 // -------------------------------------------------------------------
0043 
0044 #ifndef G4AtomicTransitionManager_h
0045 #define G4AtomicTransitionManager_h 1
0046 
0047 #include "G4ShellData.hh"
0048 #include "G4FluoTransition.hh"
0049 #include "G4AugerTransition.hh"
0050 #include "G4AtomicShell.hh"
0051 #include <vector>
0052 #include "globals.hh"
0053 
0054 class G4AugerData;
0055 
0056 // This class is a singleton
0057 class G4AtomicTransitionManager {
0058 
0059 public: 
0060   /// The only way to get an instance of this class is to call the 
0061   /// function Instance() 
0062   static G4AtomicTransitionManager* Instance();
0063 
0064   /// needs to be called once from other code before start of run
0065   void Initialise();
0066  
0067   /// Z is the atomic number of the element, shellIndex is the 
0068   /// index (in EADL) of the shell
0069   G4AtomicShell* 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 
0074   /// the vacancy is, the radiative transition that can happen (originating 
0075   /// shell, energy, probability)
0076   const G4FluoTransition* ReachableShell(G4int Z, size_t shellIndex) const;
0077 
0078   /// This function gives, upon Z and the Index of the initial shell where 
0079   /// the vacancy is, the NON-radiative transition that can happen with 
0080   /// originating shell for the transition, and the data for the possible 
0081   /// auger electrons emitted (originating vacancy, energy amnd probability)  
0082   const G4AugerTransition* ReachableAugerShell(G4int Z, G4int shellIndex) const;
0083   
0084   /// This function returns the number of shells of the element
0085   /// whose atomic number is Z
0086   G4int NumberOfShells(G4int Z) const;
0087   
0088   /// This function returns the number of those shells of the element
0089   /// whose atomic number is Z which are reachable through a radiative
0090   /// transition
0091   G4int NumberOfReachableShells(G4int Z) const;
0092 
0093   /// This function returns the number of possible NON-radiative transitions 
0094   /// for the atom with atomic number Z i.e. the number of shell in wich 
0095   /// a vacancy can be filled by a NON-radiative transition 
0096   G4int NumberOfReachableAugerShells(G4int Z) const;
0097 
0098   /// Gives the sum of the probabilities of radiative transition towards the
0099   /// shell whose index is shellIndex
0100   G4double 
0101   TotalRadiativeTransitionProbability(G4int Z, size_t shellIndex) const;
0102   
0103   /// Gives the sum of the probabilities of non radiative transition from the
0104   /// shell whose index is shellIndex
0105   G4double 
0106   TotalNonRadiativeTransitionProbability(G4int Z, size_t shellIndex) const; 
0107 
0108   /// Verbosity control
0109   void SetVerboseLevel(G4int vl) {verboseLevel = vl;};
0110   G4int GetVerboseLevel(){return verboseLevel;};
0111 
0112 private:
0113   explicit G4AtomicTransitionManager();
0114 
0115   ~G4AtomicTransitionManager();
0116 
0117   // Hide copy constructor and assignment operator 
0118   G4AtomicTransitionManager& operator=(const G4AtomicTransitionManager& right);
0119   G4AtomicTransitionManager(const G4AtomicTransitionManager&);
0120  
0121   static G4AtomicTransitionManager* instance;
0122   // since Augereffect data r stored as a table in G4AugerData, we have 
0123   // here a pointer to an element of that class itself.
0124   G4AugerData* augerData;
0125 
0126   // the first element of the map is the atomic number Z.
0127   // the second element is a vector of G4AtomicShell*.
0128   std::map<G4int,std::vector<G4AtomicShell*>,std::less<G4int> > shellTable;
0129   
0130   // the first element of the map is the atomic number Z.
0131   // the second element is a vector of G4AtomicTransition*.
0132   std::map<G4int,std::vector<G4FluoTransition*>,std::less<G4int> > transitionTable;
0133  
0134   // Minimum and maximum Z in EADL table containing identities and binding
0135   // energies of shells
0136   G4int zMin = 1; 
0137   G4int zMax = 104;
0138   
0139   // Minimum and maximum Z in EADL table containing identities, transition 
0140   // energies and transition probabilities of shells
0141   G4int infTableLimit = 6;
0142   G4int supTableLimit = 104;
0143   G4int verboseLevel;
0144   G4bool isInitialized;
0145 };
0146 
0147 #endif