00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #ifndef G4CrossSectionDataStore_h
00047 #define G4CrossSectionDataStore_h 1
00048
00049 #include "globals.hh"
00050 #include "G4VCrossSectionDataSet.hh"
00051 #include <vector>
00052
00053 class G4Nucleus;
00054 class G4DynamicParticle;
00055 class G4ParticleDefinition;
00056 class G4Isotope;
00057 class G4Element;
00058 class G4Material;
00059 class G4NistManager;
00060
00061 class G4CrossSectionDataStore
00062 {
00063 public:
00064
00065 G4CrossSectionDataStore();
00066
00067 ~G4CrossSectionDataStore();
00068
00069
00070 G4double GetCrossSection(const G4DynamicParticle*, const G4Material*);
00071
00072
00073 G4double GetCrossSection(const G4DynamicParticle*,
00074 const G4Element*, const G4Material*);
00075
00076
00077 G4double GetCrossSection(const G4DynamicParticle*, G4int Z, G4int A,
00078 const G4Isotope*,
00079 const G4Element*, const G4Material*);
00080
00081
00082 G4Element* SampleZandA(const G4DynamicParticle*, const G4Material*,
00083 G4Nucleus& target);
00084
00085
00086 void BuildPhysicsTable(const G4ParticleDefinition&);
00087
00088
00089 void DumpPhysicsTable(const G4ParticleDefinition&);
00090
00091
00092 void DumpHtml(const G4ParticleDefinition&, std::ofstream&);
00093
00094 inline void AddDataSet(G4VCrossSectionDataSet*);
00095
00096 inline void SetVerboseLevel(G4int value);
00097
00098 private:
00099
00100 G4double GetIsoCrossSection(const G4DynamicParticle*, G4int Z, G4int A,
00101 const G4Isotope*,
00102 const G4Element*, const G4Material* aMaterial,
00103 G4int index);
00104
00105 G4CrossSectionDataStore & operator=(const G4CrossSectionDataStore &right);
00106 G4CrossSectionDataStore(const G4CrossSectionDataStore&);
00107
00108 G4NistManager* nist;
00109
00110 std::vector<G4VCrossSectionDataSet*> dataSetList;
00111 std::vector<G4double> xsecelm;
00112 std::vector<G4double> xseciso;
00113
00114 const G4Material* currentMaterial;
00115 const G4ParticleDefinition* matParticle;
00116 G4double matKinEnergy;
00117 G4double matCrossSection;
00118
00119 const G4Material* elmMaterial;
00120 const G4Element* currentElement;
00121 const G4ParticleDefinition* elmParticle;
00122 G4double elmKinEnergy;
00123 G4double elmCrossSection;
00124
00125 G4int nDataSetList;
00126 G4int verboseLevel;
00127 };
00128
00129 inline void G4CrossSectionDataStore::AddDataSet(G4VCrossSectionDataSet* p)
00130 {
00131 dataSetList.push_back(p);
00132 ++nDataSetList;
00133 }
00134
00135 inline void G4CrossSectionDataStore::SetVerboseLevel(G4int value)
00136 {
00137 verboseLevel = value;
00138 }
00139
00140 #endif