32 #include <boost/python.hpp>
47 const G4double* aVec= element-> GetRelativeAbundanceVector();
48 G4int niso= element-> GetNumberOfIsotopes();
49 for(
G4int i=0; i<niso; i++) {
50 aList.append(aVec[i]);
70 class_<G4Element, G4Element*, boost::noncopyable>
71 (
"G4Element",
"element class", no_init)
73 .def(init<const G4String&, const G4String&, G4double, G4double>())
74 .def(init<const G4String&, const G4String&, G4int>())
78 return_value_policy<reference_existing_object>())
80 return_value_policy<reference_existing_object>())
89 return_internal_reference<>())
92 return_value_policy<reference_existing_object>())
94 return_value_policy<reference_existing_object>())
95 .staticmethod(
"GetElementTable")
97 .staticmethod(
"GetNumberOfElements")
100 return_value_policy<reference_existing_object>())
101 .staticmethod(
"GetElement")
105 return_internal_reference<>())
size_t GetNumberOfIsotopes() const
G4int GetNbOfAtomicShells() const
static G4Element * GetElement(G4String name, G4bool warning=true)
const G4String & GetSymbol() const
G4double GetfCoulomb() const
list f_GetRelativeAbundanceVector(const G4Element *element)
static size_t GetNumberOfElements()
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
G4IsotopeVector * GetIsotopeVector() const
G4double GetfRadTsai() const
G4IonisParamElm * GetIonisation() const
static const G4double ele
const G4Isotope * GetIsotope(G4int iso) const
G4double GetAtomicShell(G4int index) const
const G4String & GetName() const
static G4ElementTable * GetElementTable()
void SetName(const G4String &name)
void Print(G4Element &ele)