LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 43 of file pydemo_wp.cc.

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

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