LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pyG4Isotope.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "pyG4indexing.hh"
#include "G4Isotope.hh"

Go to the source code of this file.

Namespaces

 pyG4Isotope
 

Functions

void pyG4Isotope::Print (G4Isotope &iso)
 
void export_G4Isotope ()
 

Function Documentation

void export_G4Isotope ( )

Definition at line 59 of file pyG4Isotope.cc.

References pyG4Isotope::Print().

Referenced by BOOST_PYTHON_MODULE().

60 {
61  class_<G4Isotope, G4Isotope*, boost::noncopyable>
62  ("G4Isotope", "isotope class", no_init)
63  // constructors
64  .def(init<const G4String&, G4int, G4int>())
65  .def(init<const G4String&, G4int, G4int, G4double>())
66  // ---
67  .def("GetName", &G4Isotope::GetName,
68  return_value_policy<reference_existing_object>())
69  .def("SetName", &G4Isotope::SetName)
70  .def("GetZ", &G4Isotope::GetZ)
71  .def("GetN", &G4Isotope::GetN)
72  .def("GetA", &G4Isotope::GetA)
73  .def("GetIsotope", &G4Isotope::GetIsotope,
74  f_GetIsotope()
75  [return_value_policy<reference_existing_object>()])
76  .staticmethod("GetIsotope")
77  .def("GetIsotopeTable", &G4Isotope::GetIsotopeTable,
78  return_value_policy<reference_existing_object>())
79  .staticmethod("GetIsotopeTable")
80  .def("GetNumberOfIsotopes", &G4Isotope::GetNumberOfIsotopes)
81  .staticmethod("GetNumberOfIsotopes")
82 
83  .def("GetIndex", &G4Isotope::GetIndex)
84  // ---
85  .def("Print", Print)
86  .def(self == self)
87  .def(self != self)
88  ;
89 
90  // G4IsotopeTable
91  class_<G4IsotopeTable> ("G4IsotopeTable", "isotope table")
93  .def(self_ns::str(self))
94  ;
95 }
void Print(G4Isotope &iso)
Definition: pyG4Isotope.cc:47