Files
geant4/source/processes/electromagnetic/lowenergy/include/G4AtomicTransitionManager.hh
T
2016-06-08 16:18:25 +02:00

122 lines
4.5 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4AtomicTransitionManager.hh,v 1.2 ????
// GEANT4 tag $Name: geant4-04-00 $
//
// Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
// Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
//
// History:
// -----------
//
// 16 Sept 2001 EG Modified according to a design iteration in the
// LowEnergy category
//
// -------------------------------------------------------------------
// Class description:
// Low Energy Electromagnetic Physics, fills and manages G4AtomicShell
// and G4AtomicTransition objects
// Further documentation available from http://www.ge.infn.it/geant4/lowE
// -------------------------------------------------------------------
#ifndef G4AtomicTransitionManager_h
#define G4AtomicTransitionManager_h 1
#include "G4ShellData.hh"
#include "G4FluoData.hh"
#include "G4AtomicTransition.hh"
#include "G4AtomicShell.hh"
#include "g4std/map"
#include "g4std/vector"
#include "globals.hh"
// This class is a singleton
class G4AtomicTransitionManager {
public:
// The only way to get an instance of this class is to call the
// function Instance()
static G4AtomicTransitionManager* Instance();
// Z is the atomic number of the element, shellIndex is the
// index (in EADL) of the shell
const G4AtomicShell* Shell(G4int Z, size_t shellIndex);
// Z is the atomic number of the element, shellIndex is the
// index (in EADL) of the final shell for the transition
const G4AtomicTransition* ReachableShell(G4int Z, size_t shellIndex);
// This function returns the number of shells of the element
// whose atomic number is Z
G4int NumberOfShells(G4int Z);
// This function returns the number of those shells of the element
// whose atomic number is Z which are reachable through a radiative
// transition
G4int NumberOfReachableShells(G4int Z);
// Gives the sum of the probabilities of radiative transition towards the
// shell whose index is shellIndex
G4double TotalRadiativeTransitionProbability(G4int Z, size_t shellIndex);
// Gives the sum of the probabilities of non radiative transition from the
// shell whose index is shellIndex
G4double TotalNonRadiativeTransitionProbability(G4int Z, size_t shellIndex);
protected:
G4AtomicTransitionManager(G4int minZ = 1, G4int maxZ = 99,
G4int limitInfTable = 6, G4int limitSupTable=100 );
~G4AtomicTransitionManager();
private:
static G4AtomicTransitionManager* instance;
// the first element of the map is the atomic number Z.
// the second element is a vector of G4AtomicShell*.
G4std::map<G4int,G4std::vector<G4AtomicShell*>,G4std::less<G4int> > shellTable;
// the first element of the map is the atomic number Z.
// the second element is a vector of G4AtomicTransition*.
G4std::map<G4int,G4std::vector<G4AtomicTransition*>,G4std::less<G4int> > transitionTable;
// Minimum and maximum Z in EADL table containing identities and binding
// energies of shells
G4int zMin;
G4int zMax;
// Minimum and maximum Z in EADL table containing identities, transition
// energies and transition probabilities of shells
G4int infTableLimit;
G4int supTableLimit;
};
#endif