- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/include/G4VEMDataSet.hh
r819 r961 25 25 // 26 26 // 27 // $Id: G4VEMDataSet.hh,v 1. 9 2007/10/15 08:31:49pia Exp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4VEMDataSet.hh,v 1.12 2008/03/17 13:45:25 pia Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch) … … 44 44 // ------------------------------------------------------------------- 45 45 46 #ifndef 47 46 #ifndef G4VEMDATASET_HH 47 #define G4VEMDATASET_HH 1 48 48 49 50 49 #include "globals.hh" 50 #include "G4DataVector.hh" 51 51 52 53 54 55 56 virtual~G4VEMDataSet() { }52 class G4VEMDataSet 53 { 54 public: 55 G4VEMDataSet() { } 56 virtual ~G4VEMDataSet() { } 57 57 58 virtual G4double FindValue(G4double argEnergy, G4int argComponentId=0) const = 0;58 virtual G4double FindValue(G4double x, G4int componentId = 0) const = 0; 59 59 60 virtual voidPrintData(void) const = 0;60 virtual void PrintData(void) const = 0; 61 61 62 virtual const G4VEMDataSet * GetComponent(G4int argComponentId) const = 0;63 virtual void AddComponent(G4VEMDataSet * argDataSet) = 0;64 virtual size_tNumberOfComponents(void) const = 0;62 virtual const G4VEMDataSet* GetComponent(G4int componentId) const = 0; 63 virtual void AddComponent(G4VEMDataSet* dataSet) = 0; 64 virtual size_t NumberOfComponents(void) const = 0; 65 65 66 virtual const G4DataVector & GetEnergies(G4int argComponentId) const = 0;67 virtual const G4DataVector & GetData(G4int argComponentId) const = 0;68 virtual void SetEnergiesData(G4DataVector * argEnergies, G4DataVector * argData, G4int argComponent=0) = 0;66 virtual const G4DataVector& GetEnergies(G4int componentId) const = 0; 67 virtual const G4DataVector& GetData(G4int componentId) const = 0; 68 virtual void SetEnergiesData(G4DataVector* x, G4DataVector* data, G4int component=0) = 0; 69 69 70 virtual G4bool LoadData(const G4String & argFileName) = 0; 71 virtual G4bool SaveData(const G4String & argFileName) const = 0; 70 virtual G4bool LoadData(const G4String& fileName) = 0; 71 virtual G4bool SaveData(const G4String& fileName) const = 0; 72 73 virtual G4double RandomSelect(G4int componentId = 0) const = 0; 72 74 73 74 75 G4VEMDataSet(const G4VEMDataSet& copy);76 G4VEMDataSet & operator=(const G4VEMDataSet& right);77 75 private: 76 // Hide copy constructor and assignment operator 77 G4VEMDataSet(const G4VEMDataSet& copy); 78 G4VEMDataSet& operator=(const G4VEMDataSet& right); 79 }; 78 80 #endif /* G4VEMDATASET_HH */
Note: See TracChangeset
for help on using the changeset viewer.