31 #include <boost/python.hpp> 32 #include "G4UserEventAction.hh" 41 wrapper<G4UserEventAction> {
44 if(
const override&
f= get_override(
"BeginOfEventAction")) {
45 f(boost::ref(anEvent));
47 G4UserEventAction::BeginOfEventAction(anEvent);
52 if(
const override&
f= get_override(
"EndOfEventAction")) {
53 f(boost::ref(anEvent));
55 G4UserEventAction::EndOfEventAction(anEvent);
66 class_<CB_G4UserEventAction, CB_G4UserEventAction*, boost::noncopyable>
67 (
"G4UserEventAction",
"event action class")
69 .def(
"BeginOfEventAction", &G4UserEventAction::BeginOfEventAction,
71 .def(
"EndOfEventAction", &G4UserEventAction::EndOfEventAction,
void EndOfEventAction(const G4Event *anEvent)
void BeginOfEventAction(const G4Event *anEvent)
void export_G4UserEventAction()