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
00051
00052
00053
00054
00055 #ifndef G4PenelopeOscillatorManager_h
00056 #define G4PenelopeOscillatorManager_h 1
00057
00058 #include "globals.hh"
00059 #include "G4PenelopeOscillator.hh"
00060 #include <vector>
00061 #include <map>
00062
00063 class G4Material;
00064
00065 typedef std::vector<G4PenelopeOscillator*> G4PenelopeOscillatorTable ;
00066
00067
00068 class G4PenelopeOscillatorManager {
00069
00070 public:
00071
00072
00073
00074 static G4PenelopeOscillatorManager* GetOscillatorManager();
00075
00076
00077 void Clear();
00078 void Dump(const G4Material*);
00079
00080
00081 G4PenelopeOscillatorTable* GetOscillatorTableIonisation(const G4Material*);
00082 G4PenelopeOscillator* GetOscillatorIonisation(const G4Material*,G4int);
00083
00084
00085 G4PenelopeOscillatorTable* GetOscillatorTableCompton(const G4Material*);
00086 G4PenelopeOscillator* GetOscillatorCompton(const G4Material*,G4int);
00087
00088 void SetVerbosityLevel(G4int vl){verbosityLevel = vl;};
00089 G4int GetVerbosityLevel(){return verbosityLevel;};
00090
00093 G4double GetTotalZ(const G4Material*);
00095 G4double GetTotalA(const G4Material*);
00097 G4double GetMeanExcitationEnergy(const G4Material*);
00099 G4double GetPlasmaEnergySquared(const G4Material*);
00101 G4double GetAtomsPerMolecule(const G4Material*);
00102
00103
00104 G4double GetNumberOfZAtomsPerMolecule(const G4Material*,G4int Z);
00105
00106 protected:
00107 G4PenelopeOscillatorManager();
00108 ~G4PenelopeOscillatorManager();
00109
00110 private:
00111
00112 G4PenelopeOscillatorManager& operator=(const
00113 G4PenelopeOscillatorManager& right);
00114 G4PenelopeOscillatorManager(const G4PenelopeOscillatorManager&);
00115
00116 static G4PenelopeOscillatorManager* instance;
00117
00118
00119
00120 std::map<const G4Material*,G4PenelopeOscillatorTable*>
00121 *oscillatorStoreIonisation;
00122
00123 std::map<const G4Material*,G4PenelopeOscillatorTable*>
00124 *oscillatorStoreCompton;
00125
00126 std::map<const G4Material*,G4double> *atomicNumber;
00127 std::map<const G4Material*,G4double> *atomicMass;
00128
00129 std::map<const G4Material*,G4double> *excitationEnergy;
00130 std::map<const G4Material*,G4double> *plasmaSquared;
00131
00132 std::map<const G4Material*,G4double> *atomsPerMolecule;
00133
00134 std::map< std::pair<const G4Material*,G4int>, G4double> *atomTablePerMolecule;
00135
00136
00137 void CheckForTablesCreated();
00138
00139 void ReadElementData();
00140 G4double elementData[5][2000];
00141 G4bool fReadElementData;
00142
00143 void BuildOscillatorTable(const G4Material*);
00144
00145 G4int verbosityLevel;
00146
00147 };
00148
00149 #endif