00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id: G4UAtomicDeexcitation.cc,v 1.11 00027 // GEANT4 tag $Name: not supported by cvs2svn $ 00028 // 00029 // ------------------------------------------------------------------- 00030 // 00031 // GEANT4 Class file 00032 // 00033 // 00034 // File name: G4VhShellCrossSection 00035 // 00036 // Author: S. Dussoni and A. Mantero (Alfonso.Mantero@ge.infn.it) 00037 // 00038 // History: 00039 // ----------- 00040 // 23 Oct 2001 A. Mantero 1st implementation 00041 // 24 Oct 2001 MGP Cleaned up 00042 // 29 Oct 2001 VI Add delta energy 00043 // 15 Mar 2011 ALF Introduced the usage of G4AtomicShellEnumerator 00044 // 09 Mar 2012 LP Added const G4Material* to the signature of virtual 00045 // methods. 00046 // 00047 // ------------------------------------------------------------------- 00048 00049 // Class Description: 00050 // 00051 // Abstract class for models of shell cross sections in proton ionisation 00052 // ------------------------------------------------------------------- 00053 // 00054 00055 #ifndef G4VHSHELLCROSSSECTION_HH 00056 #define G4VHSHELLCROSSSECTION_HH 1 00057 00058 #include "globals.hh" 00059 #include <vector> 00060 #include "G4AtomicShellEnumerator.hh" 00061 #include "G4Material.hh" 00062 00063 00064 class G4VhShellCrossSection 00065 { 00066 00067 public: 00068 00069 G4VhShellCrossSection(const G4String& xname = ""); 00070 00071 virtual ~G4VhShellCrossSection(); 00072 00073 G4int SelectRandomShell(G4int Z, 00074 G4double incidentEnergy, 00075 G4double mass, 00076 G4double deltaEnergy, 00077 const G4Material* mat); 00078 00079 virtual std::vector<G4double> GetCrossSection(G4int Z, 00080 G4double incidentEnergy, 00081 G4double mass, 00082 G4double deltaEnergy, 00083 const G4Material* mat) = 0; 00084 00085 00086 virtual G4double CrossSection(G4int Z, 00087 G4AtomicShellEnumerator shell, 00088 G4double incidentEnergy, 00089 G4double mass, 00090 const G4Material* mat) =0; 00091 00092 //protected: 00093 00094 virtual std::vector<G4double> Probabilities(G4int Z, 00095 G4double incidentEnergy, 00096 G4double mass, 00097 G4double deltaEnergy, 00098 const G4Material* mat) = 0; 00099 00100 00101 virtual void SetTotalCS(G4double); 00102 00103 inline const G4String& GetName() const; 00104 00105 private: 00106 00107 // Hide copy constructor and assignment operator 00108 G4VhShellCrossSection(const G4VhShellCrossSection&); 00109 G4VhShellCrossSection & operator=(const G4VhShellCrossSection &right); 00110 00111 G4String name; 00112 00113 }; 00114 00115 inline const G4String& G4VhShellCrossSection::GetName() const 00116 { 00117 return name; 00118 } 00119 00120 #endif 00121