32 #include <boost/python.hpp> 33 #include "G4VSensitiveDetector.hh" 43 public G4VSensitiveDetector,
44 public wrapper<G4VSensitiveDetector> {
49 : G4VSensitiveDetector(name) { }
52 G4bool
ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) {
53 return get_override(
"ProcessHits")(&aStep, &ROhist);
66 class_<CB_G4VSensitiveDetector, boost::noncopyable>
67 (
"G4VSensitiveDetector",
"base class of senstive detector")
69 .def(init<const G4String&>())
72 .def(
"EndOfEvent", &G4VSensitiveDetector::EndOfEvent)
74 .def(
"DrawAll", &G4VSensitiveDetector::DrawAll)
75 .def(
"PrintAll", &G4VSensitiveDetector::PrintAll)
76 .def(
"Hit", &G4VSensitiveDetector::Hit)
77 .def(
"ProcessHits", pure_virtual(&CB_G4VSensitiveDetector::ProcessHits))
79 .def(
"SetROgeometry", &G4VSensitiveDetector::SetROgeometry)
80 .def(
"GetNumberOfCollections",
81 &G4VSensitiveDetector::GetNumberOfCollections)
82 .def(
"GetCollectionName", &G4VSensitiveDetector::GetCollectionName)
83 .def(
"SetVerboseLevel", &G4VSensitiveDetector::SetVerboseLevel)
84 .def(
"Activate", &G4VSensitiveDetector::Activate)
85 .def(
"isActive", &G4VSensitiveDetector::isActive)
86 .def(
"GetName", &G4VSensitiveDetector::GetName)
87 .def(
"GetPathName", &G4VSensitiveDetector::GetPathName)
88 .def(
"GetFullPathName", &G4VSensitiveDetector::GetFullPathName)
89 .def(
"GetROgeometry", &G4VSensitiveDetector::GetROgeometry,
90 return_internal_reference<>())
~CB_G4VSensitiveDetector()
void export_G4VSensitiveDetector()
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
CB_G4VSensitiveDetector(const G4String &name)
CB_G4VSensitiveDetector()