File indexing completed on 2025-01-18 09:17:08
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #ifndef FluoDataSet_hh
0039 #define FluoDataSet_hh 1
0040
0041 #include <CLHEP/Units/SystemOfUnits.h>
0042
0043 #include "globals.hh"
0044 #include "G4DataVector.hh"
0045 #include "G4VEMDataSet.hh"
0046
0047 class G4VDataSetAlgorithm;
0048
0049 class XrayFluoDataSet : public G4VEMDataSet {
0050
0051 public:
0052
0053 XrayFluoDataSet(G4int Z,
0054 G4DataVector* points,
0055 G4DataVector* values,
0056 const G4VDataSetAlgorithm* interpolation,
0057 G4double unitE = CLHEP::MeV, G4double unitData = CLHEP::barn);
0058
0059 XrayFluoDataSet(G4int Z,
0060 const G4String& dataFile,
0061 const G4VDataSetAlgorithm* interpolation,
0062 G4double unitE = CLHEP::MeV, G4double unitData = CLHEP::barn);
0063
0064 ~XrayFluoDataSet();
0065
0066
0067
0068 G4double FindValue(G4double e, G4int) const;
0069
0070 virtual const G4VEMDataSet* GetComponent(G4int) const { return 0;}
0071
0072 virtual void AddComponent(G4VEMDataSet*) { }
0073
0074 virtual size_t NumberOfComponents() const { return 0; }
0075
0076 virtual void SetEnergiesData(G4DataVector*, G4DataVector*, int
0077 = 0) {}
0078
0079 virtual G4bool SaveData(const G4String&) const {return true;}
0080
0081 virtual G4double RandomSelect(int = 0) const {return 0;}
0082
0083 void PrintData() const;
0084
0085 const G4DataVector& GetEnergies(G4int) const { return *energies; }
0086 const G4DataVector& GetData(G4int) const { return *data; }
0087
0088 virtual const G4DataVector& GetLogEnergies(G4int ) const { return *energies; }
0089 virtual const G4DataVector& GetLogData(G4int ) const { return *data; }
0090
0091
0092 virtual void SetLogEnergiesData(G4DataVector* ,
0093 G4DataVector* ,
0094 G4DataVector* ,
0095 G4DataVector* ,
0096 G4int ) {;}
0097
0098 virtual G4bool LoadNonLogData(const G4String& ) {return false;}
0099
0100
0101
0102
0103
0104 private:
0105
0106
0107 G4bool LoadData(const G4String& dataFile);
0108
0109 G4int FindBinLocation(G4double energy) const;
0110
0111 G4DataVector* energies;
0112 G4DataVector* data;
0113
0114 const G4VDataSetAlgorithm* algorithm;
0115
0116 G4double unit1;
0117 G4double unit2;
0118
0119 size_t numberOfBins;
0120
0121 };
0122
0123 #endif