31 #include <boost/python.hpp> 32 #include "G4VSensitiveDetector.hh" 42 public G4VSensitiveDetector,
43 public wrapper<G4VSensitiveDetector> {
48 : G4VSensitiveDetector(name) { }
51 G4bool
ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) {
52 return get_override(
"ProcessHits")(&aStep, &ROhist);
65 class_<CB_G4VSensitiveDetector, boost::noncopyable>
66 (
"G4VSensitiveDetector",
"base class of senstive detector")
68 .def(init<const G4String&>())
71 .def(
"EndOfEvent", &G4VSensitiveDetector::EndOfEvent)
73 .def(
"DrawAll", &G4VSensitiveDetector::DrawAll)
75 .def(
"Hit", &G4VSensitiveDetector::Hit)
76 .def(
"ProcessHits", pure_virtual(&CB_G4VSensitiveDetector::ProcessHits))
78 .def(
"SetROgeometry", &G4VSensitiveDetector::SetROgeometry)
79 .def(
"GetNumberOfCollections",
80 &G4VSensitiveDetector::GetNumberOfCollections)
81 .def(
"GetCollectionName", &G4VSensitiveDetector::GetCollectionName)
82 .def(
"SetVerboseLevel", &G4VSensitiveDetector::SetVerboseLevel)
83 .def(
"Activate", &G4VSensitiveDetector::Activate)
84 .def(
"isActive", &G4VSensitiveDetector::isActive)
85 .def(
"GetName", &G4VSensitiveDetector::GetName)
86 .def(
"GetPathName", &G4VSensitiveDetector::GetPathName)
87 .def(
"GetFullPathName", &G4VSensitiveDetector::GetFullPathName)
88 .def(
"GetROgeometry", &G4VSensitiveDetector::GetROgeometry,
89 return_internal_reference<>())
void PrintAll(detinfo::DetectorPropertiesData const &detProp, std::string someText)
~CB_G4VSensitiveDetector()
void export_G4VSensitiveDetector()
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
CB_G4VSensitiveDetector(const G4String &name)
CB_G4VSensitiveDetector()