32 #include <boost/python.hpp> 33 #include "G4Version.hh" 34 #include "G4Element.hh" 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>())
76 .def(
"AddIsotope", &G4Element::AddIsotope)
77 .def(
"GetName", &G4Element::GetName,
78 return_value_policy<reference_existing_object>())
79 .def(
"GetSymbol", &G4Element::GetSymbol,
80 return_value_policy<reference_existing_object>())
81 .def(
"SetName", &G4Element::SetName)
82 .def(
"GetZ", &G4Element::GetZ)
83 .def(
"GetN", &G4Element::GetN)
84 .def(
"GetA", &G4Element::GetA)
85 .def(
"GetNbOfAtomicShells", &G4Element::GetNbOfAtomicShells)
86 .def(
"GetAtomicShell", &G4Element::GetAtomicShell)
87 .def(
"GetNumberOfIsotopes", &G4Element::GetNumberOfIsotopes)
88 .def(
"GetIsotopeVector", &G4Element::GetIsotopeVector,
89 return_internal_reference<>())
91 .def(
"GetIsotope", &G4Element::GetIsotope,
92 return_value_policy<reference_existing_object>())
93 .def(
"GetElementTable", &G4Element::GetElementTable,
94 return_value_policy<reference_existing_object>())
95 .staticmethod(
"GetElementTable")
96 .def(
"GetNumberOfElements", &G4Element::GetNumberOfElements)
97 .staticmethod(
"GetNumberOfElements")
98 .def(
"GetIndex", &G4Element::GetIndex)
99 .def(
"GetElement", &G4Element::GetElement,
100 return_value_policy<reference_existing_object>())
101 .staticmethod(
"GetElement")
102 .def(
"GetfCoulomb", &G4Element::GetfCoulomb)
103 .def(
"GetfRadTsai", &G4Element::GetfRadTsai)
104 .def(
"GetIonisation", &G4Element::GetIonisation,
105 return_internal_reference<>())
void Print(G4Element &ele)
list f_GetRelativeAbundanceVector(const G4Element *element)