31 #include <boost/python.hpp> 32 #include "G4UserTrackingAction.hh" 41 wrapper<G4UserTrackingAction> {
45 if(
const override&
f= get_override(
"PreUserTrackingAction")) {
46 f(boost::ref(atrack));
48 G4UserTrackingAction::PreUserTrackingAction(atrack);
54 if(
const override&
f= get_override(
"PostUserTrackingAction")) {
55 f(boost::ref(atrack));
57 G4UserTrackingAction::PostUserTrackingAction(atrack);
69 class_<CB_G4UserTrackingAction, CB_G4UserTrackingAction*, boost::noncopyable>
70 (
"G4UserTrackingAction",
"tracking action class")
72 .def(
"PreUserTrackingAction",
73 &G4UserTrackingAction::PreUserTrackingAction,
75 .def(
"PostUserTrackingAction",
76 &G4UserTrackingAction::PostUserTrackingAction,
void PreUserTrackingAction(const G4Track *atrack)
void export_G4UserTrackingAction()
void PostUserTrackingAction(const G4Track *atrack)