32 #include <boost/python.hpp> 33 #include "G4UserEventAction.hh" 42 wrapper<G4UserEventAction> {
45 if(
const override&
f= get_override(
"BeginOfEventAction")) {
46 f(boost::ref(anEvent));
48 G4UserEventAction::BeginOfEventAction(anEvent);
53 if(
const override&
f= get_override(
"EndOfEventAction")) {
54 f(boost::ref(anEvent));
56 G4UserEventAction::EndOfEventAction(anEvent);
67 class_<CB_G4UserEventAction, CB_G4UserEventAction*, boost::noncopyable>
68 (
"G4UserEventAction",
"event action class")
70 .def(
"BeginOfEventAction", &G4UserEventAction::BeginOfEventAction,
72 .def(
"EndOfEventAction", &G4UserEventAction::EndOfEventAction,
void EndOfEventAction(const G4Event *anEvent)
void BeginOfEventAction(const G4Event *anEvent)
void export_G4UserEventAction()