31 #include <boost/python.hpp>
35 using namespace boost::python;
40 namespace pyG4ParticleTable {
81 theParticleIterator-> reset();
82 while( (*theParticleIterator)() ){
84 particleList.append(&particle);
92 using namespace pyG4ParticleTable;
99 class_<G4ParticleTable, G4ParticleTable*, boost::noncopyable>
100 (
"G4ParticleTable",
"particle table", no_init)
103 return_value_policy<reference_existing_object>())
104 .staticmethod(
"GetParticleTable")
111 return_value_policy<reference_existing_object>())
113 return_value_policy<return_by_value>())
115 return_value_policy<reference_existing_object>())
117 return_value_policy<reference_existing_object>())
119 return_value_policy<reference_existing_object>())
121 return_value_policy<reference_existing_object>())
123 return_value_policy<reference_existing_object>())
125 return_value_policy<reference_existing_object>())