Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pydemo_wp.cc File Reference
#include <boost/python.hpp>
#include "MyMaterials.hh"
#include "MyDetectorConstruction.hh"
#include "G4VSensitiveDetector.hh"
Include dependency graph for pydemo_wp.cc:

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (demo_wp)
 

Function Documentation

BOOST_PYTHON_MODULE ( demo_wp  )

Definition at line 44 of file pydemo_wp.cc.

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

Here is the call graph for this function: