Import Geant4 11.0.0.beta source tree
This commit is contained in:
+28
-42
@@ -38,79 +38,65 @@ class G4MicroElecCrossSectionDataSet : public G4VEMDataSet
|
||||
{
|
||||
|
||||
public:
|
||||
G4MicroElecCrossSectionDataSet(G4VDataSetAlgorithm* algo,
|
||||
explicit G4MicroElecCrossSectionDataSet(G4VDataSetAlgorithm* algo,
|
||||
G4double xUnit=CLHEP::MeV,
|
||||
G4double dataUnit=CLHEP::barn);
|
||||
~G4MicroElecCrossSectionDataSet();
|
||||
|
||||
virtual ~G4MicroElecCrossSectionDataSet();
|
||||
G4double FindValue(G4double e, G4int componentId=0) const override;
|
||||
void PrintData(void) const override;
|
||||
|
||||
virtual G4double FindValue(G4double e, G4int componentId=0) const;
|
||||
|
||||
virtual void PrintData(void) const;
|
||||
|
||||
virtual const G4VEMDataSet* GetComponent(G4int componentId) const
|
||||
const G4VEMDataSet* GetComponent(G4int componentId) const override
|
||||
{ return components[componentId]; }
|
||||
|
||||
virtual void AddComponent(G4VEMDataSet* dataSet)
|
||||
void AddComponent(G4VEMDataSet* dataSet) override
|
||||
{ components.push_back(dataSet); }
|
||||
|
||||
virtual size_t NumberOfComponents(void) const
|
||||
size_t NumberOfComponents(void) const override
|
||||
{ return components.size(); }
|
||||
|
||||
virtual const G4DataVector& GetEnergies(G4int componentId) const
|
||||
const G4DataVector& GetEnergies(G4int componentId) const override
|
||||
{ return GetComponent(componentId)->GetEnergies(0); }
|
||||
|
||||
virtual const G4DataVector& GetData(G4int componentId) const
|
||||
const G4DataVector& GetData(G4int componentId) const override
|
||||
{ return GetComponent(componentId)->GetData(0); }
|
||||
|
||||
virtual const G4DataVector& GetLogEnergies(G4int componentId) const
|
||||
const G4DataVector& GetLogEnergies(G4int componentId) const override
|
||||
{ return GetComponent(componentId)->GetLogEnergies(0); }
|
||||
|
||||
virtual const G4DataVector& GetLogData(G4int componentId) const
|
||||
const G4DataVector& GetLogData(G4int componentId) const override
|
||||
{ return GetComponent(componentId)->GetLogData(0); }
|
||||
|
||||
virtual void SetEnergiesData(G4DataVector* x, G4DataVector* values, G4int componentId);
|
||||
void SetEnergiesData(G4DataVector* x, G4DataVector* values,
|
||||
G4int componentId) override;
|
||||
|
||||
virtual void SetLogEnergiesData(G4DataVector* x,
|
||||
G4DataVector* values,
|
||||
G4DataVector* log_x,
|
||||
G4DataVector* log_values,
|
||||
G4int componentId);
|
||||
void SetLogEnergiesData(G4DataVector* x,
|
||||
G4DataVector* values,
|
||||
G4DataVector* log_x,
|
||||
G4DataVector* log_values,
|
||||
G4int componentId) override;
|
||||
|
||||
virtual G4bool LoadData(const G4String & argFileName);
|
||||
virtual G4bool LoadNonLogData(const G4String & argFileName);
|
||||
G4bool LoadData(const G4String & argFileName) override;
|
||||
G4bool LoadNonLogData(const G4String & argFileName) override;
|
||||
|
||||
virtual G4bool SaveData(const G4String & argFileName) const;
|
||||
G4bool SaveData(const G4String & argFileName) const override;
|
||||
|
||||
virtual G4double RandomSelect(G4int /*componentId */) const { return -1.; };
|
||||
G4double RandomSelect(G4int /*componentId */) const override { return -1.; };
|
||||
|
||||
G4MicroElecCrossSectionDataSet(const G4MicroElecCrossSectionDataSet & copy) = delete;
|
||||
G4MicroElecCrossSectionDataSet& operator=(const G4MicroElecCrossSectionDataSet & right) = delete;
|
||||
|
||||
// void CleanUpComponents();
|
||||
|
||||
private:
|
||||
|
||||
G4String FullFileName(const G4String & argFileName) const;
|
||||
|
||||
// Hide copy constructor and assignment operator
|
||||
G4MicroElecCrossSectionDataSet();
|
||||
G4MicroElecCrossSectionDataSet(const G4MicroElecCrossSectionDataSet & copy);
|
||||
G4MicroElecCrossSectionDataSet& operator=(const G4MicroElecCrossSectionDataSet & right);
|
||||
G4double GetUnitEnergies() const { return unitEnergies; }
|
||||
G4double GetUnitData() const { return unitData; }
|
||||
const G4VDataSetAlgorithm* GetAlgorithm() const { return algorithm; }
|
||||
void CleanUpComponents();
|
||||
|
||||
std::vector<G4VEMDataSet*> components; // Owned pointers
|
||||
|
||||
G4int z;
|
||||
|
||||
G4VDataSetAlgorithm* algorithm; // Owned pointer
|
||||
|
||||
G4double unitEnergies;
|
||||
G4double unitData;
|
||||
|
||||
G4double GetUnitEnergies() const { return unitEnergies; }
|
||||
G4double GetUnitData() const { return unitData; }
|
||||
const G4VDataSetAlgorithm* GetAlgorithm() const { return algorithm; }
|
||||
|
||||
void CleanUpComponents(void);
|
||||
|
||||
|
||||
};
|
||||
#endif /* G4MicroElecCrossSectionDataSet_HH */
|
||||
|
||||
Reference in New Issue
Block a user