32 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4Element {
47 const G4double* aVec= element-> GetRelativeAbundanceVector();
48 G4int niso= element-> GetNumberOfIsotopes();
49 for(
G4int i=0; i<niso; i++) {
50 aList.append(aVec[i]);
63 using namespace pyG4Element;
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<>())
G4IsotopeVector * GetIsotopeVector() const
void SetName(const G4String &name)
G4double GetAtomicShell(G4int index) const
G4int GetNbOfAtomicShells() const
const G4String & GetName() const
static G4Element * GetElement(G4String name, G4bool warning=true)
G4double GetfRadTsai() const
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
void Print(G4Element &ele)
G4IonisParamElm * GetIonisation() const
const G4Isotope * GetIsotope(G4int iso) const
static size_t GetNumberOfElements()
list f_GetRelativeAbundanceVector(const G4Element *element)
G4double GetfCoulomb() const
const G4String & GetSymbol() const
static const G4double ele
static G4ElementTable * GetElementTable()
size_t GetNumberOfIsotopes() const