47#ifndef G4ElementData_h
48#define G4ElementData_h 1
142 const G4int maxNumElm;
144 std::vector<G4PhysicsVector*> elmData;
145 std::vector<G4Physics2DVector*> elm2Data;
146 std::vector<std::vector<std::pair<G4int, G4PhysicsVector*> >* > compData;
147 std::vector<std::vector<std::pair<G4int, G4Physics2DVector*> >* > comp2D;
180 for (
auto const & p : *(compData[Z])) {
193 for (
auto const & p : *(comp2D[Z])) {
205 return elmData[Z]->Value(kinEnergy);
214 return (
nullptr != compData[Z]) ? compData[Z]->size() : 0;
219 return (
nullptr != comp2D[Z]) ? comp2D[Z]->size() : 0;
245 (*(compData[Z]))[idx].second->Value(e) : 0.0;
void InitialiseFor2DComponent(G4int Z, G4int nComponents=0)
G4PhysicsVector * GetElementData(G4int Z) const
const G4String & GetName() const
void Add2DComponent(G4int Z, G4int id, G4Physics2DVector *v)
G4double GetValueForElement(G4int Z, G4double kinEnergy) const
G4Physics2DVector * GetElement2DData(G4int Z) const
void InitialiseForComponent(G4int Z, G4int nComponents=0)
G4PhysicsVector * GetComponentDataByIndex(G4int Z, std::size_t idx) const
G4ElementData & operator=(const G4ElementData &right)=delete
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
std::size_t GetNumberOf2DComponents(G4int Z) const
G4int GetComponentID(G4int Z, std::size_t idx) const
G4Physics2DVector * Get2DComponentDataByID(G4int Z, G4int id) const
G4double GetValueForComponent(G4int Z, std::size_t idx, G4double kinEnergy) const
G4ElementData(G4int length=99)
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
G4PhysicsVector * GetComponentDataByID(G4int Z, G4int id) const
std::size_t GetNumberOfComponents(G4int Z) const
void SetName(const G4String &nam)
G4ElementData(const G4ElementData &)=delete
G4Physics2DVector * Get2DComponentDataByIndex(G4int Z, std::size_t idx) const