Geant4-11
Namespaces | Functions
pyG4Element.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4Element.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4Element
 

Functions

void export_G4Element ()
 
list pyG4Element::f_GetRelativeAbundanceVector (const G4Element *element)
 
void pyG4Element::Print (G4Element &ele)
 

Function Documentation

◆ export_G4Element()

void export_G4Element ( )

Definition at line 67 of file pyG4Element.cc.

68{
69 class_<G4Element, G4Element*, boost::noncopyable>
70 ("G4Element", "element class", no_init)
71 // constructors
72 .def(init<const G4String&, const G4String&, G4double, G4double>())
73 .def(init<const G4String&, const G4String&, G4int>())
74 // ---
75 .def("AddIsotope", &G4Element::AddIsotope)
76 .def("GetName", &G4Element::GetName,
77 return_value_policy<reference_existing_object>())
78 .def("GetSymbol", &G4Element::GetSymbol,
79 return_value_policy<reference_existing_object>())
80 .def("SetName", &G4Element::SetName)
81 .def("GetZ", &G4Element::GetZ)
82 .def("GetN", &G4Element::GetN)
83 .def("GetA", &G4Element::GetA)
84 .def("GetNbOfAtomicShells", &G4Element::GetNbOfAtomicShells)
85 .def("GetAtomicShell", &G4Element::GetAtomicShell)
86 .def("GetNumberOfIsotopes", &G4Element::GetNumberOfIsotopes)
87 .def("GetIsotopeVector", &G4Element::GetIsotopeVector,
88 return_internal_reference<>())
89 .def("GetRelativeAbundanceVector", f_GetRelativeAbundanceVector)
90 .def("GetIsotope", &G4Element::GetIsotope,
91 return_value_policy<reference_existing_object>())
92 .def("GetElementTable", &G4Element::GetElementTable,
93 return_value_policy<reference_existing_object>())
94 .staticmethod("GetElementTable")
95 .def("GetNumberOfElements", &G4Element::GetNumberOfElements)
96 .staticmethod("GetNumberOfElements")
97 .def("GetIndex", &G4Element::GetIndex)
98 .def("GetElement", &G4Element::GetElement,
99 return_value_policy<reference_existing_object>())
100 .staticmethod("GetElement")
101 .def("GetfCoulomb", &G4Element::GetfCoulomb)
102 .def("GetfRadTsai", &G4Element::GetfRadTsai)
103 .def("GetIonisation", &G4Element::GetIonisation,
104 return_internal_reference<>())
105 // ---
106 .def("Print", Print)
107 ;
108}
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:397
const G4String & GetSymbol() const
Definition: G4Element.hh:128
G4double GetZ() const
Definition: G4Element.hh:131
G4int GetNbOfAtomicShells() const
Definition: G4Element.hh:147
static size_t GetNumberOfElements()
Definition: G4Element.cc:404
void SetName(const G4String &name)
Definition: G4Element.hh:215
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
Definition: G4Element.cc:151
const G4Isotope * GetIsotope(G4int iso) const
Definition: G4Element.hh:170
G4double GetA() const
Definition: G4Element.hh:139
size_t GetIndex() const
Definition: G4Element.hh:182
size_t GetNumberOfIsotopes() const
Definition: G4Element.hh:159
const G4String & GetName() const
Definition: G4Element.hh:127
G4double GetfCoulomb() const
Definition: G4Element.hh:191
G4IonisParamElm * GetIonisation() const
Definition: G4Element.hh:199
G4double GetfRadTsai() const
Definition: G4Element.hh:195
G4double GetN() const
Definition: G4Element.hh:135
G4double GetAtomicShell(G4int index) const
Definition: G4Element.cc:366
static G4Element * GetElement(G4String name, G4bool warning=true)
Definition: G4Element.cc:411
G4IsotopeVector * GetIsotopeVector() const
Definition: G4Element.hh:163
list f_GetRelativeAbundanceVector(const G4Element *element)
Definition: pyG4Element.cc:43
void Print(G4Element &ele)
Definition: pyG4Element.cc:55

References G4Element::AddIsotope(), pyG4Element::f_GetRelativeAbundanceVector(), G4Element::GetA(), G4Element::GetAtomicShell(), G4Element::GetElement(), G4Element::GetElementTable(), G4Element::GetfCoulomb(), G4Element::GetfRadTsai(), G4Element::GetIndex(), G4Element::GetIonisation(), G4Element::GetIsotope(), G4Element::GetIsotopeVector(), G4Element::GetN(), G4Element::GetName(), G4Element::GetNbOfAtomicShells(), G4Element::GetNumberOfElements(), G4Element::GetNumberOfIsotopes(), G4Element::GetSymbol(), G4Element::GetZ(), pyG4Element::Print(), and G4Element::SetName().

Referenced by BOOST_PYTHON_MODULE().