Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ShellEMDataSet.hh,v 1.8 2006/06/29 19:36:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4ShellEMDataSet.hh,v 1.9 2007/10/15 08:31:49 pia Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
|
||||
//
|
||||
@@ -55,46 +55,46 @@
|
||||
class G4ShellEMDataSet : public G4VEMDataSet
|
||||
{
|
||||
public:
|
||||
G4ShellEMDataSet(G4int argZ, G4VDataSetAlgorithm* argAlgorithm, G4double argUnitEnergies=MeV, G4double argUnitData=barn);
|
||||
virtual ~G4ShellEMDataSet();
|
||||
G4ShellEMDataSet(G4int argZ, G4VDataSetAlgorithm* argAlgorithm, G4double argUnitEnergies=MeV, G4double argUnitData=barn);
|
||||
virtual ~G4ShellEMDataSet();
|
||||
|
||||
virtual G4double FindValue(G4double argEnergy, G4int argComponentId=0) const;
|
||||
virtual G4double FindValue(G4double argEnergy, G4int argComponentId=0) const;
|
||||
|
||||
virtual void PrintData(void) const;
|
||||
virtual void PrintData(void) const;
|
||||
|
||||
virtual const G4VEMDataSet * GetComponent(G4int argComponentId) const { return components[argComponentId]; }
|
||||
virtual void AddComponent(G4VEMDataSet * argDataSet) { components.push_back(argDataSet); }
|
||||
virtual size_t NumberOfComponents(void) const { return components.size(); }
|
||||
virtual const G4VEMDataSet* GetComponent(G4int argComponentId) const { return components[argComponentId]; }
|
||||
virtual void AddComponent(G4VEMDataSet * argDataSet) { components.push_back(argDataSet); }
|
||||
virtual size_t NumberOfComponents(void) const { return components.size(); }
|
||||
|
||||
virtual const G4DataVector & GetEnergies(G4int argComponentId) const { return GetComponent(argComponentId)->GetEnergies(0); }
|
||||
virtual const G4DataVector & GetData(G4int argComponentId) const { return GetComponent(argComponentId)->GetData(0); }
|
||||
virtual void SetEnergiesData(G4DataVector * argEnergies, G4DataVector * argData, G4int argComponentId);
|
||||
virtual const G4DataVector& GetEnergies(G4int argComponentId) const { return GetComponent(argComponentId)->GetEnergies(0); }
|
||||
virtual const G4DataVector& GetData(G4int argComponentId) const { return GetComponent(argComponentId)->GetData(0); }
|
||||
virtual void SetEnergiesData(G4DataVector * argEnergies, G4DataVector * argData, G4int argComponentId);
|
||||
|
||||
virtual G4bool LoadData(const G4String & argFileName);
|
||||
virtual G4bool SaveData(const G4String & argFileName) const;
|
||||
virtual G4bool LoadData(const G4String & argFileName);
|
||||
virtual G4bool SaveData(const G4String & argFileName) const;
|
||||
|
||||
protected:
|
||||
G4double GetUnitEnergies() const { return unitEnergies; }
|
||||
G4double GetUnitData() const { return unitData; }
|
||||
const G4VDataSetAlgorithm * GetAlgorithm() const { return algorithm; }
|
||||
protected:
|
||||
G4double GetUnitEnergies() const { return unitEnergies; }
|
||||
G4double GetUnitData() const { return unitData; }
|
||||
const G4VDataSetAlgorithm* GetAlgorithm() const { return algorithm; }
|
||||
|
||||
void CleanUpComponents(void);
|
||||
void CleanUpComponents(void);
|
||||
|
||||
private:
|
||||
G4String FullFileName(const G4String & argFileName) const;
|
||||
private:
|
||||
G4String FullFileName(const G4String & argFileName) const;
|
||||
|
||||
// Hide copy constructor and assignment operator
|
||||
G4ShellEMDataSet();
|
||||
G4ShellEMDataSet(const G4ShellEMDataSet & copy);
|
||||
G4ShellEMDataSet & operator=(const G4ShellEMDataSet & right);
|
||||
G4ShellEMDataSet();
|
||||
G4ShellEMDataSet(const G4ShellEMDataSet & copy);
|
||||
G4ShellEMDataSet& operator=(const G4ShellEMDataSet & right);
|
||||
|
||||
std::vector<G4VEMDataSet *> components; // Owned pointers
|
||||
std::vector<G4VEMDataSet*> components; // Owned pointers
|
||||
|
||||
G4int z;
|
||||
G4int z;
|
||||
|
||||
G4VDataSetAlgorithm * algorithm; // Owned pointer
|
||||
G4VDataSetAlgorithm* algorithm; // Owned pointer
|
||||
|
||||
G4double unitEnergies;
|
||||
G4double unitData;
|
||||
G4double unitEnergies;
|
||||
G4double unitData;
|
||||
};
|
||||
#endif /* G4SHELLEMDATASET_HH */
|
||||
|
||||
Reference in New Issue
Block a user