32 #include <boost/python.hpp>
54 #define ADD_PHYSICS_LIST(plname) \
55 class_<plname, plname*, bases<G4VUserPhysicsList>, boost::noncopyable> \
56 (#plname, #plname " physics list") \
58 AddPhysicsList(#plname);
60 using namespace boost::python;
65 namespace pyPhysicsLists {
67 static std::vector<std::string> plList;
70 plList.push_back(plname);
74 for (
G4int i=0; i< plList.size(); i++) {
81 using namespace pyPhysicsLists;
G4GLOB_DLL std::ostream G4cout
#define ADD_PHYSICS_LIST(plname)
void export_PhysicsLists()
void AddPhysicsList(const G4String &plname)