Geant4-11
Functions
pydemo_wp.cc File Reference
#include <boost/python.hpp>
#include "MyMaterials.hh"
#include "MyDetectorConstruction.hh"
#include "G4VSensitiveDetector.hh"

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (demo_wp)
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( demo_wp  )

Definition at line 43 of file pydemo_wp.cc.

43 {
44 class_<MyMaterials>("MyMaterials", "my material")
45 .def("Construct", &MyMaterials::Construct)
46 ;
47
49 bases<G4VUserDetectorConstruction> >
50 ("MyDetectorConstruction", "my detector")
51 .def("SetSDtoScoreVoxel", &MyDetectorConstruction::SetSDtoScoreVoxel)
52 ;
53}
void SetSDtoScoreVoxel(G4VSensitiveDetector *asd)
void Construct()
Definition: MyMaterials.cc:57

References MyMaterials::Construct(), and MyDetectorConstruction::SetSDtoScoreVoxel().