Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gtest01.cc File Reference
#include <boost/python.hpp>
#include "QMaterials.hh"
#include "QDetectorConstruction.hh"
#include "QPhysicsList.hh"
#include "QPrimaryGeneratorAction.hh"
#include "G4ParticleGun.hh"
#include "QEventAction.hh"
Include dependency graph for gtest01.cc:

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (gtest01)
 

Function Documentation

BOOST_PYTHON_MODULE ( gtest01  )

Definition at line 47 of file gtest01.cc.

47  {
48  class_<QMaterials>("QMaterials", "my material")
49  .def("Construct", &QMaterials::Construct)
50  ;
51 
52  class_<QDetectorConstruction, QDetectorConstruction*,
53  bases<G4VUserDetectorConstruction> >
54  ("QDetectorConstruction", "my detector")
55  ;
56 
57  class_<QPhysicsList, QPhysicsList*,
58  bases<G4VUserPhysicsList> >
59  ("QPhysicsList", "my physics list")
60  ;
61 
62  class_<QPrimaryGeneratorAction, QPrimaryGeneratorAction*,
63  bases<G4VUserPrimaryGeneratorAction> >
64  ("QPrimaryGeneratorAction", "my primary generator action")
65  .def("GetParticleGun", &QPrimaryGeneratorAction::GetParticleGun,
66  return_internal_reference<>())
67  ;
68 
69  class_<QEventAction, QEventAction*,
70  bases<G4UserEventAction> >
71  ("QEventAction", "my event action")
72  ;
73 }
G4ParticleGun * GetParticleGun() const
void Construct()
Definition: QMaterials.cc:58

Here is the call graph for this function: