32 #include <boost/python.hpp>
35 using namespace boost::python;
40 namespace pyG4PrimaryVertex {
46 using namespace pyG4PrimaryVertex;
53 class_<G4PrimaryVertex, G4PrimaryVertex*>
54 (
"G4PrimaryVertex",
"primary vertex")
56 .def(init<G4double, G4double, G4double, G4double>())
57 .def(init<G4ThreeVector, G4double>())
65 return_value_policy<return_by_value>())
72 return_internal_reference<>(), f_GetPrimary())
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
G4PrimaryParticle * GetPrimary(G4int i=0) const
void SetWeight(G4double w)
void export_G4PrimaryVertex()
G4double GetWeight() const
G4int GetNumberOfParticle() const
void SetPrimary(G4PrimaryParticle *pp)
G4ThreeVector GetPosition() const