40#include <boost/python.hpp>
41#include <boost/python/list.hpp>
46using namespace boost::python;
53 boost::python::list *
particleList =
new boost::python::list();
59 for (
int index = 0 ; index <= g4ParticleList->
size() ; index++ ) {
69 boost::python::list *materialTableList =
new boost::python::list();
74 std::vector<G4Material*>::iterator 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")
std::vector< G4Material * > G4MaterialTable
static MCGIDI_particle * particleList
void SetMaterial(G4String)
static G4MaterialTable * GetMaterialTable()
static G4ParticleTable * GetParticleTable()
const G4String & GetParticleName(G4int index) const
boost::python::list getParticleTable()
BOOST_PYTHON_MODULE(testem0)
boost::python::list getMaterialTable()