31 #include <boost/python.hpp> 32 #include "G4UserStackingAction.hh" 43 wrapper<G4UserStackingAction> {
47 if(
const override&
f= get_override(
"ClassifyNewTrack")) {
48 return f(boost::ref(aTrack));
50 return G4UserStackingAction::ClassifyNewTrack(aTrack);
55 if(
const override&
f= get_override(
"NewStage")) {
58 G4UserStackingAction::NewStage();
63 if(
const override&
f= get_override(
"PrepareNewEvent")) {
66 G4UserStackingAction::PrepareNewEvent();
80 class_<CB_G4UserStackingAction, CB_G4UserStackingAction*, boost::noncopyable>
81 (
"G4UserStackingAction",
"stacking action class")
83 .def(
"ClassifyNewTrack", &G4UserStackingAction::ClassifyNewTrack,
84 &CB_G4UserStackingAction::ClassifyNewTrack)
85 .def(
"NewStage", &G4UserStackingAction::NewStage,
86 &CB_G4UserStackingAction::NewStage)
87 .def(
"PrepareNewEvent", &G4UserStackingAction::PrepareNewEvent,
88 &CB_G4UserStackingAction::PrepareNewEvent)
void export_G4UserStackingAction()
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)