32 #include <boost/python.hpp> 33 #include "G4UserStackingAction.hh" 44 wrapper<G4UserStackingAction> {
48 if(
const override&
f= get_override(
"ClassifyNewTrack")) {
49 return f(boost::ref(aTrack));
51 return G4UserStackingAction::ClassifyNewTrack(aTrack);
56 if(
const override&
f= get_override(
"NewStage")) {
59 G4UserStackingAction::NewStage();
64 if(
const override&
f= get_override(
"PrepareNewEvent")) {
67 G4UserStackingAction::PrepareNewEvent();
81 class_<CB_G4UserStackingAction, CB_G4UserStackingAction*, boost::noncopyable>
82 (
"G4UserStackingAction",
"stacking action class")
84 .def(
"ClassifyNewTrack", &G4UserStackingAction::ClassifyNewTrack,
85 &CB_G4UserStackingAction::ClassifyNewTrack)
86 .def(
"NewStage", &G4UserStackingAction::NewStage,
87 &CB_G4UserStackingAction::NewStage)
88 .def(
"PrepareNewEvent", &G4UserStackingAction::PrepareNewEvent,
89 &CB_G4UserStackingAction::PrepareNewEvent)
void export_G4UserStackingAction()
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)