LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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"

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (gtest01)
 

Function Documentation

BOOST_PYTHON_MODULE ( gtest01  )

Definition at line 46 of file gtest01.cc.

References QMaterials::Construct(), and QPrimaryGeneratorAction::GetParticleGun().

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