42 #include <boost/python.hpp>
43 #include <boost/python/list.hpp>
48 using namespace boost::python;
55 boost::python::list *
particleList =
new boost::python::list();
71 boost::python::list *materialTableList =
new boost::python::list();
76 std::vector<G4Material*>::iterator itVectorData;
77 for(itVectorData = materialList.begin(); itVectorData != materialList.end(); itVectorData++) {
78 materialTableList->append ( (std::string)(*(itVectorData))->GetName()) ;
81 return *materialTableList;
96 bases<G4VUserDetectorConstruction> >
97 (
"DetectorConstruction",
"testEm0 detector")
102 bases<G4VUserPrimaryGeneratorAction> >
103 (
"PrimaryGeneratorAction", init<DetectorConstruction*>())
107 bases<G4UserRunAction> >
108 (
"RunAction", init<DetectorConstruction*, PrimaryGeneratorAction*>())
112 bases<G4VUserPhysicsList> >
113 (
"PhysicsList",
"testEm0 physics list")