40 #include <boost/python.hpp>
41 #include <boost/python/list.hpp>
46 using namespace boost::python;
53 boost::python::list *
particleList =
new boost::python::list();
59 for (
int index = 0 ; index <= g4ParticleList->
size() ; index++ ) {
60 particleList->append ( (std::string) g4ParticleList->
GetParticleName(index) );
69 boost::python::list *materialTableList =
new boost::python::list();
74 std::vector<G4Material*>::iterator itVectorData;
75 for(itVectorData = materialList.begin(); itVectorData != materialList.end(); itVectorData++) {
76 materialTableList->append ( (std::string)(*(itVectorData))->GetName()) ;
79 return *materialTableList;
94 bases<G4VUserDetectorConstruction> >
95 (
"DetectorConstruction",
"testEm0 detector")
100 bases<G4VUserPrimaryGeneratorAction> >
101 (
"PrimaryGeneratorAction", init<DetectorConstruction*>())
105 bases<G4UserRunAction> >
106 (
"RunAction", init<DetectorConstruction*, PrimaryGeneratorAction*>())
110 bases<G4VUserPhysicsList> >
111 (
"PhysicsList",
"testEm0 physics list")