44 #define ElementData_h 1
140 return compLength[
Z];
145 return (compID[Z])[idx];
151 return (compData[Z])[idx];
158 for(
size_t i=0; i<compLength[
Z]; ++i) {
159 if(
id == (compID[Z])[i]) {
160 v = (compData[
Z])[i];
170 return elmData[
Z]->
Value(kinEnergy);
176 return ((compData[Z])[idx])->Value(kinEnergy);
G4PhysicsVector * GetComponentDataByIndex(G4int Z, size_t idx)
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
G4PhysicsVector * GetComponentDataByID(G4int Z, G4int id)
G4PhysicsVector * GetElementData(G4int Z)
const G4int maxNumElements
G4int GetComponentID(G4int Z, size_t idx)
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
size_t GetNumberOfComponents(G4int Z)
G4double Value(G4double theEnergy, size_t &lastidx) const
G4double GetValueForElement(G4int Z, G4double kinEnergy)
G4double GetValueForComponent(G4int Z, size_t idx, G4double kinEnergy)
void SetName(const G4String &nam)
G4Physics2DVector * GetElement2DData(G4int Z)
void InitialiseForComponent(G4int Z, G4int nComponents=0)