31 #include <boost/python.hpp>
35 using namespace boost::python;
40 namespace pyG4Element {
46 const G4double* aVec= element-> GetRelativeAbundanceVector();
47 G4int niso= element-> GetNumberOfIsotopes();
48 for(
G4int i=0; i<niso; i++) {
49 aList.append(aVec[i]);
62 using namespace pyG4Element;
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<>())