// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * 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. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it) // // History: // ----------- // 16 Sept 2001 First committed to cvs // // ------------------------------------------------------------------- // Class description: // Low Energy Electromagnetic Physics // Fluorescence data set: shell identifiers, transition probabilities, // transition energies // ------------------------------------------------------------------- #ifndef G4FLUODATA_HH #define G4FLUODATA_HH 1 #include "globals.hh" #include #include class G4FluoTransition; class G4DataVector; class G4FluoData { public: explicit G4FluoData(const G4String& dir); ~G4FluoData(); /// The method returns the number of shells in wich a /// vacancy can be filled by a radiative transition std::size_t NumberOfVacancies() const; /// Given the index of the vacancy returns its identity G4int VacancyId(G4int vacancyIndex) const; /// Given the index of a vacancy returns the number of /// shells starting from wich an electrons can fill the vacancy std::size_t NumberOfTransitions(G4int vacancyIndex) const; /// Given the indexes of the starting and final shells for the /// transition, returns the identity of the starting one G4int StartShellId(G4int initIndex, G4int vacancyIndex) const; /// Given the indexes of the starting and final shells for the /// transition, returns the transition energy G4double StartShellEnergy(G4int initIndex, G4int vacancyIndex) const; /// Given the indexes of the starting and final shells for the /// transition, returns the probability of this transition G4double StartShellProb(G4int initIndex, G4int vacancyIndex) const; void LoadData(G4int Z); void PrintData(); G4FluoData& operator=(const G4FluoData& right) = delete; G4FluoData(const G4FluoData&) = delete; private: std::map > idMap; std::map > energyMap; std::map > probabilityMap; std::vector nInitShells; std::map,std::less > fluoTransitionTable; G4String fluoDirectory; G4int numberOfVacancies = 0; }; #endif