44 #define ElementData_h 1
159 if(
id == (
compID[Z])[i]) {
176 return ((
compData[Z])[idx])->Value(kinEnergy);
std::vector< G4int > compID[maxNumElements]
G4double Value(G4double theEnergy, size_t &lastidx) const
G4Physics2DVector * elm2Data[maxNumElements]
G4PhysicsVector * GetElementData(G4int Z)
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
void SetName(const G4String &nam)
G4int GetComponentID(G4int Z, size_t idx)
G4ElementData & operator=(const G4ElementData &right)=delete
G4Physics2DVector * GetElement2DData(G4int Z)
G4PhysicsVector * elmData[maxNumElements]
size_t GetNumberOfComponents(G4int Z)
G4PhysicsVector * GetComponentDataByIndex(G4int Z, size_t idx)
G4PhysicsVector * GetComponentDataByID(G4int Z, G4int id)
G4double GetValueForElement(G4int Z, G4double kinEnergy)
const G4int maxNumElements
G4double GetValueForComponent(G4int Z, size_t idx, G4double kinEnergy)
void InitialiseForComponent(G4int Z, G4int nComponents=0)
std::vector< G4PhysicsVector * > compData[maxNumElements]
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
size_t compLength[maxNumElements]