33 #include <boost/python.hpp>
37 using namespace boost::python;
42 namespace pyG4ParticleTable {
78 #if G4VERSION_NUMBER >= 910
83 #if G4VERSION_NUMBER >= 910
103 theParticleIterator= particleTable-> GetIterator();
104 theParticleIterator-> reset();
105 while( (*theParticleIterator)() ){
107 particleList.append(&particle);
115 using namespace pyG4ParticleTable;
122 class_<G4ParticleTable, G4ParticleTable*, boost::noncopyable>
123 (
"G4ParticleTable",
"particle table", no_init)
126 return_value_policy<reference_existing_object>())
127 .staticmethod(
"GetParticleTable")
134 return_value_policy<reference_existing_object>())
136 return_value_policy<return_by_value>())
138 return_value_policy<reference_existing_object>())
140 return_value_policy<reference_existing_object>())
142 return_value_policy<reference_existing_object>())
144 return_value_policy<reference_existing_object>())
146 return_value_policy<reference_existing_object>())
148 return_value_policy<reference_existing_object>())
150 return_value_policy<reference_existing_object>())
152 return_value_policy<reference_existing_object>())
153 #if G4VERSION_NUMBER >= 910
154 .def(
"FindIon", f3_FindIon,
155 return_value_policy<reference_existing_object>())
157 #if G4VERSION_NUMBER >= 910
158 .def(
"GetIon", f1_GetIon,
159 return_value_policy<reference_existing_object>())
160 .def(
"GetIon", f2_GetIon,
161 return_value_policy<reference_existing_object>())
164 return_value_policy<reference_existing_object>())