31#include <boost/python.hpp>
35using namespace boost::python;
46 const G4double* aVec= element-> GetRelativeAbundanceVector();
47 G4int niso= element-> GetNumberOfIsotopes();
48 for(
G4int i=0; i<niso; i++) {
49 aList.append(aVec[i]);
69 class_<G4Element, G4Element*, boost::noncopyable>
70 (
"G4Element",
"element class", no_init)
72 .def(init<const G4String&, const G4String&, G4double, G4double>())
73 .def(init<const G4String&, const G4String&, G4int>())
77 return_value_policy<reference_existing_object>())
79 return_value_policy<reference_existing_object>())
88 return_internal_reference<>())
91 return_value_policy<reference_existing_object>())
93 return_value_policy<reference_existing_object>())
94 .staticmethod(
"GetElementTable")
96 .staticmethod(
"GetNumberOfElements")
99 return_value_policy<reference_existing_object>())
100 .staticmethod(
"GetElement")
104 return_internal_reference<>())
static const G4double ele
static G4ElementTable * GetElementTable()
const G4String & GetSymbol() const
G4int GetNbOfAtomicShells() const
static size_t GetNumberOfElements()
void SetName(const G4String &name)
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
const G4Isotope * GetIsotope(G4int iso) const
size_t GetNumberOfIsotopes() const
const G4String & GetName() const
G4double GetfCoulomb() const
G4IonisParamElm * GetIonisation() const
G4double GetfRadTsai() const
G4double GetAtomicShell(G4int index) const
static G4Element * GetElement(G4String name, G4bool warning=true)
G4IsotopeVector * GetIsotopeVector() const
list f_GetRelativeAbundanceVector(const G4Element *element)
void Print(G4Element &ele)