32 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4UserStackingAction {
44 wrapper<G4UserStackingAction> {
48 if(
const override&
f= get_override(
"ClassifyNewTrack")) {
49 return f(boost::ref(aTrack));
56 if(
const override&
f= get_override(
"NewStage")) {
64 if(
const override&
f= get_override(
"PrepareNewEvent")) {
74 using namespace pyG4UserStackingAction;
81 class_<CB_G4UserStackingAction, CB_G4UserStackingAction*, boost::noncopyable>
82 (
"G4UserStackingAction",
"stacking action class")
85 &CB_G4UserStackingAction::ClassifyNewTrack)
87 &CB_G4UserStackingAction::NewStage)
89 &CB_G4UserStackingAction::PrepareNewEvent)
void export_G4UserStackingAction()
G4ClassificationOfNewTrack
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
virtual void PrepareNewEvent()