43#define ElementData_h 1
139 return compLength[Z];
144 return (compID[Z])[idx];
150 return (compData[Z])[idx];
157 for(
size_t i=0; i<compLength[Z]; ++i) {
158 if(
id == (compID[Z])[i]) {
159 v = (compData[Z])[i];
169 return elmData[Z]->
Value(kinEnergy);
175 return ((compData[Z])[idx])->Value(kinEnergy);
const G4int maxNumElements
void InitialiseForComponent(G4int Z, G4int nComponents=0)
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4int GetComponentID(G4int Z, size_t idx)
G4PhysicsVector * GetElementData(G4int Z)
G4PhysicsVector * GetComponentDataByIndex(G4int Z, size_t idx)
G4Physics2DVector * GetElement2DData(G4int Z)
G4double GetValueForElement(G4int Z, G4double kinEnergy)
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
void SetName(const G4String &nam)
G4double GetValueForComponent(G4int Z, size_t idx, G4double kinEnergy)
G4PhysicsVector * GetComponentDataByID(G4int Z, G4int id)
size_t GetNumberOfComponents(G4int Z)
G4double Value(G4double theEnergy, std::size_t &lastidx) const