Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ( demo_wp  )

Definition at line 44 of file pydemo_wp.cc.

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

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