43#define ElementData_h 1
118 static const G4int maxNumElm = 99;
121 std::vector<G4PhysicsVector*>* compData[maxNumElm];
122 std::vector<G4int>* compID[maxNumElm];
123 G4int compLength[maxNumElm];
148 return compID[
Z]->size();
153 return (*(compID[
Z]))[idx];
159 return (*(compData[
Z]))[idx];
166 for(
G4int i=0; i<compLength[
Z]; ++i) {
167 if(
id == (*(compID[
Z]))[i]) {
168 v = (*(compData[
Z]))[i];
178 return elmData[
Z]->
Value(kinEnergy);
184 return (*(compData[
Z]))[idx]->Value(kinEnergy);
G4PhysicsVector * GetComponentDataByIndex(G4int Z, G4int idx)
void InitialiseForComponent(G4int Z, G4int nComponents=0)
G4ElementData & operator=(const G4ElementData &right)=delete
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4PhysicsVector * GetElementData(G4int Z)
G4double GetValueForComponent(G4int Z, G4int idx, G4double kinEnergy)
G4Physics2DVector * GetElement2DData(G4int Z)
G4double GetValueForElement(G4int Z, G4double kinEnergy)
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
void SetName(const G4String &nam)
G4int GetComponentID(G4int Z, G4int idx)
G4PhysicsVector * GetComponentDataByID(G4int Z, G4int id)
G4ElementData(const G4ElementData &)=delete
size_t GetNumberOfComponents(G4int Z)
G4double Value(const G4double energy, std::size_t &lastidx) const